#include <PropertyDblVec3.h>
Public Member Functions | |
PropertyDblVec3 () | |
Default Constructor. | |
PropertyDblVec3 (const std::string &aName, const SimTK::Vec3 &aVec3) | |
PropertyDblVec3 (const std::string &aName, const Array< double > &aArray) | |
PropertyDblVec3 (const PropertyDblVec3 &aProperty) | |
Copy constructor. | |
virtual Property * | copy () const |
Construct and return a copy of this property. | |
virtual | ~PropertyDblVec3 () |
PropertyDblVec3 & | operator= (const PropertyDblVec3 &aProperty) |
Assign this property to another. | |
virtual const char * | getTypeAsString () const |
Get the type of this property as a string. | |
virtual void | setValue (const SimTK::Vec3 &aVec3) |
Set the value of this property. | |
virtual SimTK::Vec3 & | getValueDblVec3 () |
Get a reference to the value of this property. | |
virtual const SimTK::Vec3 & | getValueDblVec3 () const |
Get a constant reference to the value of this property. | |
virtual void | setValue (int aSize, const double aArray[]) |
virtual const std::string & | toString () |
Get a constant String represeting the value of this property. | |
virtual int | getArraySize () const |
PropertyDblVec3::PropertyDblVec3 | ( | ) |
Default Constructor.
OpenSim::PropertyDblVec3::PropertyDblVec3 | ( | const std::string & | aName, | |
const SimTK::Vec3 & | aVec3 | |||
) |
OpenSim::PropertyDblVec3::PropertyDblVec3 | ( | const std::string & | aName, | |
const Array< double > & | aArray | |||
) |
PropertyDblVec3::PropertyDblVec3 | ( | const PropertyDblVec3 & | aProperty | ) |
Copy constructor.
aProperty | Property to be copied. |
virtual OpenSim::PropertyDblVec3::~PropertyDblVec3 | ( | ) | [inline, virtual] |
Property * PropertyDblVec3::copy | ( | ) | const [virtual] |
Construct and return a copy of this property.
The property is allocated using the new operator, so the caller is responsible for deleting the returned object.
Implements OpenSim::Property.
virtual int OpenSim::PropertyDblVec3::getArraySize | ( | ) | const [inline, virtual] |
Reimplemented from OpenSim::Property.
const char * PropertyDblVec3::getTypeAsString | ( | ) | const [virtual] |
Get the type of this property as a string.
Reimplemented from OpenSim::Property.
const SimTK::Vec3 & PropertyDblVec3::getValueDblVec3 | ( | ) | const [virtual] |
Get a constant reference to the value of this property.
SimTK::Vec3 & PropertyDblVec3::getValueDblVec3 | ( | ) | [virtual] |
Get a reference to the value of this property.
Note that the returned reference can be used to change the value of this property.
PropertyDblVec3 & PropertyDblVec3::operator= | ( | const PropertyDblVec3 & | aProperty | ) |
Assign this property to another.
aProperty | Property to which to assign this property. |
Reimplemented from OpenSim::Property.
virtual void OpenSim::PropertyDblVec3::setValue | ( | int | aSize, | |
const double | aArray[] | |||
) | [inline, virtual] |
Reimplemented from OpenSim::Property.
void PropertyDblVec3::setValue | ( | const SimTK::Vec3 & | aVec3 | ) | [virtual] |
Set the value of this property.
aArray | Array to which this property is to be assigned. |
void PropertyDblVec3:: setValue(const Array<double>& aArray) { for(int i=0;i<3; i++) _vec[i] = aArray[i]; } _____________________________________________________________________________ /** Set the value of this property.
aArray | Array to which this property is to be assigned. |
const string & PropertyDblVec3::toString | ( | ) | [virtual] |
Get a constant String represeting the value of this property.
Implements OpenSim::Property.