HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OBJ_UVCache Class Reference

#include <OBJ_UVCache.h>

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 GA_ROAttributeRef &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 GA_ROAttributeRef &uvoff, bool isvertex, float u, float v, float &pu, float &pv)
 
bool testHull (const GEO_Hull *hull, const GA_ROAttributeRef &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 24 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 GA_ROAttributeRef 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 GA_ROAttributeRef uvoff,
bool  isvertex,
float  u,
float  v,
float &  pu,
float &  pv 
)
bool OBJ_UVCache::testPolygon ( const GEO_PrimPoly poly,
const GA_ROAttributeRef 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 78 of file OBJ_UVCache.h.

int OBJ_UVCache::myGdpMetaCount
protected

Definition at line 78 of file OBJ_UVCache.h.

float OBJ_UVCache::myMaxU
protected

Definition at line 69 of file OBJ_UVCache.h.

float OBJ_UVCache::myMaxV
protected

Definition at line 70 of file OBJ_UVCache.h.

float OBJ_UVCache::myMinU
protected

Definition at line 69 of file OBJ_UVCache.h.

float OBJ_UVCache::myMinV
protected

Definition at line 70 of file OBJ_UVCache.h.

int OBJ_UVCache::myNumPoly
protected

Definition at line 68 of file OBJ_UVCache.h.

UT_IntArray*** OBJ_UVCache::myPrimTable
protected

Definition at line 76 of file OBJ_UVCache.h.

int OBJ_UVCache::myResU
protected

Definition at line 72 of file OBJ_UVCache.h.

int OBJ_UVCache::myResV
protected

Definition at line 72 of file OBJ_UVCache.h.

UT_String OBJ_UVCache::myUVName
protected

Definition at line 67 of file OBJ_UVCache.h.

bool OBJ_UVCache::myWrapU
protected

Definition at line 71 of file OBJ_UVCache.h.

bool OBJ_UVCache::myWrapV
protected

Definition at line 71 of file OBJ_UVCache.h.


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