#include <AlJoint.h>
class AlJoint : public AlObject
virtual ~AlJoint();
virtual AlObject* copyWrapper() const;
virtual AlObjectType type() const;
virtual AlJoint* asJointPtr();
AlIKHandle* endEffectorHandle( void ) const;
AlIKHandle* firstRootHandle( void ) const;
AlIKHandle* nextRootHandle( const AlIKHandle* ) const;
statusCode nextRootHandleD( AlIKHandle* ) const;
statusCode applyIteratorToRootHandles( AlIterator*, int& );
statusCode useTransforms( boolean[3], boolean[3] ) const;
statusCode useLimits( boolean[3], boolean[3] ) const;
statusCode rotation( double[3], double[3], int[3] ) const;
statusCode translation( double[3], double[3], int[3] ) const;
statusCode restPose( double[3], double[3] ) const;
statusCode setUseTransforms( const boolean[3], const boolean[3] );
statusCode setUseLimits( const boolean[3], const boolean[3] );
statusCode setRotation( const double[3], const double[3], const int[3]
);
statusCode setTranslation( const double[3], const double[3], const
int[3] );
statusCode setRestPose( const double[3], const double[3] );
boolean charJoint() const;
statusCode charJointLimits(double&, double&, AlJointInterpolationType&)
const;
statusCode charJointLimits(double*, double*, AlJointInterpolationType*)
const;
boolean useBulge() const;
statusCode bulgeAttributes(int*, int*, double*, AlBulgeSections*, int*,
int*, AlDagNodeFields*, AlBulgeRelateTo*, char*, double*)
const;
statusCode setCharJoint(boolean);
statusCode setCharJointLimits(double, double, AlJointInterpolationType);
statusCode setUseBulge(boolean);
statusCode setBulgeAttributes(int, int, double, AlBulgeSections, int,
int, AlDagNodeFields, AlBulgeRelateTo, const char *,
double);
AlDagNode* dagNode( void ) const;
See the discussion of skeletons, joints, constraints, ik, character builder, etc. in the printed reference manuals for a full description.
Briefly, the joint node is used by the inverse kinematic algorithm to define properties of a joint. The character joint attributes are used to define properties of the bone below the joint for skinning operations.
In general, minimum values must be less than maximum values and stiffness values must be between 0 and 100 inclusive.
statusCode AlJoint::useTransforms( boolean translations[3], boolean rotations[3]) const
Description
This method is used to determine which transformations may be used on the joint. Transformations may be toggled on or off using the setUseTransforms() method. If this joint is the root of a single chain IK handle, then all three rotations must be used. Arguments
> translations - boolean array of states for the translations Return codes
sSuccess - if successful statusCode AlJoint::useLimits( boolean translations[3], boolean rotations[3]) const
Description
This method is used to determine whether the limits for the joint transformations should be used. The use of the limits can be toggled on or off using the setUseLimits() method. Arguments
> translations - boolean array of limits for the translations statusCode AlJoint::rotation( double Min[3], double Max[3], int stiffness[3] ) const
Description
This method is used to determine min and max rotations for this joint, as well as the stiffness of the rotations. These values can be set using the setRotation() method. Arguments
> Min - minimum rotation angles Return codes
sSuccess - if successful statusCode AlJoint::translation( double Min[3], double Max[3], int stiffness[3] ) const
Description
This method is used to determine min and max translations for this joint, as well as the stiffness of the translations. These values can be set using the setTranslation() method. Arguments
> Min - minimum translations for the joint Return codes
sSuccess - if successful statusCode AlJoint::restPose( double rotRest[3], double transRest[3] ) const
Description
This method is used to get rest pose of rotations and translations for this joint. These values can be set using the setRestPose() method. Arguments
> rotRest - rest pose of rotations for the joint Return codes
sSuccess - if successful statusCode AlJoint::setUseTransforms( const boolean translations[3], const boolean rotations[3] )
Description
This method is used to toggle on or off which transformations may be used on the joint. TRUE means that the transformation is toggled on and FALSE means that it is toggled off. Arguments
< translations - boolean array of states for the translations Return codes
sSuccess - if successful statusCode AlJoint::setUseLimits(const boolean translations[3], const boolean rotations[3] )
Description
This method is used to toggle on or off whether the limits for the joint transformations should be used. TRUE means that the transformation limits are toggled on and FALSE means that they are toggled off. Arguments
< translations - boolean array of states for the translations Return codes
sSuccess - if successful statusCode AlJoint::setRotation( const double Min[3], const double Max[3], const int stiffness[3] )
Description
This method is used to set min and max rotations for this joint, as well as the stiffness of the rotations. The min must be less than the max, and the stiffness must be between 0 and 100 inclusive. Arguments
< Min - minimum rotation angles Return codes
sSuccess - if successful statusCode AlJoint::setTranslation( const double Min[3], const double Max[3], const int stiffness[3] )
Description
This method is used to set min and max translations for this joint, as well as the stiffness of the translations. The min must be less than the max, and the stiffness must be between 0 and 100 inclusive. Arguments
< Min - minimum for the translations Return codes
sSuccess - if successful statusCode AlJoint::setRestPose( const double rot_rest[3], const double trans_rest[3] )
Description
This method is used to set rest pose of rotations and translations for this joint. If the min and max are out of rest pose, they will be adjusted to to the rest pose. Arguments
< rot_rest - rest pose for the rotations Return codes
sSuccess - if successful boolean AlJoint::charJoint() const
Description
This method is used to determine whether this particular joint is a character joint, and thus has character joint attributes. If this joint is a character joint, TRUE is returned otherwise FALSE is returned. statusCode AlJoint::charJointLimits(double *upper, double *lower,AlJointInterpolationType *interpolation) const
Description
OBSOLETE. Use charJointLimits(double &, double &, intertype&) instead. statusCode AlJoint::charJointLimits(double &upper, double &lower,AlJointInterpolationType &interpolation) const
Description
This method returns the upper and lower limits of the character joint bounds around this joint. It also returns the interpolation type used to interpolate cluster percentages on the CVs between the lower and upper bound. Arguments
> double &upper - upper limit of the joint bound Return codes
sSuccess - if successful boolean AlJoint::useBulge() const
Description
This method returns TRUE if the character joint specifies there to be bulging effects in the bone(s) below this joint. Otherwise, this method returns FALSE. statusCode AlJoint::bulgeAttributes(int *bulgeCode, int *bulgeOrient,double *bulgeScale, AlBulgeSections *bulgeSections,int *sectionsAround, int *sectionsAlong,AlDagNodeFields *relateToParameter, AlBulgeRelateTo *relateTo,char *relateToNode, double *bulgeRange) const
Description
This method is used to get the bulge attributes on a character joint. If any argument is NULL, then the attributes are not returned. Note that if the 'relateToNode' parameter is non-NULL, then a strcpy() will be used to assign the name of the node. It is up to the caller of this routine to ensure that enough memory is allocated by relateToNode. Arguments
See the method AlJoint::setBulgeAttributes(). Return codes
sSuccess - if successful statusCode AlJoint::setCharJoint(boolean isCharJoint)
Description
If isCharJoint is TRUE, this method makes this joint into a character joint. If isCharJoint is FALSE, the joint becomes just an ordinary non-character joint. Arguments
< isCharJoint - boolean to decide whether to make this a character joint Return codes
sSuccess - if successful statusCode AlJoint::setCharJointLimits(double upper, double lower,AlJointInterpolationType interpolation)
Description
This method sets the upper and lower joint bounds limits on the character joint. These bounds are the percentage along the bone above and below the joint. The values must be between 0 and 1. It also sets the interpolation type to be used between these two bounds. Arguments
< upper - upper joint bounds limit Return codes
sSuccess - if successful statusCode AlJoint::setUseBulge(boolean useBulge)
Description
This method is used to describe this character joint as one defining a bulge or not. If useBulge is TRUE, then the bones below this joint will receive bulging effects. Return codes
sSuccess - if successful statusCode AlJoint::setBulgeAttributes(int bulgeCode, int bulgeOrient,double bulgeScale, AlBulgeSections bulgeSections,int sectionsAround, int sectionsAlong,AlDagNodeFields relateToParameter, AlBulgeRelateTo relateTo,const char *relateToNode, double bulgeRange)
Description
This method is used to set the bulge attributes for a character joint. The bulge attributes apply to the bone(s) below this joint. Each of the bulge attributes are described below
Return codes
sSuccess - if successful