CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdGiMaterialTextureEntry Class Referenceabstract

#include <GiMaterialItem.h>

Inheritance diagram for OdGiMaterialTextureEntry:
OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiMaterialTextureEntry)
 
virtual OdGiMaterialTextureDataPtr textureData () const =0
 
virtual bool isTextureInitialized () const =0
 
virtual OdUInt32 proceduralTextureWidth () const =0
 
virtual void setProceduralTextureWidth (OdUInt32 width)=0
 
virtual OdUInt32 proceduralTextureHeight () const =0
 
virtual void setProceduralTextureHeight (OdUInt32 height)=0
 
virtual void setProceduralTextureResolution (OdUInt32 width, OdUInt32 height)=0
 
virtual double proceduralTextureQuality () const =0
 
virtual void setProceduralTextureQuality (double coef)=0
 
virtual bool setGiMaterialTexture (OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, const OdGiMaterialMap &matMap, OdGiMaterialTextureManager *pManager=NULL)=0
 
virtual bool setGiMaterialTexture (OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, OdGiMaterialTexturePtr pTexture, OdGiMaterialTextureManager *pManager=NULL)=0
 
virtual bool setGiMaterialTexture (OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, const OdString &fileName, OdGiMaterialTextureManager *pManager=NULL)=0
 
virtual bool setGiMaterialTexture (OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, double opacity, OdGiMaterialTextureManager *pManager=NULL)=0
 
virtual void setTextureData (OdGiMaterialTextureData *pTextureData, OdGiMaterialTextureManager *pManager=NULL)=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
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

Material texture entry that contains, generates, and loads texture data.

See also
TD_Gi

<group OdGi_Classes>

Definition at line 410 of file GiMaterialItem.h.

Member Function Documentation

◆ isTextureInitialized()

virtual bool OdGiMaterialTextureEntry::isTextureInitialized ( ) const
pure virtual

Return true if texture data is initialized.

◆ ODRX_DECLARE_MEMBERS()

OdGiMaterialTextureEntry::ODRX_DECLARE_MEMBERS ( OdGiMaterialTextureEntry  )

◆ proceduralTextureHeight()

virtual OdUInt32 OdGiMaterialTextureEntry::proceduralTextureHeight ( ) const
pure virtual

Return height of procedurally generated textures.

◆ proceduralTextureQuality()

virtual double OdGiMaterialTextureEntry::proceduralTextureQuality ( ) const
pure virtual

Return procedural textures quality coefficient.

◆ proceduralTextureWidth()

virtual OdUInt32 OdGiMaterialTextureEntry::proceduralTextureWidth ( ) const
pure virtual

Return width of procedurally generated textures.

◆ setGiMaterialTexture() [1/4]

virtual bool OdGiMaterialTextureEntry::setGiMaterialTexture ( OdGiMaterialTextureData::DevDataVariant  pDeviceInfo,
OdRxClass pTexDataImpl,
const OdGiContext giCtx,
const OdGiMaterialMap matMap,
OdGiMaterialTextureManager pManager = NULL 
)
pure virtual

Load texture from material map.

Parameters
pDeviceInfo[in] Optional external device information.
pTexDataImpl[in] Description of texture data class implementation (must not be NULL)
giCtx[in] Gi context.
matMap[in] Input material map reference.
pManager[in] Optional textures manager.

◆ setGiMaterialTexture() [2/4]

virtual bool OdGiMaterialTextureEntry::setGiMaterialTexture ( OdGiMaterialTextureData::DevDataVariant  pDeviceInfo,
OdRxClass pTexDataImpl,
const OdGiContext giCtx,
const OdString fileName,
OdGiMaterialTextureManager pManager = NULL 
)
pure virtual

Load texture from raster file.

Parameters
pDeviceInfo[in] Optional external device information.
pTexDataImpl[in] Description of texture data class implementation (must not be NULL).
giCtx[in] Gi context.
fileName[in] Name of file that contains raster image.
pManager[in] Optional textures manager.

◆ setGiMaterialTexture() [3/4]

virtual bool OdGiMaterialTextureEntry::setGiMaterialTexture ( OdGiMaterialTextureData::DevDataVariant  pDeviceInfo,
OdRxClass pTexDataImpl,
const OdGiContext giCtx,
double  opacity,
OdGiMaterialTextureManager pManager = NULL 
)
pure virtual

Generate texture from material opacity value.

Parameters
pDeviceInfo[in] Optional external device information.
pTexDataImpl[in] Description of texture data class implementation (must not be NULL).
giCtx[in] Gi context.
opacity[in] Material opacity value (0.0 - 1.0).
pManager[in] Optional textures manager.

◆ setGiMaterialTexture() [4/4]

virtual bool OdGiMaterialTextureEntry::setGiMaterialTexture ( OdGiMaterialTextureData::DevDataVariant  pDeviceInfo,
OdRxClass pTexDataImpl,
const OdGiContext giCtx,
OdGiMaterialTexturePtr  pTexture,
OdGiMaterialTextureManager pManager = NULL 
)
pure virtual

Load texture from material texture pointer.

Parameters
pDeviceInfo[in] Optional external device information.
pTexDataImpl[in] Description of texture data class implementation (must not be NULL).
giCtx[in] Gi context.
pTexture[in] Pointer to material texture.
pManager[in] Optional textures manager.

◆ setProceduralTextureHeight()

virtual void OdGiMaterialTextureEntry::setProceduralTextureHeight ( OdUInt32  height)
pure virtual

Set height of procedurally generated textures.

◆ setProceduralTextureQuality()

virtual void OdGiMaterialTextureEntry::setProceduralTextureQuality ( double  coef)
pure virtual

Set procedural textures quality coefficient.

◆ setProceduralTextureResolution()

virtual void OdGiMaterialTextureEntry::setProceduralTextureResolution ( OdUInt32  width,
OdUInt32  height 
)
pure virtual

Set width and height of procedurally generated textures.

◆ setProceduralTextureWidth()

virtual void OdGiMaterialTextureEntry::setProceduralTextureWidth ( OdUInt32  width)
pure virtual

Set width of procedurally generated textures.

◆ setTextureData()

virtual void OdGiMaterialTextureEntry::setTextureData ( OdGiMaterialTextureData pTextureData,
OdGiMaterialTextureManager pManager = NULL 
)
pure virtual

Sets texture data explicitly.

Parameters
pTextureData[in] Pointer to texture data.
pManager[in] Optional textures manager.

◆ textureData()

virtual OdGiMaterialTextureDataPtr OdGiMaterialTextureEntry::textureData ( ) const
pure virtual

Return pointer to device-dependent texture data container.


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