A class implementing a set of parameters describing how to scale a model to fit a subject, place markers on it, and do IK on one or more motion trials. More...
#include <ScaleTool.h>
Public Member Functions | |
ScaleTool () | |
Default constructor. | |
ScaleTool (const std::string &aFileName) SWIG_DECLARE_EXCEPTION | |
ScaleTool (const ScaleTool &aSubject) | |
Copy constructor. | |
virtual | ~ScaleTool () |
Destructor. | |
virtual Object * | copy () const |
Copy this subject and return a pointer to the copy. | |
ScaleTool & | operator= (const ScaleTool &aSubject) |
Assignment operator. | |
void | copyData (const ScaleTool &aSubject) |
Copy data members from one ScaleTool to another. | |
Model * | createModel () |
Create a generic model, using GenericModelMaker::processModel(). | |
GenericModelMaker & | getGenericModelMaker () |
ModelScaler & | getModelScaler () |
MarkerPlacer & | getMarkerPlacer () |
bool | isDefaultGenericModelMaker () |
bool | isDefaultModelScaler () |
bool | isDefaultMarkerPlacer () |
double | getSubjectMass () |
Accessor methods to obtain model attributes. | |
double | getSubjectAge () |
double | getSubjectHeight () |
void | setSubjectMass (double mass) |
void | setSubjectAge (double age) |
void | setSubjectHeight (double height) |
const std::string & | getPathToSubject () |
Accessor methods to set and get path to Subject. | |
void | setPathToSubject (const std::string &aPath) |
void | setPrintResultFiles (bool aToWrite) |
Static Public Member Functions | |
static void | registerTypes () |
Register the types used by this class. | |
Protected Attributes | |
PropertyDbl | _massProp |
double & | _mass |
PropertyDbl | _heightProp |
double & | _height |
PropertyDbl | _ageProp |
double & | _age |
PropertyStr | _notesProp |
std::string & | _notes |
PropertyObj | _genericModelMakerProp |
GenericModelMaker & | _genericModelMaker |
PropertyObj | _modelScalerProp |
ModelScaler & | _modelScaler |
PropertyObj | _markerPlacerProp |
MarkerPlacer & | _markerPlacer |
std::string | _pathToSubject |
All files in workflow are specified relative to where the subject file is. |
A class implementing a set of parameters describing how to scale a model to fit a subject, place markers on it, and do IK on one or more motion trials.
ScaleTool::ScaleTool | ( | ) |
Default constructor.
OpenSim::ScaleTool::ScaleTool | ( | const std::string & | aFileName | ) |
ScaleTool::ScaleTool | ( | const ScaleTool & | aSubject | ) |
Copy constructor.
aSubject | ScaleTool to be copied. |
ScaleTool::~ScaleTool | ( | ) | [virtual] |
Destructor.
Object * ScaleTool::copy | ( | ) | const [virtual] |
Copy this subject and return a pointer to the copy.
The copy constructor for this class is used.
Reimplemented from OpenSim::Object.
void ScaleTool::copyData | ( | const ScaleTool & | aSubject | ) |
Model * ScaleTool::createModel | ( | ) |
Create a generic model, using GenericModelMaker::processModel().
GenericModelMaker& OpenSim::ScaleTool::getGenericModelMaker | ( | ) | [inline] |
MarkerPlacer& OpenSim::ScaleTool::getMarkerPlacer | ( | ) | [inline] |
ModelScaler& OpenSim::ScaleTool::getModelScaler | ( | ) | [inline] |
const std::string& OpenSim::ScaleTool::getPathToSubject | ( | ) | [inline] |
Accessor methods to set and get path to Subject.
This is needed since all file names referred to in the subject file are relative to subject file
double OpenSim::ScaleTool::getSubjectAge | ( | ) | [inline] |
double OpenSim::ScaleTool::getSubjectHeight | ( | ) | [inline] |
double OpenSim::ScaleTool::getSubjectMass | ( | ) | [inline] |
Accessor methods to obtain model attributes.
bool OpenSim::ScaleTool::isDefaultGenericModelMaker | ( | ) | [inline] |
bool OpenSim::ScaleTool::isDefaultMarkerPlacer | ( | ) | [inline] |
bool OpenSim::ScaleTool::isDefaultModelScaler | ( | ) | [inline] |
void ScaleTool::registerTypes | ( | ) | [static] |
Register the types used by this class.
void OpenSim::ScaleTool::setPathToSubject | ( | const std::string & | aPath | ) | [inline] |
void OpenSim::ScaleTool::setPrintResultFiles | ( | bool | aToWrite | ) | [inline] |
void OpenSim::ScaleTool::setSubjectAge | ( | double | age | ) | [inline] |
void OpenSim::ScaleTool::setSubjectHeight | ( | double | height | ) | [inline] |
void OpenSim::ScaleTool::setSubjectMass | ( | double | mass | ) | [inline] |
double& OpenSim::ScaleTool::_age [protected] |
PropertyDbl OpenSim::ScaleTool::_ageProp [protected] |
GenericModelMaker& OpenSim::ScaleTool::_genericModelMaker [protected] |
double& OpenSim::ScaleTool::_height [protected] |
PropertyDbl OpenSim::ScaleTool::_heightProp [protected] |
MarkerPlacer& OpenSim::ScaleTool::_markerPlacer [protected] |
PropertyObj OpenSim::ScaleTool::_markerPlacerProp [protected] |
double& OpenSim::ScaleTool::_mass [protected] |
PropertyDbl OpenSim::ScaleTool::_massProp [protected] |
ModelScaler& OpenSim::ScaleTool::_modelScaler [protected] |
PropertyObj OpenSim::ScaleTool::_modelScalerProp [protected] |
std::string& OpenSim::ScaleTool::_notes [protected] |
PropertyStr OpenSim::ScaleTool::_notesProp [protected] |
std::string OpenSim::ScaleTool::_pathToSubject [protected] |
All files in workflow are specified relative to where the subject file is.
Need to keep track of that in case absolute path is needed later