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

#include <springsys.h>

+ Inheritance diagram for SSConstraintPoint:

Public Member Functions

 SSConstraintPoint ()
 
 SSConstraintPoint (int id)
 
 ~SSConstraintPoint ()
 
SSConstraintPointoperator= (const SSConstraintPoint &from)
 
SSConstraintPoint Copy (const SSConstraintPoint from)
 
int GetIndex ()
 
void SetIndex (int id)
 
Point3 GetPos ()
 
void SetPos (Point3 p)
 
Point3 GetVel ()
 
void SetVel (Point3 v)
 
bool operator== (const SSConstraintPoint &b) const
 

Public Attributes

int index
 This bone index is used to identify the bone.
 
Point3 pos
 The control nodes stored position.
 
Point3 vel
 The control nodes stored velocity.
 

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

See also
Class Point3 , Class SpringSys

This class represents the constraint point object as it is used in the spring system. This controlled particle class is used to constrain a point to an object.

Constructor & Destructor Documentation

◆ SSConstraintPoint() [1/2]

SSConstraintPoint ( )
inline
Remarks
Constructor.
Default Implementation:
{ index = -1; pos = Point3(0.0f, 0.0f, 0.0f);

vel = Point3(0.0f, 0.0f, 0.0f); }
58{index = -1; pos = Point3(0.0f, 0.0f, 0.0f); vel = Point3(0.0f, 0.0f, 0.0f);}
Definition: point3.h:54
Point3 pos
The control nodes stored position.
Definition: springsys.h:50
int index
This bone index is used to identify the bone.
Definition: springsys.h:48
Point3 vel
The control nodes stored velocity.
Definition: springsys.h:52

◆ SSConstraintPoint() [2/2]

SSConstraintPoint ( int  id)
inline
Remarks
Constructor.
Parameters:
int id

The index to initialize with.
Default Implementation:
{index = id; vel = Point3(0,0,0);}
65{index = id; pos = Point3(0.0f, 0.0f, 0.0f); vel = Point3(0,0,0);}

◆ ~SSConstraintPoint()

~SSConstraintPoint ( )
inline
Remarks
Destructor.
Default Implementation:
{ }
69{}

Member Function Documentation

◆ operator=()

SSConstraintPoint & operator= ( const SSConstraintPoint from)
inline
Remarks
Assignment operator.
72 {
73 index = from.index;
74 pos = from.pos;
75 vel = from.vel;
76
77 return *this;
78 }

◆ Copy()

SSConstraintPoint Copy ( const SSConstraintPoint  from)
inline
Remarks
This method allows you to copy the data from the specified SSConstraintPoint.
Parameters:
const SSConstraintPoint from

The object to copy from.
86 {
87 index = from.index;
88 pos = from.pos;
89 vel = from.vel;
90
91 return *this;
92 }

◆ GetIndex()

int GetIndex ( )
inline
Remarks
This method returns the value of the index.
95{ return index; }

◆ SetIndex()

void SetIndex ( int  id)
inline
Remarks
This method allows you to set the index.
97{ index = id; }

◆ GetPos()

Point3 GetPos ( )
inline
Remarks
This method returns the position data.
99{ return pos; }

◆ SetPos()

void SetPos ( Point3  p)
inline
Remarks
This method allows you to set the position data.
Parameters:
Point3 p

The position to set.
104{ pos = p; }

◆ GetVel()

Point3 GetVel ( )
inline
Remarks
This method returns the velocity data.
106{ return vel; }

◆ SetVel()

void SetVel ( Point3  v)
inline
Remarks
This method allows you to set the velocity data.
Parameters:
Point3 v

The velocity data to set.
111{ vel = v; }

◆ operator==()

bool operator== ( const SSConstraintPoint b) const
inline
Remarks
Compares this class instance to another one
115 {
116 return index == b.index && pos == b.pos && vel == b.vel;
117 }
float float b
Definition: texutil.h:51

Member Data Documentation

◆ index

int index

This bone index is used to identify the bone.

Usually refers to a reference index, or paramblock index.

◆ pos

Point3 pos

The control nodes stored position.

◆ vel

Point3 vel

The control nodes stored velocity.