Ptex
Public Member Functions | Protected Attributes | List of all members
PtexReader::TiledReducedFace Class Reference

#include <PtexReader.h>

Inheritance diagram for PtexReader::TiledReducedFace:
PtexReader::TiledFaceBase PtexReader::FaceData PtexFaceData

Public Member Functions

 TiledReducedFace (PtexReader *reader, Res resArg, Res tileresArg, TiledFaceBase *parentface, PtexUtils::ReduceFn reducefn)
 
 ~TiledReducedFace ()
 
virtual PtexFaceDatagetTile (int tile)
 Access a tile from the data block.
 
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 FaceDatareduce (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 FaceDatareduce (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 PtexFaceDatagetTile (int tile)=0
 Access a tile from the data block.
 

Protected Attributes

TiledFaceBase_parentface
 
PtexUtils::ReduceFn_reducefn
 
- 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
 

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.
 

Detailed Description

Definition at line 498 of file PtexReader.h.

Constructor & Destructor Documentation

◆ TiledReducedFace()

PtexReader::TiledReducedFace::TiledReducedFace ( PtexReader reader,
Res  resArg,
Res  tileresArg,
TiledFaceBase parentface,
PtexUtils::ReduceFn  reducefn 
)
inline

Definition at line 500 of file PtexReader.h.

◆ ~TiledReducedFace()

PtexReader::TiledReducedFace::~TiledReducedFace ( )
inline

Definition at line 507 of file PtexReader.h.

Member Function Documentation

◆ getTile()

PtexFaceData * PtexReader::TiledReducedFace::getTile ( int  tile)
virtual

Access a tile from the data block.

Tiles are accessed in v-major order.

Implements PtexFaceData.

Definition at line 1115 of file PtexReader.cpp.

References PtexReader::_pixelsize, AtomicCompareAndSwap(), PtexUtils::fill(), PtexFaceData::getData(), PtexReader::getData(), PtexFaceData::getTile(), and PtexFaceData::isConstant().

◆ memUsed()

size_t PtexReader::TiledReducedFace::memUsed ( )
inline

Member Data Documentation

◆ _parentface

TiledFaceBase* PtexReader::TiledReducedFace::_parentface
protected

Definition at line 515 of file PtexReader.h.

◆ _reducefn

PtexUtils::ReduceFn* PtexReader::TiledReducedFace::_reducefn
protected

Definition at line 516 of file PtexReader.h.


The documentation for this class was generated from the following files: