OpenSim::MarkerFrame Class Reference

A class implementing a frame of marker data from a TRC/TRB file. More...

#include <MarkerFrame.h>

Inheritance diagram for OpenSim::MarkerFrame:
OpenSim::Object

List of all members.

Public Member Functions

 MarkerFrame ()
 Default constructor.
 MarkerFrame (int aNumMarkers, int aFrameNumber, double aTime, Units &aUnits)
 Constructor taking all the header information.
 MarkerFrame (const MarkerFrame &aFrame)
 Copy constructor.
virtual ~MarkerFrame ()
 Destructor.
void addMarker (const SimTK::Vec3 &aCoords)
 Add a marker to the frame.
SimmPointgetMarker (int aIndex)
int getFrameNumber () const
void setFrameNumber (int aNumber)
double getFrameTime () const
void scale (double aScaleFactor)
 Scale the XYZ coordinates of all markers in the frame.

Detailed Description

A class implementing a frame of marker data from a TRC/TRB file.

Author:
Peter Loan
Version:
1.0

Constructor & Destructor Documentation

MarkerFrame::MarkerFrame (  ) 

Default constructor.

MarkerFrame::MarkerFrame ( int  aNumMarkers,
int  aFrameNumber,
double  aTime,
Units aUnits 
)

Constructor taking all the header information.

Parameters:
aNumMarkers the number of markers in the frame
aFrameNumber the frame number
aTime the time of the frame
aUnits the units of the XYZ marker coordinates
MarkerFrame::MarkerFrame ( const MarkerFrame aFrame  ) 

Copy constructor.

MarkerFrame::~MarkerFrame (  )  [virtual]

Destructor.


Member Function Documentation

void MarkerFrame::addMarker ( const SimTK::Vec3 &  aCoords  ) 

Add a marker to the frame.

Parameters:
aCoords the XYZ coordinates of the marker
int OpenSim::MarkerFrame::getFrameNumber (  )  const [inline]
double OpenSim::MarkerFrame::getFrameTime (  )  const [inline]
SimmPoint& OpenSim::MarkerFrame::getMarker ( int  aIndex  )  [inline]
void MarkerFrame::scale ( double  aScaleFactor  ) 

Scale the XYZ coordinates of all markers in the frame.

Parameters:
aScaleFactor the scale factor
void OpenSim::MarkerFrame::setFrameNumber ( int  aNumber  )  [inline]

The documentation for this class was generated from the following files:

Generated on Wed Dec 16 15:03:40 2009 for OpenSim by  doxygen 1.6.1