#include <Constraint.h>
Inheritance diagram for CSLConstraint:

Public Types |
|
| enum | EConstraintType { SI_SCALING, SI_ORIENTATION, SI_DIRECTION, SI_POSITION, SI_INTEREST, SI_UP_VECTOR, SI_PREFERED_AXIS } |
Public Member Functions |
|
| CSLConstraint (CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate, EConstraintType in_ConstraintType) | |
| virtual | ~CSLConstraint () |
| CSLModel * | GetReference () |
| EConstraintType | GetConstraintType () |
| SI_Error | AddConstrainingObject (CSLModel *in_pConstrainingObject) |
| SI_Int | GetConstrainingObjectCount () |
| CSLModel ** | ConstrainingObjects () |
| SI_Error | RemoveConstrainingObject (SI_Int in_nIndex) |
| SI_Error | RemoveConstrainingObject (CSLModel *in_pConstrainingObject) |
| SI_Error | ClearConstrainingObjects () |
| CSLConstraint * | CreateUpVector () |
| CSLConstraint * | UpVector () |
| SI_Error | DestroyUpVector () |
| CSLConstraint * | ConnectUpVector (CSLConstraint *in_pUpVector) |
| CSLModel * | ConnectConstrainingObject (CSLModel *in_pModel) |
| virtual SI_Error | Synchronize () |
| virtual ETemplateType | Type () |
Describes a constraint (see the SI_Constraint template reference).
| enum EConstraintType |
The EConstraintType enum contains possible types for a constraint
| CSLConstraint | ( | CSLScene * | in_pScene, | |
| CSLModel * | in_pModel, | |||
| CdotXSITemplate * | in_pTemplate, | |||
| EConstraintType | in_ConstraintType | |||
| ) |
Constructor
| [in] | in_pScene | Pointer to the scene containing the constraint |
| [in] | in_pModel | Pointer to the model containing the constraint |
| [in] | in_pTemplate | Pointer to the CdotXSITemplate containing the constraint |
| [in] | in_ConstraintType | Type of constraint to add |
| virtual ~CSLConstraint | ( | ) | [virtual] |
Destructor
| CSLModel* GetReference | ( | ) |
Returns the reference model of the constraint.
| EConstraintType GetConstraintType | ( | ) |
Returns the type of the constraint.
Adds a new constraining object to the constraint.
| [in] | in_pConstrainingObject | Pointer to the constraining object. |
| SI_Int GetConstrainingObjectCount | ( | ) |
Returns the number of constraining objects in the constraint.
| CSLModel** ConstrainingObjects | ( | ) |
Returns an array of all constraining objects in the constraint.
| SI_Error RemoveConstrainingObject | ( | SI_Int | in_nIndex | ) |
Removes a single constraining object from the constraint.
| [in] | in_nIndex | Index of the constraining object to remove. |
Removes a single constraining object from the constraint.
| [in] | in_pConstrainingObject | Pointer to the constraining object (model) to remove. |
| SI_Error ClearConstrainingObjects | ( | ) |
Removes all constraining objects from the constraint.
| CSLConstraint* CreateUpVector | ( | ) |
Creates a up vector constraint on the constraint.
| CSLConstraint* UpVector | ( | ) |
Returns the up vector constraint of the constraint.
| SI_Error DestroyUpVector | ( | ) |
Destroys the up vector constraint of the constraint.
| CSLConstraint* ConnectUpVector | ( | CSLConstraint * | in_pUpVector | ) |
Connects with an up vector constraint
| [in] | in_pUpVector | the up vector constraint to connect to |
Connects with a constraining object
| [in] | in_pModel | the constraining object to connect to |
| virtual SI_Error Synchronize | ( | ) | [virtual] |
Synchronizes this constraint instance with its IO layer representation
| SI_Error::SI_SUCCESS | this function always returns SI_SUCCESS |
Reimplemented from CSLTemplate.
| virtual ETemplateType Type | ( | ) | [inline, virtual] |
Returns the template type of the constraint
| CSLTemplate::SI_CONSTRAINT | The template type |
Implements CSLTemplate.