InitJointData3 Class Reference

InitJointData3 Class Reference

#include <control.h>

Class Description



class InitJointData3 : public InitJointData2

Description:
An extension 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;

}
+ Inheritance diagram for InitJointData3:

Public Member Functions

 InitJointData3 ()
 
- Public Member Functions inherited from InitJointData2
 InitJointData2 ()
 

Public Attributes

bool springOn [3]
 
Point3 spring
 
Point3 springTension
 
- Public Attributes inherited from InitJointData2
Point3 preferredAngle
 
DWORD flags
 
- Public Attributes inherited from InitJointData
BOOL active [3]
 
BOOL limit [3]
 
BOOL ease [3]
 
Point3 min
 
Point3 max
 
Point3 damping
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 

Constructor & Destructor Documentation

InitJointData3 ( )
inline
913  : InitJointData2() {
914  active[0] = active[1] = active[2] = FALSE;
915  limit[0] = limit[1] = limit[2] = FALSE;
916  ease[0] = ease[1] = ease[2] = FALSE;
917  min.Set(0.0f, 0.0f, 0.0f);
918  max.Set(0.0f, 0.0f, 0.0f);
919  damping.Set(0.0f, 0.0f, 0.0f);
920  flags |= bJointData3;
921  preferredAngle.Set(0.0f, 0.0f, 0.0f);
922  springOn[0] = springOn[1] = springOn[2] = false;
923  spring.Set(0.0f, 0.0f, 0.0f);
924  // from interpik.h:
925 #define DEF_SPRINGTENS (0.02f)
927 #undef DEF_SPRINGTENS
928  }
Point3 springTension
Definition: control.h:931
Point3 max
Definition: control.h:850
InitJointData2()
Definition: control.h:869
DWORD flags
Definition: control.h:867
#define DEF_SPRINGTENS
const DWORD bJointData3
Definition: control.h:883
BOOL limit[3]
Definition: control.h:848
Point3 min
Definition: control.h:850
bool springOn[3]
Definition: control.h:929
Point3 damping
Definition: control.h:850
BOOL ease[3]
Definition: control.h:849
Point3 preferredAngle
Definition: control.h:866
BOOL active[3]
Definition: control.h:847
Point3 spring
Definition: control.h:930
Point3 & Set(float X, float Y, float Z)
Definition: point3.h:285

Member Data Documentation

bool springOn[3]
Point3 spring
Point3 springTension