Ptex
|
#include <PtexReader.h>
Public Member Functions | |
TiledFace (void **parent, PtexCacheImpl *cache, Res res, Res tileres, int levelid, PtexReader *reader) | |
virtual PtexFaceData * | getTile (int tile) |
Access a tile from the data block. More... | |
void | readTile (int tile, FaceData *&data) |
![]() | |
TiledFaceBase (void **parent, PtexCacheImpl *cache, Res res, Res tileres, DataType dt, int nchan) | |
virtual void | release () |
Release resources held by this pointer (pointer becomes invalid). More... | |
virtual bool | isConstant () |
True if this data block is constant. More... | |
virtual void | getPixel (int u, int v, void *result) |
Read a single texel from the data block. More... | |
virtual void * | getData () |
Access the data from this data block. More... | |
virtual bool | isTiled () |
True if this data block is tiled. More... | |
virtual Ptex::Res | tileRes () |
Resolution of each tile in this data block. More... | |
virtual void | reduce (FaceData *&, PtexReader *, Res newres, PtexUtils::ReduceFn) |
Res | tileres () const |
int | ntilesu () const |
int | ntilesv () const |
int | ntiles () const |
![]() | |
FaceData (void **parent, PtexCacheImpl *cache, Res res, int size) | |
virtual Ptex::Res | res () |
Resolution of the texture held by this data block. More... | |
virtual void | reduce (FaceData *&, PtexReader *, Res newres, PtexUtils::ReduceFn)=0 |
![]() | |
PtexCachedData (void **parent, PtexCacheImpl *cache, int size) | |
void | ref () |
void | unref () |
![]() | |
bool | inuse () |
void | orphan () |
Protected Attributes | |
PtexReader * | _reader |
int | _levelid |
safevector< FaceDataHeader > | _fdh |
safevector< FilePos > | _offsets |
![]() | |
Res | _tileres |
DataType | _dt |
int | _nchan |
int | _ntilesu |
int | _ntilesv |
int | _ntiles |
int | _pixelsize |
safevector< FaceData * > | _tiles |
![]() | |
Res | _res |
![]() | |
PtexCacheImpl * | _cache |
Friends | |
class | PtexReader |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static void | orphanList (T &list) |
![]() | |
virtual | ~TiledFaceBase () |
![]() | |
void | incSize (int size) |
virtual | ~PtexCachedData () |
![]() | |
PtexLruItem (void **parent=0) | |
virtual | ~PtexLruItem () |
![]() | |
virtual | ~PtexFaceData () |
Destructor not for public use. Use release() instead. More... | |
Definition at line 391 of file PtexReader.h.
|
inline |
Definition at line 393 of file PtexReader.h.
|
inlinevirtual |
Access a tile from the data block.
Tiles are accessed in v-major order.
Implements PtexFaceData.
Definition at line 404 of file PtexReader.h.
References PtexCachedData::ref().
void PtexReader::TiledFace::readTile | ( | int | tile, |
FaceData *& | data | ||
) |
Definition at line 673 of file PtexReader.cpp.
References PtexCachedFile::_cache, PtexCacheImpl::cachelock, PtexInternal::_SpinLock::lock(), PtexCacheImpl::purgeData(), PtexCachedData::ref(), and PtexInternal::_SpinLock::unlock().
|
friend |
Definition at line 415 of file PtexReader.h.
|
protected |
Definition at line 418 of file PtexReader.h.
Referenced by PtexReader::readFaceData().
|
protected |
Definition at line 417 of file PtexReader.h.
|
protected |
Definition at line 419 of file PtexReader.h.
Referenced by PtexReader::readFaceData().
|
protected |
Definition at line 416 of file PtexReader.h.