OpenSim::SimmMotionEvent Class Reference

A class implementing an event in a SIMM motion. More...

#include <SimmMotionEvent.h>

Inheritance diagram for OpenSim::SimmMotionEvent:
OpenSim::Object

List of all members.

Public Member Functions

 SimmMotionEvent ()
 Default constructor.
 SimmMotionEvent (const SimmMotionEvent &aEvent)
 Copy constructor.
virtual ~SimmMotionEvent ()
 Destructor.
virtual Objectcopy () const
 Copy this SimmMotionEvent and return a pointer to the copy.
SimmMotionEventoperator= (const SimmMotionEvent &aEvent)
 Assignment operator.
void copyData (const SimmMotionEvent &aEvent)
 Copy data members from one SimmMotionEvent to another.
void setName (std::string aName)
void setTime (double aTime)
double getTime () const
void setColor (double *aColor)
 Set the color of the event.
const double * getColor () const

Protected Attributes

PropertyDbl _timeProp
double & _time
PropertyDblVec3 _colorProp
SimTK::Vec3 & _color

Detailed Description

A class implementing an event in a SIMM motion.

Author:
Peter Loan
Version:
1.0

Constructor & Destructor Documentation

SimmMotionEvent::SimmMotionEvent (  ) 

Default constructor.

SimmMotionEvent::SimmMotionEvent ( const SimmMotionEvent aEvent  ) 

Copy constructor.

Parameters:
aEvent SimmMotionEvent to be copied.
SimmMotionEvent::~SimmMotionEvent (  )  [virtual]

Destructor.


Member Function Documentation

Object * SimmMotionEvent::copy (  )  const [virtual]

Copy this SimmMotionEvent and return a pointer to the copy.

The copy constructor for this class is used.

Returns:
Pointer to a copy of this SimmMotionEvent.

Reimplemented from OpenSim::Object.

void SimmMotionEvent::copyData ( const SimmMotionEvent aEvent  ) 

Copy data members from one SimmMotionEvent to another.

Parameters:
aEvent SimmMotionEvent to be copied.
const double* OpenSim::SimmMotionEvent::getColor (  )  const [inline]
double OpenSim::SimmMotionEvent::getTime (  )  const [inline]
SimmMotionEvent & SimmMotionEvent::operator= ( const SimmMotionEvent aEvent  ) 

Assignment operator.

Returns:
Reference to this object.

Reimplemented from OpenSim::Object.

void SimmMotionEvent::setColor ( double *  aColor  ) 

Set the color of the event.

Parameters:
aColor array of RGB color values
void OpenSim::SimmMotionEvent::setName ( std::string  aName  )  [inline]
void OpenSim::SimmMotionEvent::setTime ( double  aTime  )  [inline]

Member Data Documentation

SimTK::Vec3& OpenSim::SimmMotionEvent::_color [protected]
double& OpenSim::SimmMotionEvent::_time [protected]

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

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