OpenSim::PropertyTransform Class Reference

#include <PropertyTransform.h>

Inheritance diagram for OpenSim::PropertyTransform:
OpenSim::PropertyDblArray OpenSim::Property

List of all members.

Public Member Functions

 PropertyTransform ()
 Default Constructor.
 PropertyTransform (const std::string &aName, const SimTK::Transform &aTransform)
 PropertyTransform (const std::string &aName, const Array< double > &aArray)
 PropertyTransform (const PropertyTransform &aProperty)
 Copy constructor.
virtual Propertycopy () const
 Construct and return a copy of this property.
virtual ~PropertyTransform ()
PropertyTransformoperator= (const PropertyTransform &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::Transform &aTransform)
 Set the value of this property.
virtual SimTK::Transform & getValueTransform ()
 Get a reference to the value of this property.
virtual const SimTK::Transform & getValueTransform () const
 Get a constant reference to the value of this property.
virtual void setValue (int aSize, const double aArray[])
 Set the value of this property.
void getRotationsAndTranslationsAsArray6 (double aArray[]) const
virtual const std::string & toString ()
 Get a constant String represeting the value of this property.

Constructor & Destructor Documentation

PropertyTransform::PropertyTransform (  ) 

Default Constructor.

OpenSim::PropertyTransform::PropertyTransform ( const std::string &  aName,
const SimTK::Transform &  aTransform 
)
OpenSim::PropertyTransform::PropertyTransform ( const std::string &  aName,
const Array< double > &  aArray 
)
PropertyTransform::PropertyTransform ( const PropertyTransform aProperty  ) 

Copy constructor.

Parameters:
aProperty Property to be copied.
virtual OpenSim::PropertyTransform::~PropertyTransform (  )  [inline, virtual]

Member Function Documentation

Property * PropertyTransform::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.

Returns:
Copy of this property.

Reimplemented from OpenSim::PropertyDblArray.

void PropertyTransform::getRotationsAndTranslationsAsArray6 ( double  aArray[]  )  const
const char * PropertyTransform::getTypeAsString (  )  const [virtual]

Get the type of this property as a string.

Returns:
Type of the property.

Reimplemented from OpenSim::PropertyDblArray.

const SimTK::Transform & PropertyTransform::getValueTransform (  )  const [virtual]

Get a constant reference to the value of this property.

Returns:
Reference to the value of this property.
SimTK::Transform & PropertyTransform::getValueTransform (  )  [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.

Returns:
Reference to the value of this property.
PropertyTransform & PropertyTransform::operator= ( const PropertyTransform aProperty  ) 

Assign this property to another.

Parameters:
aProperty Property to which to assign this property.
Returns:
Reference to this property.

Reimplemented from OpenSim::PropertyDblArray.

void PropertyTransform::setValue ( int  aSize,
const double  aArray[] 
) [virtual]

Set the value of this property.

Parameters:
aSize Size of the specified array.
aValue Array to which this property is to be assigned.

Reimplemented from OpenSim::PropertyDblArray.

void PropertyTransform::setValue ( const SimTK::Transform &  aTransform  )  [virtual]

Set the value of this property.

Parameters:
aArray Array to which this property is to be assigned.

void PropertyTransform:: setValue(const Array<double>& aArray) { for(int i=0;i<3; i++) _transform[i] = aArray[i]; } _____________________________________________________________________________ /** Set the value of this property.

Parameters:
aArray Array to which this property is to be assigned.
const string & PropertyTransform::toString (  )  [virtual]

Get a constant String represeting the value of this property.

Returns:
Constant String represeting the value of this property.

Reimplemented from OpenSim::PropertyDblArray.


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