| Ptex
    | 
#include <PtexReader.h>
 
  
| Public Member Functions | |
| PackedFace (Res resArg, int pixelsize, int size) | |
| void * | data () | 
| 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 PtexFaceData * | getTile (int) | 
| Access a tile from the data block.  More... | |
| virtual FaceData * | reduce (PtexReader *, Res newres, PtexUtils::ReduceFn, size_t &newMemUsed) | 
|  Public Member Functions inherited from PtexReader::FaceData | |
| FaceData (Res resArg) | |
| virtual | ~FaceData () | 
| 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... | |
| Protected Member Functions | |
| virtual | ~PackedFace () | 
|  Protected Member Functions inherited from PtexFaceData | |
| virtual | ~PtexFaceData () | 
| Destructor not for public use. Use release() instead.  More... | |
| Protected Attributes | |
| int | _pixelsize | 
| char * | _data | 
|  Protected Attributes inherited from PtexReader::FaceData | |
| Res | _res | 
Definition at line 377 of file PtexReader.h.
| 
 | inline | 
Definition at line 379 of file PtexReader.h.
| 
 | inlineprotectedvirtual | 
Definition at line 395 of file PtexReader.h.
References _data.
| 
 | inline | 
Definition at line 382 of file PtexReader.h.
References _data.
Referenced by PtexReader::readFaceData().
| 
 | inlinevirtual | 
Access the data from this data block.
If the data block is constant, getData will return a pointer to a single texel's data value.
If the data block is tiled, then getData will return null and the data must be accessed per-tile via the getTile() function.
Implements PtexFaceData.
Definition at line 388 of file PtexReader.h.
References _data.
| 
 | 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.
Implements PtexFaceData.
Reimplemented in PtexReader::ConstantFace.
Definition at line 384 of file PtexReader.h.
References _data, _pixelsize, and PtexReader::FaceData::_res.
| 
 | inlinevirtual | 
Access a tile from the data block.
Tiles are accessed in v-major order.
Implements PtexFaceData.
Definition at line 391 of file PtexReader.h.
| 
 | inlinevirtual | 
True if this data block is constant.
Implements PtexFaceData.
Reimplemented in PtexReader::ConstantFace.
Definition at line 383 of file PtexReader.h.
| 
 | inlinevirtual | 
True if this data block is tiled.
If tiled, the data must be access per-tile via getTile().
Implements PtexFaceData.
Definition at line 389 of file PtexReader.h.
| 
 | virtual | 
Implements PtexReader::FaceData.
Reimplemented in PtexReader::ConstantFace.
Definition at line 949 of file PtexReader.cpp.
References _data, PtexReader::_pixelsize, PtexReader::datatype(), and PtexReader::nchannels().
| 
 | inlinevirtual | 
Resolution of each tile in this data block.
Implements PtexFaceData.
Definition at line 390 of file PtexReader.h.
References PtexReader::FaceData::_res.
| 
 | protected | 
Definition at line 398 of file PtexReader.h.
Referenced by data(), PtexReader::ErrorFace::ErrorFace(), getData(), getPixel(), PtexReader::ConstantFace::getPixel(), reduce(), PtexReader::ConstantFace::reduce(), and ~PackedFace().
| 
 | protected | 
Definition at line 397 of file PtexReader.h.
Referenced by getPixel(), and PtexReader::ConstantFace::getPixel().
 1.8.17
 1.8.17