OpenSim::SimmMotionData Class Reference
A class implementing a SIMM motion file.
More...
#include <SimmMotionData.h>
List of all members.
Detailed Description
A class implementing a SIMM motion file.
- Author:
- Peter Loan
- Version:
- 1.0
Constructor & Destructor Documentation
SimmMotionData::SimmMotionData |
( |
|
) |
|
OpenSim::SimmMotionData::SimmMotionData |
( |
const std::string & |
aFileName |
) |
|
SimmMotionData::SimmMotionData |
( |
Storage & |
aData |
) |
|
Copy constructor.
- Parameters:
-
SimmMotionData::~SimmMotionData |
( |
|
) |
[virtual] |
Member Function Documentation
void SimmMotionData::addToRdStorage |
( |
Storage & |
rStorage, |
|
|
double |
aStartTime, |
|
|
double |
aEndTime | |
|
) |
| | |
Add the coordinate data to an Storage object.
Assumptions: 1. the first column in the SimmMotionData is 'time' 2. the Storage object already contains data, so only the SimmMotionData frames whose time stamps match existing frames are added to it. 3. the Storage object does not already contain any columns with the same labels as the SimmMotionData has. If it does, the Storage will end up with duplicate column labels.
- Parameters:
-
| rStorage | the storage to add the data to |
| aStartTime | the time of the first frame to add |
| aEndTime | the time of the last frame to add |
Object * SimmMotionData::copy |
( |
|
) |
const [virtual] |
bool OpenSim::SimmMotionData::deleteColumn |
( |
const std::string & |
aColumnName |
) |
|
int OpenSim::SimmMotionData::getColumnIndex |
( |
const std::string & |
aName |
) |
const |
const Array<std::string>& OpenSim::SimmMotionData::getColumnNames |
( |
|
) |
const [inline] |
int SimmMotionData::getFrameNumberForTime |
( |
double |
time |
) |
const |
find frame number closest to passed in time.
int OpenSim::SimmMotionData::getNumberOfFrames |
( |
|
) |
const [inline] |
int OpenSim::SimmMotionData::getNumColumns |
( |
|
) |
const [inline] |
double OpenSim::SimmMotionData::getRangeMax |
( |
|
) |
const [inline] |
double OpenSim::SimmMotionData::getRangeMin |
( |
|
) |
const [inline] |
const char* OpenSim::SimmMotionData::getUnassignedColName |
( |
|
) |
const [inline] |
double SimmMotionData::getValue |
( |
const int |
aColumnIndex, |
|
|
int |
aFrameIndex | |
|
) |
| | |
Get the value of one element in one frame.
- Parameters:
-
| aColumnIndex | the index of the column |
| aFrameIndex | the index of the frame to get the element from |
- Returns:
- The value of the element
double OpenSim::SimmMotionData::getValue |
( |
const std::string & |
aName, |
|
|
int |
aFrameIndex | |
|
) |
| | |
Assignment operator.
- Returns:
- Reference to this object.
Reimplemented from OpenSim::Object.
void SimmMotionData::scaleColumn |
( |
int |
aColumnIndex, |
|
|
double |
aScaleFactor | |
|
) |
| | |
void SimmMotionData::setColumnLabel |
( |
int |
aIndex, |
|
|
const std::string & |
aLabel | |
|
) |
| | |
Set the label of a column, specified by index.
- Parameters:
-
| aIndex | the index of the column |
| aLabel | the new name of the column |
void OpenSim::SimmMotionData::writeSIMMMotionFile |
( |
const std::string & |
aFileName, |
|
|
const std::string & |
aName, |
|
|
const std::string & |
aComment | |
|
) |
| | const |
The documentation for this class was generated from the following files:
- OpenSim/Common/SimmMotionData.h
- OpenSim/Common/SimmMotionData.cpp