Public Member Functions | Public Attributes

InitJointData3 Class Reference

Search for all occurrences

Detailed Description



class InitJointData3 : public InitJointData2

Description:
An extention to Class InitJointData2 to support various Spring parameters that are missing in InitJointData and InitJointData2. It is designed for arguments of type InitJointData2.

Data Members:


bool springOn[3];

The Spring On settings. Index 0=X, 1=Y, 2=Z.

Point3 spring;

The Spring value

Point3 springTension;

The Spring Tension value

Remarks:
A pointer of InitJointData2 can be tested and downcast to InitJointData3 via the following two inlines: IsInitJointData3(InitJointData2*) and DowncastToJointData3(InitJointData2*).

inline bool IsInitJointData3(InitJointData2* jd)

{

return (jd->flags & bJointData3);

}

inline InitJointData3* DowncastToJointData3(InitJointData2* jd)

{

return IsInitJointData3(jd) ? (InitJointData3*)jd : NULL;

}

#include <control.h>

Inheritance diagram for InitJointData3:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  InitJointData3 ()

Public Attributes

bool  springOn [3]
Point3  spring
Point3  springTension

Constructor & Destructor Documentation

InitJointData3 ( ) [inline]
                    : InitJointData2() {
   active[0] = active[1] = active[2] = FALSE;
   limit[0] = limit[1] = limit[2] = FALSE;
   ease[0] = ease[1] = ease[2] = FALSE;
   min.Set(0.0f, 0.0f, 0.0f);
   max.Set(0.0f, 0.0f, 0.0f);
   damping.Set(0.0f, 0.0f, 0.0f);
   flags |= bJointData3;
   preferredAngle.Set(0.0f, 0.0f, 0.0f);
   springOn[0] = springOn[1] = springOn[2] = false;
   spring.Set(0.0f, 0.0f, 0.0f);
   // from interpik.h:
#define DEF_SPRINGTENS  (0.02f)
   springTension.Set(DEF_SPRINGTENS, DEF_SPRINGTENS, DEF_SPRINGTENS);
#undef DEF_SPRINGTENS
    }

Member Data Documentation

bool springOn[3]

InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3
InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3 InitJointData3