Ptex

Public Member Functions | Protected Attributes | List of all members
PtexReader::FaceData Class Referenceabstract

`#include <PtexReader.h>`

Inheritance diagram for PtexReader::FaceData:

## Public Member Functions
| 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...
virtual FaceData * | reduce (PtexReader *, Res newres, PtexUtils::ReduceFn, size_t &newMemUsed)=0
Public Member Functions inherited from PtexFaceData
virtual bool | isConstant ()=0
| True if this data block is constant. More...
virtual void | getPixel (int u, int v, void *result)=0
| Read a single texel from the data block. More...
virtual void * | getData ()=0
| Access the data from this data block. More...
virtual bool | isTiled ()=0
| True if this data block is tiled. More...
virtual Ptex::Res | tileRes ()=0
| Resolution of each tile in this data block. More...
virtual PtexFaceData * | getTile (int tile)=0
| Access a tile from the data block. More...

## Protected Attributes
Res | _res

## Additional Inherited Members
Protected Member Functions inherited from PtexFaceData
virtual | ~PtexFaceData ()
| Destructor not for public use. Use release() instead. More...

## Detailed Description

Definition at line 383 of file PtexReader.h.

## Constructor & Destructor Documentation

## ◆ FaceData()

PtexReader::FaceData::FaceData | ( | Res | resArg | ) |
| inline

Definition at line 385 of file PtexReader.h.

## ◆ ~FaceData()

virtual PtexReader::FaceData::~FaceData | ( |  | ) |
| inline virtual

Definition at line 387 of file PtexReader.h.

## Member Function Documentation

## ◆ reduce()

virtual FaceData* PtexReader::FaceData::reduce | ( | PtexReader * | ,
|  | Res | newres,
|  | PtexUtils::ReduceFn | ,
|  | size_t & | newMemUsed
| ) |  |
| pure virtual

Implemented in PtexReader::TiledFaceBase, PtexReader::ConstantFace, and PtexReader::PackedFace.

Referenced by PtexReader::getData().

## ◆ release()

virtual void PtexReader::FaceData::release | ( |  | ) |
| inline virtual

Release resources held by this pointer (pointer becomes invalid).

Implements PtexFaceData.

Reimplemented in PtexReader::TiledFaceBase, and PtexReader::ErrorFace.

Definition at line 388 of file PtexReader.h.

## ◆ res()

virtual Ptex::Res PtexReader::FaceData::res | ( |  | ) |
| inline virtual

Resolution of the texture held by this data block.

Note: the indicated texture res may be larger than 1x1 even if the texture data is constant.

Implements PtexFaceData.

Definition at line 389 of file PtexReader.h.

References _res.

## Member Data Documentation

## ◆ _res

Res PtexReader::FaceData::_res
| protected

Definition at line 392 of file PtexReader.h.

Referenced by PtexReader::PackedFace::getPixel(), res(), PtexReader::TiledFaceBase::TiledFaceBase(), and PtexReader::PackedFace::tileRes().

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

- PtexReader.h