The Joint object represents a Kinematic Joint property of a ChainBone or ChainEffector object.
using namespace XSI; Application app; Model root = app.GetActiveSceneRoot(); Null null1; root.AddNull(L"UpVectorReference",null1); Null null2; root.AddNull(L"PreferredAxisPreference",null2); ChainRoot myChainRoot; root.Add3DChain( MATH::CVector3(0,0,0), MATH::CVector3(1,0,0), MATH::CVector3(0,0,1), L"", myChainRoot); CRefArray boneRefArray = myChainRoot.GetBones(); Joint myJoint(ChainBone(boneRefArray.GetItem(0)).GetJoint()); myJoint.PutParameterValue(L"resplane",(LONG)siUpVectorPlane); myJoint.PutUpVectorReference(null1); myJoint.PutPreferredAxisReference(null2);
#include <xsi_joint.h>
Public Member Functions | |
Joint () | |
~Joint () | |
Joint (const CRef &in_ref) | |
Joint (const Joint &in_obj) | |
bool | IsA (siClassID in_ClassID) const |
siClassID | GetClassID () const |
Joint & | operator= (const Joint &in_obj) |
Joint & | operator= (const CRef &in_ref) |
X3DObject | GetUpVectorReference () const |
CStatus | PutUpVectorReference (const X3DObject &in_UpVectorReference) const |
X3DObject | GetPreferredAxisReference () const |
CStatus | PutPreferredAxisReference (const X3DObject &in_PreferredAxisReference) |
Joint | ( | ) |
Default constructor.
~Joint | ( | ) |
Default destructor.
bool IsA | ( | siClassID | in_ClassID | ) | const [virtual] |
Returns true if a given class type is compatible with this API class.
in_ClassID | class type. |
Reimplemented from Property.
siClassID GetClassID | ( | ) | const [virtual] |
Creates an object from another object. The newly created object is set to empty if the input object is not compatible.
in_obj | constant class object. |
X3DObject GetUpVectorReference | ( | ) | const |
Sets the X3DObject object acting as the upvector reference.
in_UpVectorReference | X3DObject that will act as the upvector reference. |
X3DObject GetPreferredAxisReference | ( | ) | const |
Sets the X3DObject object acting as the preferred axis reference.
in_PreferredAxisReference | X3DObject that will act as the preferred axis reference. |