CFx SDK Documentation
2022 SP0
|
#include <TrVisTexture.h>
Classes | |
union | TextureColor |
struct | TextureColorContext |
Public Types | |
enum | Format { kRGB , kBGR , kRGBA , kBGRA , kFloatRGBA , kPalette , kHalfFloatRGBA , kRed , kAlpha , kColorDepth32bit } |
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 (OdTrVisTexture *pTexture)=0 |
virtual OdTrVisTexture * | palette ()=0 |
virtual const OdTrVisTexture * | palette () const =0 |
virtual bool | isSmoothResampleSupported () const =0 |
virtual Format | format () const =0 |
virtual TextureColor | getMaxValues () const =0 |
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
Enumerator | |
---|---|
kRGB | |
kBGR | |
kRGBA | |
kBGRA | |
kFloatRGBA | |
kPalette | |
kHalfFloatRGBA | |
kRed | |
kAlpha | |
kColorDepth32bit |
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 103 of file TrVisTexture.h.
|
pure virtual |
Since different format may have different color value intervals (0-255, 0.f - 1.f) we need this function to obtain maxs
|
inlinevirtual |
Definition at line 120 of file TrVisTexture.h.
|
inline |
Definition at line 102 of file TrVisTexture.h.
|
inline |
Definition at line 101 of file TrVisTexture.h.
|
inline |
Definition at line 100 of file TrVisTexture.h.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
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 132 of file TrVisTexture.h.
|
pure virtual |
|
inline |
Definition at line 106 of file TrVisTexture.h.
|
inline |
Definition at line 105 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.