A class implementing an event in a SIMM motion. More...
#include <SimmMotionEvent.h>
Public Member Functions | |
SimmMotionEvent () | |
Default constructor. | |
SimmMotionEvent (const SimmMotionEvent &aEvent) | |
Copy constructor. | |
virtual | ~SimmMotionEvent () |
Destructor. | |
virtual Object * | copy () const |
Copy this SimmMotionEvent and return a pointer to the copy. | |
SimmMotionEvent & | operator= (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 |
A class implementing an event in a SIMM motion.
SimmMotionEvent::SimmMotionEvent | ( | ) |
Default constructor.
SimmMotionEvent::SimmMotionEvent | ( | const SimmMotionEvent & | aEvent | ) |
Copy constructor.
aEvent | SimmMotionEvent to be copied. |
SimmMotionEvent::~SimmMotionEvent | ( | ) | [virtual] |
Destructor.
Object * SimmMotionEvent::copy | ( | ) | const [virtual] |
Copy this SimmMotionEvent and return a pointer to the copy.
The copy constructor for this class is used.
Reimplemented from OpenSim::Object.
void SimmMotionEvent::copyData | ( | const SimmMotionEvent & | aEvent | ) |
Copy data members from one SimmMotionEvent to another.
aEvent | SimmMotionEvent to be copied. |
const double* OpenSim::SimmMotionEvent::getColor | ( | ) | const [inline] |
double OpenSim::SimmMotionEvent::getTime | ( | ) | const [inline] |
SimmMotionEvent & SimmMotionEvent::operator= | ( | const SimmMotionEvent & | aEvent | ) |
void SimmMotionEvent::setColor | ( | double * | aColor | ) |
Set the color of the event.
aColor | array of RGB color values |
void OpenSim::SimmMotionEvent::setName | ( | std::string | aName | ) | [inline] |
void OpenSim::SimmMotionEvent::setTime | ( | double | aTime | ) | [inline] |
SimTK::Vec3& OpenSim::SimmMotionEvent::_color [protected] |
PropertyDblVec3 OpenSim::SimmMotionEvent::_colorProp [protected] |
double& OpenSim::SimmMotionEvent::_time [protected] |
PropertyDbl OpenSim::SimmMotionEvent::_timeProp [protected] |