AlPointConstraint
Interface to IK point constraint data.
Synopsis
#include <AlPointConstraint.h>
class AlPointConstraint : public AlConstraint
AlPointConstraint();
virtual ~AlPointConstraint();
virtual AlObject* copyWrapper() const;
statusCode create( AlDagNode*, AlDagNode* );
virtual AlObjectType type() const;
virtual AlPointConstraint* asPointConstraintPtr();
statusCode point( double[3] ) const;
Description
The AlPointConstraint class allows access to the IK point constraint information on an AlJoint. This class is derived from the AlConstraint class.
(See the discussion of skeletons, joints, contraints, ik, etc. in the Alias Studio manuals for a full description.)
Summary
AlPointConstraint::AlPointConstraint()
Description
Constructs an AlPointConstraint wrapper object.
AlPointConstraint::~AlPointConstraint()
Description
Deletes an AlPointConstraint wrapper object.
AlObject *AlPointConstraint::copyWrapper() const
Description
Wrapper object duplicator for AlPointConstraint.
statusCode AlPointConstraint::create( AlDagNode* srcNode, AlDagNode* destNode )
Description
This method performs all the initialization necessary to attach the constraint node to the dag node as an point constraint. A dag node can not be constrained to itself.
Arguments
< srcNode - AlDagNode this constraint is to be added to.
< destNode - The AlDagNode that srcNode will be constrained to.
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 AlPointConstraint::type() const
Description
Returns the class identifier kPointConstraintType;
AlPointConstraint* AlPointConstraint::asPointConstraintPtr()
Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class.
statusCode AlPointConstraint::point( double pnt[3] ) const
Description
Returns the coordinates of the point being constrained to.
aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.