Ptex
|
#include <PtexReader.h>
Public Member Functions | |
TiledFace (PtexReader *reader, Res resArg, Res tileresArg, int levelid) | |
virtual PtexFaceData * | getTile (int tile) |
Access a tile from the data block. | |
void | readTile (int tile, FaceData *&data) |
size_t | memUsed () |
Public Member Functions inherited from PtexReader::TiledFaceBase | |
TiledFaceBase (PtexReader *reader, Res resArg, Res tileresArg) | |
virtual void | release () |
Release resources held by this pointer (pointer becomes invalid). | |
virtual bool | isConstant () |
True if this data block is constant. | |
virtual void | getPixel (int u, int v, void *result) |
Read a single texel from the data block. | |
virtual void * | getData () |
Access the data from this data block. | |
virtual bool | isTiled () |
True if this data block is tiled. | |
virtual Ptex::Res | tileRes () |
Resolution of each tile in this data block. | |
virtual FaceData * | reduce (PtexReader *, Res newres, PtexUtils::ReduceFn, size_t &newMemUsed) |
Res | tileres () const |
int | ntilesu () const |
int | ntilesv () const |
int | ntiles () const |
Public Member Functions inherited from PtexReader::FaceData | |
FaceData (Res resArg) | |
virtual | ~FaceData () |
virtual void | release () |
Release resources held by this pointer (pointer becomes invalid). | |
virtual Ptex::Res | res () |
Resolution of the texture held by this data block. | |
virtual FaceData * | reduce (PtexReader *, Res newres, PtexUtils::ReduceFn, size_t &newMemUsed)=0 |
virtual void | release ()=0 |
Release resources held by this pointer (pointer becomes invalid). | |
virtual bool | isConstant ()=0 |
True if this data block is constant. | |
virtual Ptex::Res | res ()=0 |
Resolution of the texture held by this data block. | |
virtual void | getPixel (int u, int v, void *result)=0 |
Read a single texel from the data block. | |
virtual void * | getData ()=0 |
Access the data from this data block. | |
virtual bool | isTiled ()=0 |
True if this data block is tiled. | |
virtual Ptex::Res | tileRes ()=0 |
Resolution of each tile in this data block. | |
virtual PtexFaceData * | getTile (int tile)=0 |
Access a tile from the data block. | |
Protected Attributes | |
int | _levelid |
std::vector< FaceDataHeader > | _fdh |
std::vector< FilePos > | _offsets |
Protected Attributes inherited from PtexReader::TiledFaceBase | |
PtexReader * | _reader |
Res | _tileres |
DataType | _dt |
int | _nchan |
int | _ntilesu |
int | _ntilesv |
int | _ntiles |
int | _pixelsize |
std::vector< FaceData * > | _tiles |
Protected Attributes inherited from PtexReader::FaceData | |
Res | _res |
Friends | |
class | PtexReader |
Additional Inherited Members | |
Protected Member Functions inherited from PtexReader::TiledFaceBase | |
size_t | baseExtraMemUsed () |
virtual | ~TiledFaceBase () |
Protected Member Functions inherited from PtexFaceData | |
virtual | ~PtexFaceData () |
Destructor not for public use. Use release() instead. | |
Definition at line 470 of file PtexReader.h.
|
inline |
Definition at line 472 of file PtexReader.h.
References _fdh, PtexReader::TiledFaceBase::_ntiles, and _offsets.
|
inlinevirtual |
Access a tile from the data block.
Tiles are accessed in v-major order.
Implements PtexFaceData.
Definition at line 479 of file PtexReader.h.
References PtexReader::TiledFaceBase::_tiles, and readTile().
|
inline |
Definition at line 486 of file PtexReader.h.
References _fdh, _offsets, and PtexReader::TiledFaceBase::baseExtraMemUsed().
Referenced by PtexReader::readFaceData().
void PtexReader::TiledFace::readTile | ( | int | tile, |
FaceData *& | data | ||
) |
Definition at line 635 of file PtexReader.cpp.
Referenced by getTile().
|
friend |
Definition at line 491 of file PtexReader.h.
|
protected |
Definition at line 493 of file PtexReader.h.
Referenced by memUsed(), PtexReader::readFaceData(), and TiledFace().
|
protected |
Definition at line 492 of file PtexReader.h.
|
protected |
Definition at line 494 of file PtexReader.h.
Referenced by memUsed(), PtexReader::readFaceData(), and TiledFace().