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...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Constructor & Destructor Documentation

InitJointData3 ( )
inline
918  : InitJointData2() {
919  active[0] = active[1] = active[2] = FALSE;
920  limit[0] = limit[1] = limit[2] = FALSE;
921  ease[0] = ease[1] = ease[2] = FALSE;
922  min.Set(0.0f, 0.0f, 0.0f);
923  max.Set(0.0f, 0.0f, 0.0f);
924  damping.Set(0.0f, 0.0f, 0.0f);
925  flags |= bJointData3;
926  preferredAngle.Set(0.0f, 0.0f, 0.0f);
927  springOn[0] = springOn[1] = springOn[2] = false;
928  spring.Set(0.0f, 0.0f, 0.0f);
929  // from interpik.h:
930 #define DEF_SPRINGTENS (0.02f)
932 #undef DEF_SPRINGTENS
933  }
Point3 springTension
Definition: control.h:936
Point3 max
Definition: control.h:855
InitJointData2()
Definition: control.h:874
DWORD flags
Definition: control.h:872
#define DEF_SPRINGTENS
const DWORD bJointData3
Definition: control.h:888
BOOL limit[3]
Definition: control.h:853
Point3 min
Definition: control.h:855
bool springOn[3]
Definition: control.h:934
Point3 damping
Definition: control.h:855
BOOL ease[3]
Definition: control.h:854
Point3 preferredAngle
Definition: control.h:871
BOOL active[3]
Definition: control.h:852
Point3 spring
Definition: control.h:935
Point3 & Set(float X, float Y, float Z)
Definition: point3.h:307

Member Data Documentation

bool springOn[3]
Point3 spring
Point3 springTension