OpenSim::MarkerData Class Reference
A class implementing a sequence of marker frames from a TRC/TRB file.
More...
#include <MarkerData.h>
List of all members.
Detailed Description
A class implementing a sequence of marker frames from a TRC/TRB file.
- Author:
- Peter Loan
- Version:
- 1.0
Constructor & Destructor Documentation
MarkerData::MarkerData |
( |
|
) |
|
OpenSim::MarkerData::MarkerData |
( |
const std::string & |
aFileName |
) |
|
MarkerData::~MarkerData |
( |
|
) |
[virtual] |
Member Function Documentation
void MarkerData::averageFrames |
( |
double |
aThreshold = -1.0 , |
|
|
double |
aStartTime = -SimTK::Infinity , |
|
|
double |
aEndTime = SimTK::Infinity | |
|
) |
| | |
Average all the frames between aStartTime and aEndTime (inclusive) and store the result in the first frame.
All other frames are deleted. The time and frame number of this one remaining frame are copied from the startIndex frame. The aThreshold parameter is for printing a warning if any marker moves more than that amount in the averaged frames. aThreshold is specified by the user, and is assumed to be in the units of the marker data.
- Parameters:
-
| aThreshold | amount of marker movement that is allowed for averaging. |
| aStartTime | start time of frame range to average. |
| aEndTime | end time of frame range to average. |
void MarkerData::convertToUnits |
( |
const Units & |
aUnits |
) |
|
Convert all marker coordinates to the specified units.
- Parameters:
-
| aUnits | units to convert to. |
void MarkerData::findFrameRange |
( |
double |
aStartTime, |
|
|
double |
aEndTime, |
|
|
int & |
rStartFrame, |
|
|
int & |
rEndFrame | |
|
) |
| | const |
Find the range of frames that is between start time and end time (inclusive).
- Parameters:
-
| aStartTime | start time. |
| aEndTime | end time. |
| rStartFrame | index of start frame is returned here. |
| rEndFrame | index of end frame is returned here. |
double OpenSim::MarkerData::getCameraRate |
( |
|
) |
const [inline] |
double OpenSim::MarkerData::getDataRate |
( |
|
) |
const [inline] |
const std::string& OpenSim::MarkerData::getFileName |
( |
|
) |
const [inline] |
MarkerFrame * MarkerData::getFrame |
( |
int |
aIndex |
) |
const |
Get a frame of marker data.
- Parameters:
-
| aIndex | index of the row to get. |
- Returns:
- Pointer to the frame of data.
double MarkerData::getLastFrameTime |
( |
|
) |
const |
Utilities to support the GUI.
getLastFrameTime: Expose the time for the last frame
int OpenSim::MarkerData::getMarkerIndex |
( |
const std::string & |
aName |
) |
const |
const Array<std::string>& OpenSim::MarkerData::getMarkerNames |
( |
|
) |
const [inline] |
int OpenSim::MarkerData::getNumFrames |
( |
|
) |
const [inline] |
double MarkerData::getStartFrameTime |
( |
|
) |
const |
Utilities to support the GUI.
getStartFrameTime: Exposes the time for first frame
const Units& OpenSim::MarkerData::getUnits |
( |
|
) |
const [inline] |
void MarkerData::makeRdStorage |
( |
Storage & |
rStorage |
) |
|
Store the marker data in an Storage object.
The object is emptied before adding the marker data.
- Parameters:
-
| aStorage | storage block to fill in with marker data. |
The documentation for this class was generated from the following files:
- OpenSim/Common/MarkerData.h
- OpenSim/Common/MarkerData.cpp