OBJ_UVCache Class Reference

#include <OBJ_UVCache.h>

List of all members.

Public Member Functions

 OBJ_UVCache (const GU_Detail *gdp, const char *uvname, bool wrapu, float minu, float maxu, bool wrapv, float minv, float maxv)
 ~OBJ_UVCache ()
bool isCacheValid (const GU_Detail *gdp, const char *uvname, bool assumeuvconstant, bool wrapu, float minu, float maxu, bool wrapv, float minv, float maxv) const
void addPrimitive (const GEO_Primitive *prim, const GB_AttributeRef &uvoff, bool isvertex)
void wrapUV (float &newu, float &newv, float oldu, float oldv)
bool getCell (float u, float v, int &cu, int &cv)
int getPrimitive (const GU_Detail *gdp, float u, float v, float &pu, float &pv)
bool testPolygon (const GEO_PrimPoly *poly, const GB_AttributeRef &uvoff, bool isvertex, float u, float v, float &pu, float &pv)
bool testHull (const GEO_Hull *hull, const GB_AttributeRef &uvoff, bool isvertex, float u, float v, float &pu, float &pv)

Protected Attributes

UT_String myUVName
int myNumPoly
float myMinU
float myMaxU
float myMinV
float myMaxV
bool myWrapU
bool myWrapV
int myResU
int myResV
UT_IntArray *** myPrimTable
int myGdpID
int myGdpMetaCount


Detailed Description

Definition at line 36 of file OBJ_UVCache.h.


Constructor & Destructor Documentation

OBJ_UVCache::OBJ_UVCache ( const GU_Detail gdp,
const char *  uvname,
bool  wrapu,
float  minu,
float  maxu,
bool  wrapv,
float  minv,
float  maxv 
)

OBJ_UVCache::~OBJ_UVCache (  ) 


Member Function Documentation

void OBJ_UVCache::addPrimitive ( const GEO_Primitive prim,
const GB_AttributeRef uvoff,
bool  isvertex 
)

bool OBJ_UVCache::getCell ( float  u,
float  v,
int &  cu,
int &  cv 
)

int OBJ_UVCache::getPrimitive ( const GU_Detail gdp,
float  u,
float  v,
float &  pu,
float &  pv 
)

bool OBJ_UVCache::isCacheValid ( const GU_Detail gdp,
const char *  uvname,
bool  assumeuvconstant,
bool  wrapu,
float  minu,
float  maxu,
bool  wrapv,
float  minv,
float  maxv 
) const

bool OBJ_UVCache::testHull ( const GEO_Hull hull,
const GB_AttributeRef uvoff,
bool  isvertex,
float  u,
float  v,
float &  pu,
float &  pv 
)

bool OBJ_UVCache::testPolygon ( const GEO_PrimPoly poly,
const GB_AttributeRef uvoff,
bool  isvertex,
float  u,
float  v,
float &  pu,
float &  pv 
)

void OBJ_UVCache::wrapUV ( float &  newu,
float &  newv,
float  oldu,
float  oldv 
)


Member Data Documentation

int OBJ_UVCache::myGdpID [protected]

Definition at line 90 of file OBJ_UVCache.h.

int OBJ_UVCache::myGdpMetaCount [protected]

Definition at line 90 of file OBJ_UVCache.h.

float OBJ_UVCache::myMaxU [protected]

Definition at line 81 of file OBJ_UVCache.h.

float OBJ_UVCache::myMaxV [protected]

Definition at line 82 of file OBJ_UVCache.h.

float OBJ_UVCache::myMinU [protected]

Definition at line 81 of file OBJ_UVCache.h.

float OBJ_UVCache::myMinV [protected]

Definition at line 82 of file OBJ_UVCache.h.

int OBJ_UVCache::myNumPoly [protected]

Definition at line 80 of file OBJ_UVCache.h.

Definition at line 88 of file OBJ_UVCache.h.

int OBJ_UVCache::myResU [protected]

Definition at line 84 of file OBJ_UVCache.h.

int OBJ_UVCache::myResV [protected]

Definition at line 84 of file OBJ_UVCache.h.

Definition at line 79 of file OBJ_UVCache.h.

bool OBJ_UVCache::myWrapU [protected]

Definition at line 83 of file OBJ_UVCache.h.

bool OBJ_UVCache::myWrapV [protected]

Definition at line 83 of file OBJ_UVCache.h.


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

Generated on Mon Jan 28 00:29:43 2013 for HDK by  doxygen 1.5.9