AlAimConstraint
Interface to IK aim constraint data.
Synopsis
#include <AlAimConstraint.h>
class AlAimConstraint : public AlConstraint
AlAimConstraint();
virtual ~AlAimConstraint();
virtual AlObject* copyWrapper() const;
statusCode create(AlDagNode*, AlDagNode*, AlAimConstraintAxis,
AlAimConstraintAxis );
virtual AlObjectType type() const;
virtual AlAimConstraint* asAimConstraintPtr();
AlAimConstraintAxis aimAxis( void ) const;
AlAimConstraintAxis upAxis( void ) const;
statusCode at( double[3] ) const;
statusCode setAimAxis( AlAimConstraintAxis );
statusCode setUpAxis( AlAimConstraintAxis );
Description
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, contraints, ik, etc. in the printed reference manuals for a full description.)
Summary
AlAimConstraint::AlAimConstraint()
Description
Constructs an AlAimConstraint wrapper object.
AlAimConstraint::~AlAimConstraint()
Description
Deletes an AlAimConstraint wrapper object.
AlObject *AlAimConstraint::copyWrapper() const
Description
Wrapper object duplicator for AlAimConstraint.
statusCode AlAimConstraint::create(AlDagNode* srcNode, AlDagNode* destNode, AlAimConstraintAxis aim, AlAimConstraintAxis up)
Description
This method performs 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.
Arguments
< srcNode - AlDagNode this constraint is to be added to.
< destNode - AlDagNode that srcNode will be constrained to.
< aim - The axis this constraint is tied to.
< up - The up axis which completes the constraint.
Return codes
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.
AlObjectType AlAimConstraint::type() const
Description
Returns the class identifier kAimConstraintType;
AlAimConstraint* AlAimConstraint::asAimConstraintPtr()
Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class.
AlAimConstraintAxis AlAimConstraint::aimAxis( void ) const
Description
Returns the aim axis associated with this constraint.
AlAimConstraintAxis AlAimConstraint::upAxis( void ) const
Description
Returns the up axis associated with this constraint.
statusCode AlAimConstraint::at( double point[3] ) const
Description
Puts the aimed-at point into the passed-in argument. Returns a statusCode indicating whether the method was successful.
statusCode AlAimConstraint::setAimAxis( AlAimConstraintAxis axis )
Description
Sets the aim axis for this constraint to the passed-in argument.
statusCode AlAimConstraint::setUpAxis( AlAimConstraintAxis axis )
Description
Sets the up axis for this constraint to the passed-in argument.
aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.