TVPatch Class Reference

#include <patch.h>

Class 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.
+ 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. 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...
 

Constructor & Destructor Documentation

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

Member Function Documentation

CoreExport void Init ( )
Remarks
Performs initialization by setting the texture vertices to 0.
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.
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;
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.
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;
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.
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;
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
int* getAllTVerts ( void  )
inline
Remarks
Returns a pointer to the array of texture vertices.
843 { return tv; }
int tv[4]
Definition: patch.h:777
CoreExport TVPatch& operator= ( const TVPatch from)
Remarks
Assignment operator.
Parameters:
TVPatch& from

The texture vertex patch to copy from.
CoreExport IOResult Save ( ISave isave)
Remarks
This method is used internally in saving to the MAX file.
CoreExport IOResult Load ( ILoad iload)
Remarks
This method is used internally in loading from the MAX file.
Operators:

Member Data Documentation

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