A class implementing a SIMM [mocap] marker. More...
#include <Marker.h>
Public Member Functions | |
Marker () | |
Default constructor. | |
Marker (const Marker &aMarker) | |
Copy constructor. | |
virtual | ~Marker () |
Destructor. | |
virtual Object * | copy () const |
Copy this Marker and return a pointer to the copy. | |
Marker & | operator= (const Marker &aMarker) |
Assignment operator. | |
void | copyData (const Marker &aMarker) |
Copy data members from one Marker to another. | |
virtual void | updateFromMarker (const Marker &aMarker) |
Update an existing marker with parameter values from a new one, but only for the parameters that were explicitly specified in the XML node. | |
virtual void | getOffset (SimTK::Vec3 &rOffset) const |
Get the marker's XYZ offset from the body it's attached to. | |
virtual const SimTK::Vec3 & | getOffset () const |
virtual void | getOffset (double rOffset[]) const |
Get the marker's XYZ offset from the body it's attached to. | |
virtual bool | setOffset (const SimTK::Vec3 &aOffset) |
Set the marker's XYZ offset from the body it's attached to. | |
virtual bool | setOffset (const double aOffset[3]) |
Set the marker's XYZ offset from the body it's attached to. | |
virtual bool | getOffsetUseDefault () const |
virtual bool | getFixed () const |
virtual bool | setFixed (bool aFixed) |
Set the marker's fixed status. | |
virtual bool | getFixedUseDefault () const |
virtual const std::string & | getBodyName () const |
Get the 'body name' field, which is used when the marker is added to an existing model. | |
virtual bool | setBodyName (const std::string &aName) |
virtual bool | getBodyNameUseDefault () const |
virtual bool | setBodyNameUseDefault (bool aValue) |
Set the 'body name' field to use or not use the default value. | |
virtual OpenSim::Body & | getBody () const |
virtual void | changeBody (OpenSim::Body &aBody) |
Change the body that this marker is attached to. | |
virtual void | changeBodyPreserveLocation (const SimTK::State &s, OpenSim::Body &aBody) |
Change the body that this marker is attached to. | |
virtual void | scale (const SimTK::Vec3 &aScaleFactors) |
Scale the marker. | |
virtual void | setup (const Model &aModel) |
Perform some set up functions that happen after the object has been deserialized or copied. | |
virtual void | updateGeometry () |
Update the geometry to correspond to position changes. | |
virtual const VisibleObject * | getDisplayer () const |
virtual VisibleObject * | updDisplayer () |
virtual void | removeSelfFromDisplay () |
Remove self from the list of displayable objects and free resources. | |
const bool | isVirtual () |
void | setVirtual (bool aTrueFalse) |
OPENSIM_DECLARE_DERIVED (Marker, Object) | |
Static Public Member Functions | |
static void | deleteMarker (Marker *aMarker) |
Protected Attributes | |
const Model * | _model |
PropertyDblVec3 | _offsetProp |
SimTK::Vec3 & | _offset |
PropertyBool | _fixedProp |
bool & | _fixed |
PropertyStr | _bodyNameProp |
std::string & | _bodyName |
OpenSim::Body * | _body |
PropertyObj | _displayerProp |
VisibleObject & | _displayer |
bool | _virtual |
Static Protected Attributes | |
static Geometry * | _defaultGeometry = AnalyticSphere::createSphere(0.01) |
A temporary kluge until the default mechanism is working. |
A class implementing a SIMM [mocap] marker.
Marker::Marker | ( | ) |
Default constructor.
Marker::Marker | ( | const Marker & | aMarker | ) |
Copy constructor.
aMarker | Marker to be copied. |
Marker::~Marker | ( | ) | [virtual] |
Destructor.
void Marker::changeBody | ( | OpenSim::Body & | aBody | ) | [virtual] |
Change the body that this marker is attached to.
It assumes that the body is already set, so that setup() needs to be called to update dependent information.
aBody | Reference to the body. |
void Marker::changeBodyPreserveLocation | ( | const SimTK::State & | s, | |
OpenSim::Body & | aBody | |||
) | [virtual] |
Change the body that this marker is attached to.
It assumes that the body is already set, so that setup() needs to be called to update dependent information.
s | State. | |
aBody | Reference to the body. |
Object * Marker::copy | ( | ) | const [virtual] |
Copy this Marker and return a pointer to the copy.
The copy constructor for this class is used.
Reimplemented from OpenSim::Object.
void Marker::copyData | ( | const Marker & | aMarker | ) |
static void OpenSim::Marker::deleteMarker | ( | Marker * | aMarker | ) | [inline, static] |
virtual OpenSim::Body& OpenSim::Marker::getBody | ( | ) | const [inline, virtual] |
const string & Marker::getBodyName | ( | ) | const [virtual] |
Get the 'body name' field, which is used when the marker is added to an existing model.
virtual bool OpenSim::Marker::getBodyNameUseDefault | ( | ) | const [inline, virtual] |
virtual const VisibleObject* OpenSim::Marker::getDisplayer | ( | ) | const [inline, virtual] |
Reimplemented from OpenSim::Object.
virtual bool OpenSim::Marker::getFixed | ( | ) | const [inline, virtual] |
virtual bool OpenSim::Marker::getFixedUseDefault | ( | ) | const [inline, virtual] |
void Marker::getOffset | ( | double | rOffset[] | ) | const [virtual] |
Get the marker's XYZ offset from the body it's attached to.
rOffset | XYZ offset is returned here. |
virtual const SimTK::Vec3& OpenSim::Marker::getOffset | ( | ) | const [inline, virtual] |
void Marker::getOffset | ( | SimTK::Vec3 & | rOffset | ) | const [virtual] |
Get the marker's XYZ offset from the body it's attached to.
rOffset | XYZ offset is returned here. |
virtual bool OpenSim::Marker::getOffsetUseDefault | ( | ) | const [inline, virtual] |
const bool OpenSim::Marker::isVirtual | ( | ) | [inline] |
void Marker::removeSelfFromDisplay | ( | ) | [virtual] |
Remove self from the list of displayable objects and free resources.
void Marker::scale | ( | const SimTK::Vec3 & | aScaleFactors | ) | [virtual] |
Scale the marker.
aScaleFactors | XYZ scale factors. |
virtual bool OpenSim::Marker::setBodyName | ( | const std::string & | aName | ) | [virtual] |
bool Marker::setBodyNameUseDefault | ( | bool | aValue | ) | [virtual] |
Set the 'body name' field to use or not use the default value.
bool Marker::setFixed | ( | bool | aFixed | ) | [virtual] |
Set the marker's fixed status.
aFixed | boolean value to set to. |
bool Marker::setOffset | ( | const double | aOffset[3] | ) | [virtual] |
Set the marker's XYZ offset from the body it's attached to.
aOffset | XYZ offset to set to. |
bool Marker::setOffset | ( | const SimTK::Vec3 & | aOffset | ) | [virtual] |
Set the marker's XYZ offset from the body it's attached to.
aOffset | XYZ offset to set to. |
void Marker::setup | ( | const Model & | aModel | ) | [virtual] |
Perform some set up functions that happen after the object has been deserialized or copied.
aEngine | dynamics engine containing this Marker. |
void OpenSim::Marker::setVirtual | ( | bool | aTrueFalse | ) | [inline] |
void Marker::updateFromMarker | ( | const Marker & | aMarker | ) | [virtual] |
Update an existing marker with parameter values from a new one, but only for the parameters that were explicitly specified in the XML node.
aMarker | marker to update from |
void Marker::updateGeometry | ( | ) | [virtual] |
Update the geometry to correspond to position changes.
virtual VisibleObject* OpenSim::Marker::updDisplayer | ( | ) | [inline, virtual] |
Reimplemented from OpenSim::Object.
OpenSim::Body* OpenSim::Marker::_body [protected] |
std::string& OpenSim::Marker::_bodyName [protected] |
PropertyStr OpenSim::Marker::_bodyNameProp [protected] |
Geometry * Marker::_defaultGeometry = AnalyticSphere::createSphere(0.01) [static, protected] |
A temporary kluge until the default mechanism is working.
VisibleObject& OpenSim::Marker::_displayer [protected] |
PropertyObj OpenSim::Marker::_displayerProp [protected] |
bool& OpenSim::Marker::_fixed [protected] |
PropertyBool OpenSim::Marker::_fixedProp [protected] |
const Model* OpenSim::Marker::_model [protected] |
SimTK::Vec3& OpenSim::Marker::_offset [protected] |
PropertyDblVec3 OpenSim::Marker::_offsetProp [protected] |
bool OpenSim::Marker::_virtual [protected] |