#include <PtexReader.h>
|  | 
|  | 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 () | 
|  | 
| virtual PtexFaceData * | getTile (int tile)=0 | 
|  | Access a tile from the data block.  More... 
 | 
|  | 
|  | 
| template<typename T > | 
| static void | orphanList (T &list) | 
|  | 
Definition at line 338 of file PtexReader.h.
 
  
  | 
        
          | virtual PtexReader::TiledFaceBase::~TiledFaceBase | ( |  | ) |  |  | inlineprotectedvirtual | 
 
 
  
  | 
        
          | virtual void* PtexReader::TiledFaceBase::getData | ( |  | ) |  |  | 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 367 of file PtexReader.h.
 
 
  
  | 
        
          | void PtexReader::TiledFaceBase::getPixel | ( | int | u, |  
          |  |  | int | v, |  
          |  |  | void * | result |  
          |  | ) |  |  |  | virtual | 
 
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.
Definition at line 1285 of file PtexReader.cpp.
References PtexFaceData::getPixel().
 
 
  
  | 
        
          | virtual bool PtexReader::TiledFaceBase::isConstant | ( |  | ) |  |  | inlinevirtual | 
 
 
  
  | 
        
          | virtual bool PtexReader::TiledFaceBase::isTiled | ( |  | ) |  |  | inlinevirtual | 
 
 
  
  | 
        
          | int PtexReader::TiledFaceBase::ntiles | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | int PtexReader::TiledFaceBase::ntilesu | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | int PtexReader::TiledFaceBase::ntilesv | ( |  | ) | const |  | inline | 
 
 
Definition at line 1147 of file PtexReader.cpp.
References PtexCachedFile::_cache, PtexReader::_header, PtexReader::_pixelsize, PtexCacheImpl::cachelock, PtexUtils::copy(), PtexUtils::fill(), PtexReader::getData(), PtexFaceData::getData(), PtexFaceData::isConstant(), PtexIO::Header::meshtype, Ptex::mt_triangle, Ptex::Res::ntiles(), PtexCacheImpl::purgeData(), PtexReader::reducelock, PtexCachedData::ref(), PtexReader::release(), Ptex::Res::size(), Ptex::Res::u(), Ptex::Res::ulog2, Ptex::Res::v(), and Ptex::Res::vlog2.
 
 
  
  | 
        
          | virtual void PtexReader::TiledFaceBase::release | ( |  | ) |  |  | inlinevirtual | 
 
 
  
  | 
        
          | virtual Ptex::Res PtexReader::TiledFaceBase::tileRes | ( |  | ) |  |  | inlinevirtual | 
 
 
  
  | 
        
          | Res PtexReader::TiledFaceBase::tileres | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | int PtexReader::TiledFaceBase::_nchan |  | protected | 
 
 
  
  | 
        
          | int PtexReader::TiledFaceBase::_ntiles |  | protected | 
 
 
  
  | 
        
          | int PtexReader::TiledFaceBase::_ntilesu |  | protected | 
 
 
  
  | 
        
          | int PtexReader::TiledFaceBase::_ntilesv |  | protected | 
 
 
  
  | 
        
          | int PtexReader::TiledFaceBase::_pixelsize |  | protected | 
 
 
  
  | 
        
          | Res PtexReader::TiledFaceBase::_tileres |  | protected | 
 
 
The documentation for this class was generated from the following files: