Describes the type of a patch. More...
#include <patchTables.h>
Classes | |
class | iterator |
Descriptor iterator class. More... | |
class | iterator |
Descriptor iterator class. More... | |
Public Types | |
enum | PrimType { ANY, FEATURE_ADAPTIVE_CATMARK } |
Public Member Functions | |
Descriptor () | |
Default constructor. More... | |
Descriptor (int type, int pattern, unsigned char rotation) | |
Constructor. More... | |
Descriptor (Descriptor const &d) | |
Copy Constructor. More... | |
Type | GetType () const |
Returns the type of the patch. More... | |
TransitionPattern | GetPattern () const |
Returns the transition pattern of the patch if any (5 types) More... | |
unsigned char | GetRotation () const |
Returns the rotation of the patch (4 rotations) More... | |
short | GetNumControlVertices () const |
Returns the number of control vertices expected for a patch of the type described. More... | |
short | GetNumFVarControlVertices () const |
Returns the number of control vertices expected for a patch of the type described. More... | |
bool | operator< (Descriptor const other) const |
Allows ordering of patches by type. More... | |
bool | operator== (Descriptor const other) const |
True if the descriptors are identical. More... | |
Static Public Member Functions | |
static short | GetNumControlVertices (Type t) |
Returns the number of control vertices expected for a patch of the type described. More... | |
static short | GetNumFVarControlVertices (Type t) |
static std::vector< Descriptor > const & | GetAllValidDescriptors () |
Returns a vector of all the legal patch descriptors. More... | |
static iterator | begin (PrimType type) |
Returns a patch type iterator. More... | |
static iterator | end () |
Returns an iterator to the end of the list of patch types (NON_PATCH) More... | |
Friends | |
class | PatchTablesFactory |
class | iterator |
Describes the type of a patch.
Uniquely identifies all the types of patches in a mesh :
An iterator class is provided as a convenience to enumerate over the set of valid feature adaptive patch descriptors.
Definition at line 102 of file patchTables.h.
enum PrimType |
Enumerator | |
---|---|
ANY | |
FEATURE_ADAPTIVE_CATMARK |
Definition at line 190 of file patchTables.h.
|
inline |
Default constructor.
Definition at line 106 of file patchTables.h.
|
inline |
Constructor.
Definition at line 110 of file patchTables.h.
|
inline |
Copy Constructor.
Definition at line 114 of file patchTables.h.
|
inlinestatic |
Returns a patch type iterator.
type | if type=ANY then the iterater points to type POINTS if type=FEATURE_ADAPTIVE_CATMARK then the iterator points to type NON_TRANSITION REGULAR |
Definition at line 612 of file patchTables.h.
|
inlinestatic |
Returns an iterator to the end of the list of patch types (NON_PATCH)
Definition at line 625 of file patchTables.h.
|
inlinestatic |
Returns a vector of all the legal patch descriptors.
Definition at line 574 of file patchTables.h.
|
inlinestatic |
Returns the number of control vertices expected for a patch of the type described.
Definition at line 676 of file patchTables.h.
|
inline |
Returns the number of control vertices expected for a patch of the type described.
Definition at line 140 of file patchTables.h.
|
inlinestatic |
Definition at line 706 of file patchTables.h.
|
inline |
Returns the number of control vertices expected for a patch of the type described.
Definition at line 146 of file patchTables.h.
|
inline |
Returns the transition pattern of the patch if any (5 types)
Definition at line 123 of file patchTables.h.
|
inline |
Returns the rotation of the patch (4 rotations)
Definition at line 128 of file patchTables.h.
|
inline |
Returns the type of the patch.
Definition at line 118 of file patchTables.h.
|
inline |
Allows ordering of patches by type.
Definition at line 768 of file patchTables.h.
|
inline |
True if the descriptors are identical.
Definition at line 776 of file patchTables.h.
|
friend |
Definition at line 206 of file patchTables.h.
|
friend |
Definition at line 205 of file patchTables.h.