3ds Max C++ API Reference
NURBSCurveOnSurface Class Reference

#include <surf_api.h>

+ Inheritance diagram for NURBSCurveOnSurface:

Public Member Functions

DllExport NURBSCurveOnSurface (void)
 
virtual DllExport ~NURBSCurveOnSurface (void)
 
DllExport NURBSCurveOnSurfaceoperator= (const NURBSCurveOnSurface &curve)
 
DllExport void SetParent (int index)
 
DllExport void SetParentId (NURBSId id)
 
DllExport int GetParent ()
 
DllExport NURBSId GetParentId ()
 
DllExport BOOL GetTrim ()
 
DllExport void SetTrim (BOOL trim)
 
DllExport BOOL GetFlipTrim ()
 
DllExport void SetFlipTrim (BOOL flip)
 
- Public Member Functions inherited from NURBSCVCurve
DllExport NURBSCVCurve (void)
 
virtual DllExport ~NURBSCVCurve (void)
 
DllExport NURBSCVCurveoperator= (const NURBSCVCurve &curve)
 
DllExport void Close (void)
 
DllExport BOOL IsClosed (void)
 
DllExport void SetOrder (int order)
 
DllExport int GetOrder (void)
 
DllExport void SetNumKnots (int num)
 
DllExport int GetNumKnots (void)
 
DllExport void SetNumCVs (int num)
 
DllExport void GetNumCVs (int &num)
 
DllExport int GetNumCVs (void)
 
DllExport double GetKnot (int index)
 
DllExport void SetKnot (int index, double value)
 
DllExport NURBSControlVertexGetCV (int index)
 
DllExport void SetCV (int index, NURBSControlVertex &cv)
 
DllExport void SetTransformMatrix (TimeValue t, SetXFormPacket &xPack)
 
DllExport Matrix3 GetTransformMatrix (TimeValue t)
 
DllExport NURBSAutoParam AutoParam ()
 
DllExport void AutoParam (TimeValue t, NURBSAutoParam param)
 
DllExport void Reparameterize (TimeValue t, NURBSParamaterization param)
 
DllExport void EndsOverlap (BOOL &overlap)
 
DllExport void Refine (TimeValue t, double u)
 
DllExport void Insert (TimeValue t, double u)
 
- Public Member Functions inherited from NURBSCurve
DllExport NURBSCurve (void)
 
virtual DllExport ~NURBSCurve (void)
 
DllExport NURBSCurveoperator= (const NURBSCurve &curve)
 
DllExport BOOL IsClosed (void)
 
DllExport int NumTrimPoints ()
 
DllExport NURBSTrimPoint GetTrimPoint (TimeValue t, int i)
 
DllExport BOOL Evaluate (TimeValue t, double u, Point3 &pt, Point3 &tangent)
 
DllExport void GetParameterRange (TimeValue t, double &uMin, double &uMax)
 
DllExport BOOL GetNURBSData (TimeValue t, int &degree, int &numCVs, NURBSCVTab &cvs, int &numKnots, NURBSKnotTab &knots)
 
DllExport int MatID ()
 
DllExport void MatID (int id)
 
- 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)
 

Friends

class NURBSSet
 

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 NURBSCVCurve
NURBSControlVertexmpCVs
 
double * mpKnots
 
BOOL mClosed
 
int mOrder
 
int mNumKnots
 
int mNumCVs
 
NURBSAutoParam mAutoParam
 
- Protected Attributes inherited from NURBSCurve
int mMatID
 
- 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 NURBSCVCurve.

Description:
This class provides access to the CV curve on surface parameters. These curves can be used for trimming the surface they lie on.

Constructor & Destructor Documentation

◆ NURBSCurveOnSurface()

Remarks
Constructor. The data members are initialized as follows:

mType = kNCurveOnSurface;

mpObject = NULL;

mpNSet = NULL;

mParentId = 0;

mParentIndex = -1;

mTrim = FALSE;

mFlipTrim = FALSE;

◆ ~NURBSCurveOnSurface()

virtual DllExport ~NURBSCurveOnSurface ( void  )
virtual
Remarks
Destructor.

Member Function Documentation

◆ operator=()

DllExport NURBSCurveOnSurface& operator= ( const NURBSCurveOnSurface curve)
Remarks
Assignment operator.
Parameters:
const NURBSCurveOnSurface& curve

The curve to assign.

◆ SetParent()

DllExport void SetParent ( int  index)
Remarks
Sets the index in the NURBSSet of the parent surface.
Parameters:
int index

The index into the NURBSSet of the parent surface.

◆ SetParentId()

DllExport void SetParentId ( NURBSId  id)
Remarks
Sets the NURBSId of the parent.
Parameters:
NURBSId id

The id to set.

◆ GetParent()

DllExport int GetParent ( )
Remarks
Returns the index in the NURBSSet of the specified parent object.

◆ GetParentId()

DllExport NURBSId GetParentId ( )
Remarks
Returns the NURBSId of the parent. Note that a NURBSId won't be valid until the object has been instantiated in the scene.

◆ GetTrim()

DllExport BOOL GetTrim ( )
Remarks
Returns the state of the trim surface toggle.

◆ SetTrim()

DllExport void SetTrim ( BOOL  trim)
Remarks
Sets the state of the trim surface toggle.
Parameters:
BOOL trim

TRUE to trim the surface at the curve; FALSE to not trim.

◆ GetFlipTrim()

DllExport BOOL GetFlipTrim ( )
Remarks
Returns the state of the trim flip toggle.

◆ SetFlipTrim()

DllExport void SetFlipTrim ( BOOL  flip)
Remarks
Sets the state of the trim flip toggle. This controls which portion of the surface is trimmed.
Parameters:
BOOL flip

TRUE for on; FALSE for off.

Friends And Related Function Documentation

◆ NURBSSet

friend class NURBSSet
friend