Interface to IK aim constraint data.
#include <AlAimConstraint.h> class AlAimConstraint : public AlConstraint AlAimConstraint(); virtual ~AlAimConstraint(); virtual AlObject* copyWrapper() const; statusCode create(AlDagNode*, AlDagNode*, AlAimConstraintAxis, AlAimConstraintAxis ); statusCode create(AlDagNode*, AlDagNode*, AlAimConstraintAxis, AlAimConstraintAxis, double[2] ); virtual AlObjectType type() const; AlAimConstraintAxis aimAxis( void ) const; AlAimConstraintAxis upAxis( void ) const; statusCode at( double[3] ) const; statusCode setAimAxis( AlAimConstraintAxis ); statusCode setUpAxis( AlAimConstraintAxis );
The AlAimConstraint class allows access to the IK aim constraint information on an AlJoint. This class is derived from the AlConstraint class.
(See the discussion of skeletons, joints, constraints, IK, and so on, in the printed reference manuals for a full description.)
Constructs an AlAimConstraint wrapper object.
Deletes an AlAimConstraint wrapper object.
Wrapper object duplicator for AlAimConstraint.
Does all the initialization necessary to attach the constraint node to the DAG node as an aim constraint. A DAG node can not be constrained to itself.
< srcNode - AlDagNode this constraint is to be added to
< destNode - AlDagNode that srcNode is constrained to
< aim - the axis this constraint is tied to
< up - the up axis which completes the constraint
sInvalidArgument - one of the arguments was wrong or tried to constrain a node to itself
sInsufficientMemory - ran out of memory
sFailure - failed to add the constraint
sSuccess - successfully added the constraint
This method does all the initialization necessary to attach the constraint node to the dag node as an uv aim constraint. A dag node can not be constrained to itself. The destNode must be spline geometry node, for example, spline curve or a spline surface.
< srcNode - AlDagNode this constraint is to be added to.
< destNode - AlDagNode that srcNode is constrained to.
< aim - The axis this constraint is tied to.
< up - The up axis which completes the constraint.
< uv[2] - The uv parameter on destNode that srcNode is constrained to. If the destNode is a curve, only uv[0] is used.
sInvalidArgument - one of the arguments was wrong or tried to constrain a node to itself.
sInsufficientMemory - ran out of memory.
sFailure - failed to add the constraint.
sSuccess - successfully added the constraint.
Returns the class identifier kAimConstraintType;
Returns the aim axis associated with this constraint.
Returns the up axis associated with this constraint.
Puts the aimed-at point into the passed-in argument. Returns a statusCode indicating whether the method was successful.
Sets the aim axis for this constraint to the passed-in argument.
Sets the up axis for this constraint to the passed-in argument.