3ds Max C++ API Reference
InitJointData3 Class Reference



class InitJointData3 : public InitJointData2

More...

#include <control.h>

+ 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...
 

Detailed 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;

}

Constructor & Destructor Documentation

◆ InitJointData3()

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

Member Data Documentation

◆ springOn

bool springOn[3]

◆ spring

Point3 spring

◆ springTension

Point3 springTension