All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PatchParam::BitField Struct Reference

#include <patchParam.h>

Public Member Functions

void Set (short u, short v, unsigned char rots, unsigned char depth, bool nonquad)
 Sets the values of the bit fields. More...
 
unsigned short GetU () const
 Returns the log2 value of the u parameter at the top left corner of the patch. More...
 
unsigned short GetV () const
 Returns the log2 value of the v parameter at the top left corner of the patch. More...
 
unsigned char GetRotation () const
 Returns the rotation of the patch (the number of CCW parameter winding) More...
 
bool NonQuadRoot () const
 True if the parent coarse face is a non-quad. More...
 
float GetParamFraction () const
 Returns the fratcion of normalized parametric space covered by the sub-patch. More...
 
unsigned char GetDepth () const
 Returns the level of subdivision of the patch. More...
 
void Normalize (float &u, float &v) const
 
void Rotate (float &u, float &v) const
 Rotate (u,v) pair to compensate for transition pattern and boundary orientations. More...
 
void Clear ()
 Resets the values to 0. More...
 

Public Attributes

unsigned int field:32
 

Detailed Description

Definition at line 62 of file patchParam.h.

Member Function Documentation

void Clear ( )
inline

Resets the values to 0.

Definition at line 121 of file patchParam.h.

unsigned char GetDepth ( ) const
inline

Returns the level of subdivision of the patch.

Definition at line 101 of file patchParam.h.

float GetParamFraction ( ) const
inline

Returns the fratcion of normalized parametric space covered by the sub-patch.

Definition at line 149 of file patchParam.h.

unsigned char GetRotation ( ) const
inline

Returns the rotation of the patch (the number of CCW parameter winding)

Definition at line 91 of file patchParam.h.

unsigned short GetU ( ) const
inline

Returns the log2 value of the u parameter at the top left corner of the patch.

Definition at line 84 of file patchParam.h.

unsigned short GetV ( ) const
inline

Returns the log2 value of the v parameter at the top left corner of the patch.

Definition at line 88 of file patchParam.h.

bool NonQuadRoot ( ) const
inline

True if the parent coarse face is a non-quad.

Definition at line 94 of file patchParam.h.

void Normalize ( float &  u,
float &  v 
) const
inline

The (u,v) pair is normalized to this sub-parametric space.

Parameters
uu parameter
vv parameter

Definition at line 158 of file patchParam.h.

void Rotate ( float &  u,
float &  v 
) const
inline

Rotate (u,v) pair to compensate for transition pattern and boundary orientations.

Parameters
uu parameter
vv parameter

Definition at line 172 of file patchParam.h.

void Set ( short  u,
short  v,
unsigned char  rots,
unsigned char  depth,
bool  nonquad 
)
inline

Sets the values of the bit fields.

Parameters
uvalue of the u parameter for the first corner of the face
vvalue of the v parameter for the first corner of the face
rotsrotations required to reproduce CCW face-winding
depthsubdivision level of the patch
nonquadtrue if the root face is not a quad

Definition at line 74 of file patchParam.h.

Member Data Documentation

unsigned int field

Definition at line 63 of file patchParam.h.


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