Interface to IK constraint data.
#include <AlConstraint.h>
class AlConstraint : public AlObject , public AlAnimatable
virtual ~AlConstraint();
virtual statusCode deleteObject();
virtual AlObjectType type() const;
virtual AlAnimatable* asAnimatablePtr( void );
AlConstraint* next( void ) const;
boolean on() const;
double weight() const;
boolean isUVConstraint() const;
statusCode uv( double[2] ) const;
statusCode setOn( boolean );
statusCode setWeight( double );
statusCode setUV( double[2] );
AlDagNode* sourceNode( void ) const;
AlDagNode* destinationNode( void ) const;
The AlConstraint class allows access to the IK constraint information on an AlJoint.
(See the discussion of skeletons, joints, constraints, ik, and so on, in the printed reference manuals for a full description.)
Briefly, the constraint data constrains the joint node to another object. The constraint can be a point constraint, an orientation constraint, or an aim constraint.
This is the base class for constraints. Point, orientation, and aim constraints are derived from this class.