
Public Member Functions | |
| virtual MCCOMErr MCCOMAPI | QueryInterface (const MCIID &riid, void **ppvObj) |
| virtual uint32 MCCOMAPI | AddRef () |
| virtual int16 MCCOMAPI | GetNbrFreedom () const |
| virtual MCCOMErr MCCOMAPI | IncrementFreedomValue (int16 index, real &increment) |
| virtual MCCOMErr MCCOMAPI | GetMotionLimit (int16 index, ELimitType &limit) const |
| virtual MCCOMErr MCCOMAPI | GetFreedomRange (int16 index, real &min, real &max) const |
| virtual MCCOMErr MCCOMAPI | GetFreedomValue (int16 index, real &outValue) const |
| virtual MCCOMErr MCCOMAPI | GetTransformPartialDerivate (int16 index, TTransform3D &transform) const |
| virtual MCCOMErr MCCOMAPI | GetTransformSecondPartialDerivative (int16 index1, int16 index2, TTransform3D &transform) const |
| virtual void MCCOMAPI | ConstrainsTransform (TTreeTransform &transform) const |
| virtual MCCOMErr MCCOMAPI TBasicNewConstraint::QueryInterface | ( | const MCIID & | riid, | |
| void ** | ppvObj | |||
| ) | [virtual] |
Check if the object supports a given interface and returns a pointer to that interface if it does. Note that QueryInterface will increment the reference count of the object by one if the interface is found.
| riid | GUID of the interface | |
| ppvObj | A pointer to the pointer being returned. |
Reimplemented from TBasicDataExchanger.
| virtual uint32 MCCOMAPI TBasicNewConstraint::AddRef | ( | ) | [inline, virtual] |
Increments the reference count of the object
Reimplemented from TBasicDataExchanger.
| virtual int16 MCCOMAPI TBasicNewConstraint::GetNbrFreedom | ( | ) | const [virtual] |
Returns the number of degrees of freedom. Because the freedom value can be limited, you have to give the range of values. This range is defined as a range of increment/decrement around the value.
Implements I3DExNewConstraint.
| virtual MCCOMErr MCCOMAPI TBasicNewConstraint::IncrementFreedomValue | ( | int16 | index, | |
| real & | increment | |||
| ) | [virtual] |
Modify the value of a degree of freedom by adding an increment
| index | The degree of freedom |
| increment | The increment value |
Implements I3DExNewConstraint.
| virtual MCCOMErr MCCOMAPI TBasicNewConstraint::GetMotionLimit | ( | int16 | index, | |
| ELimitType & | limit | |||
| ) | const [virtual] |
Returns the constraint for a given degree of freedom.
Implements I3DExNewConstraint.
| virtual MCCOMErr MCCOMAPI TBasicNewConstraint::GetFreedomRange | ( | int16 | index, | |
| real & | min, | |||
| real & | max | |||
| ) | const [virtual] |
Returns the maximum range of increment and decrement for a given degree of freedom.
| index | The index of the degree of freedom | |
| min | The minimum value | |
| max | The maximum value |
Implements I3DExNewConstraint.
| virtual MCCOMErr MCCOMAPI TBasicNewConstraint::GetFreedomValue | ( | int16 | index, | |
| real & | outValue | |||
| ) | const [virtual] |
Get the current value of the given freedom
| index | The degree of freedom |
| outValue | The value of the freedom |
Implements I3DExNewConstraint.
| virtual MCCOMErr MCCOMAPI TBasicNewConstraint::GetTransformPartialDerivate | ( | int16 | index, | |
| TTransform3D & | transform | |||
| ) | const [virtual] |
To allow the inverse kinematics mechanism to work with a constraint, implement the GetTransfromPartialDerivate() function. A partial derivative transformation is a transformation where each element is derived by a freedom degree.
| index | The degree of freedom used to derivate the transform. | |
| transform | The partial derivative of the transform. |
Implements I3DExNewConstraint.
| virtual MCCOMErr MCCOMAPI TBasicNewConstraint::GetTransformSecondPartialDerivative | ( | int16 | index1, | |
| int16 | index2, | |||
| TTransform3D & | transform | |||
| ) | const [virtual] |
Returns the second order partial derivative of the transform. A partial derivative transformation is a transformation where each element is derived by a freedom degree.
| index1 | The first degree of freedom used to derivate the transform. | |
| index2 | The second degree of freedom used to derivate the transform. | |
| transform | The partial derivative of the transform. |
Implements I3DExNewConstraint.
| virtual void MCCOMAPI TBasicNewConstraint::ConstrainsTransform | ( | TTreeTransform & | transform | ) | const [virtual] |
Modify the tree transform to apply the contraints.
| transform | A reference to a tree transform (this parameter is in and out). |
Implements I3DExNewConstraint.
1.5.3