3ds Max C++ API Reference
NURBSIndependentPoint Class Reference

#include <surf_api.h>

+ Inheritance diagram for NURBSIndependentPoint:

Public Member Functions

DllExport NURBSIndependentPoint (void)
 
virtual DllExport ~NURBSIndependentPoint (void)
 
DllExport NURBSIndependentPointoperator= (const NURBSIndependentPoint &pt)
 
DllExport BOOL operator== (const NURBSIndependentPoint &pt)
 
DllExport BOOL operator!= (const NURBSIndependentPoint &pt)
 
DllExport void SetPosition (TimeValue t, Point3 pt)
 
DllExport void SetPosition (TimeValue t, float x, float y, float z)
 
DllExport void SetPosition (TimeValue t, double x, double y, double z)
 
- Public Member Functions inherited from NURBSPoint
DllExport NURBSPoint ()
 
virtual DllExport Point3 GetPosition (TimeValue t)
 
virtual DllExport void GetPosition (TimeValue t, float &x, float &y, float &z)
 
virtual DllExport void GetPosition (TimeValue t, double &x, double &y, double &z)
 
- Public Member Functions inherited from NURBSObject
DllExport NURBSObject (void)
 
virtual DllExport ~NURBSObject (void)
 
DllExport NURBSObjectoperator= (const NURBSObject &pt)
 
DllExport void SetName (const MCHAR *name)
 
DllExport const MCHARGetName (void)
 
DllExport NURBSType GetType () const
 
DllExport NURBSKind GetKind () const
 
DllExport NURBSId GetId () const
 
DllExport void SetId (NURBSId id)
 
DllExport void SetNSet (NURBSSet *nset)
 
DllExport void SetObject (Object *object)
 
DllExport ObjectGetMAXObject ()
 
DllExport NURBSSetGetNSet ()
 
DllExport int GetIndex ()
 
DllExport BOOL IsSelected ()
 
DllExport void SetSelected (BOOL set)
 

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...
 
- Protected Member Functions inherited from NURBSObject
DllExport void Clean (NURBSIdTab ids)
 
- Protected Attributes inherited from NURBSPoint
double mX
 
double mY
 
double mZ
 
- Protected Attributes inherited from NURBSObject
MCHAR mName [NURBS_NAME_SIZE]
 
NURBSType mType
 
NURBSKind mKind
 
NURBSId mId
 
ObjectmpObject
 
NURBSSetmpNSet
 
BOOL mSelected
 

Detailed Description

See also
Class NURBSPoint.

Description:
This class is used to create an independent, free-standing point. There are methods to set the position of the point in various floating point formats and operators to compare points.

All methods of this class are implemented by the system.

Constructor & Destructor Documentation

◆ NURBSIndependentPoint()

Remarks
Constructor. The data members are initialized as follows:

mType = kNPoint;

mX = mY = mZ = 0.0;

◆ ~NURBSIndependentPoint()

virtual DllExport ~NURBSIndependentPoint ( void  )
virtual
Remarks
Destructor.

Member Function Documentation

◆ operator=()

Remarks
Assignment operator.
Parameters:
const NURBSIndependentPoint& pt

The point to assign.

◆ operator==()

DllExport BOOL operator== ( const NURBSIndependentPoint pt)
Remarks
Equality operator. Compares if the X, Y and Z coordinates are equal.
Parameters:
const NURBSIndependentPoint& pt

The point to compare.
Returns
TRUE if equal; otherwise FALSE.

◆ operator!=()

DllExport BOOL operator!= ( const NURBSIndependentPoint pt)
Remarks
Inequality operator. Compares if the X, Y and Z coordinates are not equal.
Parameters:
const NURBSIndependentPoint& pt

The point to compare.
Returns
TRUE if any of the coordinates are not equal; otherwise FALSE.

◆ SetPosition() [1/3]

DllExport void SetPosition ( TimeValue  t,
Point3  pt 
)
Remarks
Sets the position of the point at the specified time (as a Point3).
Parameters:
TimeValue t

Specifies the time to set the position.

Point3 pt

The position to set.

◆ SetPosition() [2/3]

DllExport void SetPosition ( TimeValue  t,
float  x,
float  y,
float  z 
)
Remarks
Sets the position of the point at the specified time (as floats).
Parameters:
TimeValue t

Specifies the time to set the position.

float x

The X position to set.

float y

The Y position to set.

float z

The Z position to set.

◆ SetPosition() [3/3]

DllExport void SetPosition ( TimeValue  t,
double  x,
double  y,
double  z 
)
Remarks
Sets the position of the point at the specified time (as doubles).
Parameters:
TimeValue t

Specifies the time to set the position.

double x

The X position to set.

double y

The Y position to set.

double z

The Z position to set.
Operators: