3ds Max C++ API Reference
Loading...
Searching...
No Matches
InitJointData3 Class Reference



class InitJointData3 : public InitJointData2

More...

#include <C:/adskgit/3dsmax/3dsmax/3dswin/src/maxsdk/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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.

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
921 : InitJointData2() {
922 active[0] = active[1] = active[2] = FALSE;
923 limit[0] = limit[1] = limit[2] = FALSE;
924 ease[0] = ease[1] = ease[2] = FALSE;
925 min.Set(0.0f, 0.0f, 0.0f);
926 max.Set(0.0f, 0.0f, 0.0f);
927 damping.Set(0.0f, 0.0f, 0.0f);
929 preferredAngle.Set(0.0f, 0.0f, 0.0f);
930 springOn[0] = springOn[1] = springOn[2] = false;
931 spring.Set(0.0f, 0.0f, 0.0f);
932 // from interpik.h:
933#define DEF_SPRINGTENS (0.02f)
935#undef DEF_SPRINGTENS
936 }
DWORD flags
Definition control.h:875
Point3 preferredAngle
Definition control.h:874
InitJointData2()
Definition control.h:877
Point3 springTension
Definition control.h:939
Point3 spring
Definition control.h:938
bool springOn[3]
Definition control.h:937
BOOL limit[3]
Definition control.h:856
Point3 damping
Definition control.h:858
BOOL ease[3]
Definition control.h:857
Point3 max
Definition control.h:858
Point3 min
Definition control.h:858
BOOL active[3]
Definition control.h:855
const DWORD bJointData3
Definition control.h:891
#define DEF_SPRINGTENS

Member Data Documentation

◆ springOn

bool springOn[3]

◆ spring

Point3 spring

◆ springTension

Point3 springTension