All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PatchTables::PatchArray Class Reference

Describes an array of patches of the same type. More...

#include <patchTables.h>

Classes

struct  ArrayRange
 Describes the range of patches in a PatchArray. More...
 
struct  ArrayRange
 Describes the range of patches in a PatchArray. More...
 

Public Member Functions

 PatchArray (Descriptor desc, unsigned int vertIndex, unsigned int patchIndex, unsigned int npatches, unsigned int quadOffsetIndex)
 Constructor. More...
 
Descriptor GetDescriptor () const
 Returns a patch descriptor defining the type of patches in the array. More...
 
ArrayRange const & GetArrayRange () const
 Returns a array range struct. More...
 
unsigned int GetVertIndex () const
 Returns the index of the first control vertex of the first patch of this array in the global PTable. More...
 
unsigned int GetPatchIndex () const
 Returns the global index of the first patch in this array (Used to access param / fvar table data) More...
 
unsigned int GetNumPatches () const
 Returns the number of patches in the array. More...
 
unsigned int GetQuadOffsetIndex () const
 Returns the index to the first entry in the QuadOffsetTable. More...
 

Friends

class PatchTablesFactory
 

Detailed Description

Describes an array of patches of the same type.

Definition at line 217 of file patchTables.h.

Constructor & Destructor Documentation

PatchArray ( Descriptor  desc,
unsigned int  vertIndex,
unsigned int  patchIndex,
unsigned int  npatches,
unsigned int  quadOffsetIndex 
)
inline

Constructor.

Parameters
descdescriptor information for the patches in the array
vertIndexabsolute index to the first control vertex of the first patch in the PTable
patchIndexabsolute index of the first patch in the array
npatchesnumber of patches in the array
quadOffsetIndexabsolute index of the first quad offset entry

Definition at line 236 of file patchTables.h.

Member Function Documentation

ArrayRange const& GetArrayRange ( ) const
inline

Returns a array range struct.

Definition at line 270 of file patchTables.h.

Descriptor GetDescriptor ( ) const
inline

Returns a patch descriptor defining the type of patches in the array.

Definition at line 240 of file patchTables.h.

unsigned int GetNumPatches ( ) const
inline

Returns the number of patches in the array.

Definition at line 287 of file patchTables.h.

unsigned int GetPatchIndex ( ) const
inline

Returns the global index of the first patch in this array (Used to access param / fvar table data)

Definition at line 282 of file patchTables.h.

unsigned int GetQuadOffsetIndex ( ) const
inline

Returns the index to the first entry in the QuadOffsetTable.

Definition at line 292 of file patchTables.h.

unsigned int GetVertIndex ( ) const
inline

Returns the index of the first control vertex of the first patch of this array in the global PTable.

Definition at line 276 of file patchTables.h.

Friends And Related Function Documentation

friend class PatchTablesFactory
friend

Definition at line 297 of file patchTables.h.


The documentation for this class was generated from the following file: