CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Friends | List of all members
OdGiMaterialTextureData Class Referenceabstract

#include <GiMaterialItem.h>

Inheritance diagram for OdGiMaterialTextureData:
OdRxObject

Classes

struct  DevDataVariant
 

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiMaterialTextureData)
 
virtual void setTextureData (OdGiMaterialTextureData::DevDataVariant pDeviceInfo, const OdGiImageBGRA32 &image)=0
 
virtual void textureData (OdGiPixelBGRA32Array &data, OdUInt32 &width, OdUInt32 &height) const =0
 
virtual bool haveData () const =0
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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 OdSmartPtr< OdGiMaterialTextureDatacreateDefaultTextureDataImplementation ()
 
static OdRxClassdefaultTextureDataImplementationDesc ()
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Friends

class OdGiModuleObject
 

Detailed Description

Internal texture data for device support.

See also
TD_Gi

<group OdGi_Classes>

Definition at line 48 of file GiMaterialItem.h.

Member Function Documentation

◆ createDefaultTextureDataImplementation()

static OdSmartPtr< OdGiMaterialTextureData > OdGiMaterialTextureData::createDefaultTextureDataImplementation ( )
static

Create default material texture data implementation that stores color array.

◆ defaultTextureDataImplementationDesc()

static OdRxClass * OdGiMaterialTextureData::defaultTextureDataImplementationDesc ( )
static

Retrieves the default texture data implementation description.

Returns
pointer to the OdRxClass instance that stores the description of default material texture data implementation.

◆ haveData()

virtual bool OdGiMaterialTextureData::haveData ( ) const
pure virtual

Return true if texture data was previously initialized.

◆ ODRX_DECLARE_MEMBERS()

OdGiMaterialTextureData::ODRX_DECLARE_MEMBERS ( OdGiMaterialTextureData  )

◆ setTextureData()

virtual void OdGiMaterialTextureData::setTextureData ( OdGiMaterialTextureData::DevDataVariant  pDeviceInfo,
const OdGiImageBGRA32 image 
)
pure virtual

Set texture pixels from RGBA array.

Parameters
pDeviceInfo[in] Optional external device information.
image[in] Input BGRA image.

◆ textureData()

virtual void OdGiMaterialTextureData::textureData ( OdGiPixelBGRA32Array data,
OdUInt32 width,
OdUInt32 height 
) const
pure virtual

Get texture pixels as array of RGBA colors.

Parameters
data[out] Output BGRA colors array.
width[out] Width of texture.
height[out] Height of texture.

Friends And Related Function Documentation

◆ OdGiModuleObject

friend class OdGiModuleObject
friend

Definition at line 207 of file GiMaterialItem.h.


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