GU_PrimVolumeCache Class Reference

#include <GU_PrimVolumeCache.h>

Inheritance diagram for GU_PrimVolumeCache:

GU_DisplayCache

List of all members.

Public Member Functions

 GU_PrimVolumeCache (void)
virtual ~GU_PrimVolumeCache (void)
int refresh (GU_PrimVolumeCacheParms &parms)
UT_VoxelArray< UT_Vector4 > * getShadedVoxels () const
GU_PrimVolumeTexturegetTexture () const
void setTexture (GU_PrimVolumeTexture *tex)
GU_DetailgetIsoSurface () const
UT_Vector3 getIsoCd () const

Protected Member Functions

void lightVoxelsFromLight (const UT_VoxelArrayF *density, const GU_PrimVolumeCacheLight &light, const UT_Vector3 &cd, fpreal shadowdensity)
void rainbowVoxels (const UT_VoxelArrayF *density)
int getMaxRes (int axis) const
bool indexToPos (int x, int y, int z, UT_Vector3 &pos) const
bool posToIndex (UT_Vector3 pos, int &x, int &y, int &z) const

Protected Attributes

UT_VoxelArray< UT_Vector4 > * myVoxels
UT_RefArray
< GU_PrimVolumeCacheLight
myLightList
GU_PrimVolumeTexturemyTexture
GU_DetailmyIsoSurf
float myOldLOD
UT_Vector3 myIsoCd
UT_Vector3 myCacheRes
UT_Matrix4 myCacheXform
UT_Matrix4 myCacheIXform
const UT_VoxelArrayFmyCacheDensity


Detailed Description

Definition at line 84 of file GU_PrimVolumeCache.h.


Constructor & Destructor Documentation

GU_PrimVolumeCache::GU_PrimVolumeCache ( void   ) 

virtual GU_PrimVolumeCache::~GU_PrimVolumeCache ( void   )  [virtual]


Member Function Documentation

UT_Vector3 GU_PrimVolumeCache::getIsoCd (  )  const [inline]

Definition at line 101 of file GU_PrimVolumeCache.h.

GU_Detail* GU_PrimVolumeCache::getIsoSurface (  )  const [inline]

Definition at line 99 of file GU_PrimVolumeCache.h.

int GU_PrimVolumeCache::getMaxRes ( int  axis  )  const [inline, protected]

Maximum per-axis resolution to do the self shadowing calculations at.

Definition at line 114 of file GU_PrimVolumeCache.h.

UT_VoxelArray<UT_Vector4>* GU_PrimVolumeCache::getShadedVoxels (  )  const [inline]

Definition at line 94 of file GU_PrimVolumeCache.h.

GU_PrimVolumeTexture* GU_PrimVolumeCache::getTexture (  )  const [inline]

Definition at line 95 of file GU_PrimVolumeCache.h.

bool GU_PrimVolumeCache::indexToPos ( int  x,
int  y,
int  z,
UT_Vector3 pos 
) const [protected]

Used to convert to and from our *cached* indices, not the actual primitive indices that may be a different resolution

void GU_PrimVolumeCache::lightVoxelsFromLight ( const UT_VoxelArrayF density,
const GU_PrimVolumeCacheLight light,
const UT_Vector3 cd,
fpreal  shadowdensity 
) [protected]

bool GU_PrimVolumeCache::posToIndex ( UT_Vector3  pos,
int &  x,
int &  y,
int &  z 
) const [protected]

void GU_PrimVolumeCache::rainbowVoxels ( const UT_VoxelArrayF density  )  [protected]

int GU_PrimVolumeCache::refresh ( GU_PrimVolumeCacheParms parms  ) 

void GU_PrimVolumeCache::setTexture ( GU_PrimVolumeTexture tex  )  [inline]

Definition at line 96 of file GU_PrimVolumeCache.h.


Member Data Documentation

Definition at line 131 of file GU_PrimVolumeCache.h.

Definition at line 130 of file GU_PrimVolumeCache.h.

Definition at line 128 of file GU_PrimVolumeCache.h.

Definition at line 129 of file GU_PrimVolumeCache.h.

Definition at line 126 of file GU_PrimVolumeCache.h.

Definition at line 124 of file GU_PrimVolumeCache.h.

Definition at line 122 of file GU_PrimVolumeCache.h.

float GU_PrimVolumeCache::myOldLOD [protected]

Definition at line 125 of file GU_PrimVolumeCache.h.

Definition at line 123 of file GU_PrimVolumeCache.h.

Definition at line 121 of file GU_PrimVolumeCache.h.


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

Generated on Fri May 25 00:10:29 2012 for HDK by  doxygen 1.5.9