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.
SimTK::Vec3 getMarker (int aIndex) const
SimTK::Vec3 & updMarker (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.
const SimTK::Array_
< SimTK::Vec3 > & 
getMarkers () const

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]
SimTK::Vec3 OpenSim::MarkerFrame::getMarker ( int  aIndex  )  const [inline]
const SimTK::Array_<SimTK::Vec3>& OpenSim::MarkerFrame::getMarkers (  )  const [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]
SimTK::Vec3& OpenSim::MarkerFrame::updMarker ( int  aIndex  )  [inline]

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

Generated on Sun Sep 25 00:19:48 2011 for OpenSim by  doxygen 1.6.1