CFx SDK Documentation 2024 SP0
|
#include <TrVisTexture.h>
Classes | |
union | TextureColor |
struct | TextureColorContext |
Public Types | |
enum | Format { kRed , kAlpha , kRG , kRGB , kRGBA , kBGR , kBGRA , kPalette , kStencil8 , kDepth16 , kDepth24Stencil8 , kDepth32 , kR16 , kRG16 , kRGBA16 , kAlpha16 , kFloatR , kFloatRG , kFloatRGBA , kHalfFloatR , kHalfFloatRG , kHalfFloatRGBA , kRSNorm , kAlphaSNorm , kRGSNorm , kRGBASNorm , kR16SNorm , kAlpha16SNorm , kRG16SNorm , kRGBA16SNorm , kFormatCount } |
Public Member Functions | |
virtual | ~OdTrVisTexture () |
OdUInt32 | getTextureWidth () const |
OdUInt32 | getTextureHeight () const |
OdUInt32 | getScanlineLength () const |
OdUInt32 | getDataAlignment () const |
const OdUInt8 * | textureData () const |
OdUInt8 * | textureData () |
virtual OdUInt32 | subDivLimit () const =0 |
virtual bool | isFPImage () const =0 |
virtual void | getColor (OdUInt32 nX, OdUInt32 nY, TextureColor &color) const =0 |
virtual void | setColor (OdUInt32 nX, OdUInt32 nY, const TextureColor &color)=0 |
virtual void | getScanline (OdUInt32 startLine, OdUInt32 linesCount, TextureColor *pScanline) const |
virtual void | setScanline (OdUInt32 startLine, OdUInt32 linesCount, const TextureColor *pScanline) |
virtual void | setPalette (const OdTrVisTexture *pTexture)=0 |
virtual OdTrVisTexture * | palette ()=0 |
virtual const OdTrVisTexture * | palette () const =0 |
virtual bool | isSmoothResampleSupported () const =0 |
virtual Format | format () const =0 |
virtual OdUInt32 | pixelSize () const =0 |
virtual TextureColor | getMaxValues () const =0 |
virtual TextureColor | getMinValues () const |
virtual void | beginEditing ()=0 |
virtual void | endEditing ()=0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Static Public Member Functions | |
static void | prepareTextureColors (TextureColor *colors, OdUInt32 size, const TextureColorContext &context) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions | |
OdTrVisTexture () | |
Protected Attributes | |
OdUInt32 | m_nWidth |
OdUInt32 | m_nHeight |
OdUInt32 | m_nAlignment |
OdUInt32 | m_nScanLength |
void * | m_pTextureData |
This interface is a common texture interface
Definition at line 36 of file TrVisTexture.h.
Supported image formats
Definition at line 49 of file TrVisTexture.h.
|
protected |
|
virtual |
|
pure virtual |
Sometimes image have to be preprocessed befor we can call setColor or setScanline (Palette or compressed images, for example)
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 133 of file TrVisTexture.h.
|
pure virtual |
Since different format may have different color value intervals (0-255, -1.f - 1.f) we need this function to obtain maxs
|
virtual |
Since different format may have different color value intervals (0-255, -1.f - 1.f) we need this function to obtain mins
|
inlinevirtual |
Definition at line 150 of file TrVisTexture.h.
|
inline |
Definition at line 132 of file TrVisTexture.h.
|
inline |
Definition at line 131 of file TrVisTexture.h.
|
inline |
Definition at line 130 of file TrVisTexture.h.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Returns length of single pixel in bytes.
|
static |
This function converts TextureColors from one format to another (OdUInt8-based to float-based, etc) using TextureColorContext
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Definition at line 162 of file TrVisTexture.h.
|
pure virtual |
|
inline |
Definition at line 136 of file TrVisTexture.h.
|
inline |
Definition at line 135 of file TrVisTexture.h.
|
protected |
Definition at line 40 of file TrVisTexture.h.
|
protected |
Definition at line 39 of file TrVisTexture.h.
|
protected |
Definition at line 40 of file TrVisTexture.h.
|
protected |
Definition at line 39 of file TrVisTexture.h.
|
protected |
Definition at line 41 of file TrVisTexture.h.