Ptex
|
#include <PtexReader.h>
Public Member Functions | |
ConstantFace (void **parent, PtexCacheImpl *cache, int pixelsize) | |
virtual bool | isConstant () |
True if this data block is constant. More... | |
virtual void | getPixel (int, int, void *result) |
Read a single texel from the data block. More... | |
virtual void | reduce (FaceData *&, PtexReader *, Res newres, PtexUtils::ReduceFn) |
![]() | |
PackedFace (void **parent, PtexCacheImpl *cache, Res res, int pixelsize, int size) | |
void * | data () |
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 PtexFaceData * | getTile (int) |
Access a tile from the data block. More... | |
![]() | |
FaceData (void **parent, PtexCacheImpl *cache, Res res, int size) | |
virtual void | release () |
Release resources held by this pointer (pointer becomes invalid). More... | |
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 () |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static void | orphanList (T &list) |
![]() | |
virtual | ~PackedFace () |
![]() | |
void | incSize (int size) |
virtual | ~PtexCachedData () |
![]() | |
PtexLruItem (void **parent=0) | |
virtual | ~PtexLruItem () |
![]() | |
virtual | ~PtexFaceData () |
Destructor not for public use. Use release() instead. More... | |
![]() | |
int | _pixelsize |
void * | _data |
![]() | |
Res | _res |
![]() | |
PtexCacheImpl * | _cache |
Definition at line 327 of file PtexReader.h.
|
inline |
Definition at line 329 of file PtexReader.h.
|
inlinevirtual |
Read a single texel from the data block.
The texel coordinates, u and v, have a range of [0..ures-1, 0..vres-1]. Note: this method will work correctly even if the face is constant or tiled.
Reimplemented from PtexReader::PackedFace.
Definition at line 332 of file PtexReader.h.
|
inlinevirtual |
True if this data block is constant.
Reimplemented from PtexReader::PackedFace.
Definition at line 331 of file PtexReader.h.
|
virtual |
Reimplemented from PtexReader::PackedFace.
Definition at line 1132 of file PtexReader.cpp.
References PtexCachedFile::_cache, PtexReader::PackedFace::_data, PtexReader::_pixelsize, and PtexCacheImpl::cachelock.