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

#include <patch.h>

+ Inheritance diagram for TVPatch:

Public Member Functions

CoreExport TVPatch ()
 
CoreExport TVPatch (const TVPatch &fromPatch)
 
CoreExport void Init ()
 
CoreExport void setTVerts (int *vrt, int count)
 
CoreExport void setTVerts (int a, int b, int c, int d=0)
 
CoreExport void setTHandles (int *vrt, int count)
 
CoreExport void setTHandles (int a, int b, int c, int d, int e, int f, int g=0, int h=0)
 
CoreExport void setTInteriors (int *vrt, int count)
 
CoreExport void setTInteriors (int a, int b, int c, int d=0)
 
int getTVert (int index)
 
intgetAllTVerts (void)
 
CoreExport TVPatchoperator= (const TVPatch &from)
 
CoreExport IOResult Save (ISave *isave)
 
CoreExport IOResult Load (ILoad *iload)
 

Public Attributes

int tv [4]
 
int handles [8]
 
int interiors [4]
 

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 Patch, Class PatchMesh, Patches and Faces.

Description:
This is a texture vertex patch structure. This is similar to the TVFace class used with a Mesh. All methods of this class are implemented by the system.
Data Members:
int tv[4];

Texture vertices. There are always four here, even for Tri Patches. These are indices in the PatchMesh's tVerts array.

int handles[8];

The UVW vertices for the handles.

int interiors[4];

The UVW interior handles.

Constructor & Destructor Documentation

◆ TVPatch() [1/2]

Remarks
Constructor.

◆ TVPatch() [2/2]

CoreExport TVPatch ( const TVPatch fromPatch)
Remarks
Copy Constructor. The this pointer is set to the fromPatch.

Member Function Documentation

◆ Init()

CoreExport void Init ( )
Remarks
Performs initialization by setting the texture vertices to 0.

◆ setTVerts() [1/2]

CoreExport void setTVerts ( int vrt,
int  count 
)
Remarks
Sets the specified number of texture vertices.
Parameters:
int *vrt

The array of verts to set.

int count

The number to set.

◆ setTVerts() [2/2]

CoreExport void setTVerts ( int  a,
int  b,
int  c,
int  d = 0 
)
Remarks
Sets the texture vertices for a Quad Patch.
Parameters:
int a, int b, int c, int d = 0

The vertices to set: tv[0]=a; tv[1]=b; tv[2]=c; tv[3]=d;

◆ setTHandles() [1/2]

CoreExport void setTHandles ( int vrt,
int  count 
)
Remarks
Sets the specified number of texture (UVW) handles.
Parameters:
int *vrt

The array of handles to set.

int count

The number to set.

◆ setTHandles() [2/2]

CoreExport void setTHandles ( int  a,
int  b,
int  c,
int  d,
int  e,
int  f,
int  g = 0,
int  h = 0 
)
Remarks
Sets the texture (UVW) handles for a Quad Patch.
Parameters:
int a, int b, int c, int d, int e, int f, int g = 0, int h = 0

The handles to set: handles[0]=a; handles[1]=b; handles[2]=c; handles[3]=d; handles[4]=e; handles[5]=f; handles[6]=g; handles[7]=h;

◆ setTInteriors() [1/2]

CoreExport void setTInteriors ( int vrt,
int  count 
)
Remarks
Sets the specified number of interior texture (UVW) handles.
Parameters:
int *vrt

The array of interior handles to set.

int count

The number to set.

◆ setTInteriors() [2/2]

CoreExport void setTInteriors ( int  a,
int  b,
int  c,
int  d = 0 
)
Remarks
Sets the interior texture (UVW) handles for a Quad Patch.
Parameters:
int a, int b, int c, int d = 0

The interior handles to set: interiors[0]=a; interiors[1]=b; interiors[2]=c; interiors[3]=d;

◆ getTVert()

int getTVert ( int  index)
inline
Remarks
Returns the texture vertex specified by the index.
Parameters:
int index

The index of the texture vertex to return.
841{ return tv[index]; }
int tv[4]
Definition: patch.h:777

◆ getAllTVerts()

int * getAllTVerts ( void  )
inline
Remarks
Returns a pointer to the array of texture vertices.
843{ return tv; }

◆ operator=()

CoreExport TVPatch & operator= ( const TVPatch from)
Remarks
Assignment operator.
Parameters:
TVPatch& from

The texture vertex patch to copy from.

◆ Save()

CoreExport IOResult Save ( ISave isave)
Remarks
This method is used internally in saving to the MAX file.

◆ Load()

CoreExport IOResult Load ( ILoad iload)
Remarks
This method is used internally in loading from the MAX file.
Operators:

Member Data Documentation

◆ tv

int tv[4]

◆ handles

int handles[8]

◆ interiors

int interiors[4]