CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
26 #ifndef __ODGIMATERIALITEM_H__
27 #define __ODGIMATERIALITEM_H__
60 DevDataVariantType_Void = 0,
62 DevDataVariantType_RxObject
71 m_ddvType = DevDataVariantType_Void;
97 return setRxObject(ptr);
105 m_ddvType = DevDataVariantType_Ptr;
113 m_ddvType = DevDataVariantType_RxObject;
120 m_ddvType = DevDataVariantType_Void;
122 if (m_pRxObject.isNull())
123 m_pRxObject.release();
134 friend class OdGiModuleObject;
166 static void rxInitDefaultTextureDataImplementation();
168 static void rxUninitDefaultTextureDataImplementation();
272 kFileTexturesOnly = 0,
744 #endif // __ODGIMATERIALITEM_H__
virtual OdRxObjectPtr cachedData() const =0
ODRX_DECLARE_MEMBERS(OdGiMaterialTextureData)
@ kFileAndProceduralTextures
virtual bool isMaterialIdValid(const OdDbStub *matId)=0
virtual bool isTextureInitialized() const =0
OdSmartPtr< OdGiMaterialTextureLoaderExt > OdGiMaterialTextureLoaderExtPtr
virtual void startTextureLoading(OdString &fileName, OdDbBaseDatabase *pDb)=0
DevDataVariant(OdRxObjectPtr ptr)
ODRX_DECLARE_MEMBERS(OdGiMaterialTextureLoaderExt)
virtual void textureLoaded(const OdString &fileName, OdDbBaseDatabase *pDb)=0
virtual void setProceduralTextureResolution(OdUInt32 width, OdUInt32 height)=0
DevDataVariant & setRxObject(OdRxObjectPtr ptr)
virtual OdGiMaterialTextureEntryPtr emissionTexture()=0
virtual void removeEmissionTexture()=0
virtual bool allowTextureLoading(OdGiMaterialTexturePtr pTexture)=0
ODRX_DECLARE_MEMBERS(OdGiMaterialTextureLoadPE)
virtual OdGiMaterialTextureDataPtr textureData() const =0
GLuint GLsizei GLsizei GLint GLenum * type
virtual bool haveDiffuseTexture() const =0
OdSmartPtr< OdGiMaterialRenderItem > OdGiMaterialRenderItemPtr
virtual OdGiMaterialTextureEntryPtr createNormalMapTexture()=0
virtual void linkTexture(const OdString &fileName, OdGiMaterialTextureDataPtr pData)=0
ODRX_DECLARE_MEMBERS(OdGiMaterialTextureManager)
virtual bool haveBumpTexture() const =0
virtual bool setGiMaterialTexture(OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, double opacity, OdGiMaterialTextureManager *pManager=NULL)=0
virtual OdGiMaterialTextureEntryPtr emissionTexture() const =0
virtual OdGiMaterialTextureEntryPtr createBumpTexture()=0
virtual OdGiMaterialTextureEntryPtr normalMapTexture() const =0
ODRX_DECLARE_MEMBERS(OdGiMaterialTextureEntry)
virtual OdGiMaterialTextureEntryPtr bumpTexture() const =0
virtual void removeNormalMapTexture()=0
virtual bool haveOpacityTexture() const =0
virtual void removeOpacityTexture()=0
virtual void unlinkTexture(OdGiMaterialTextureData *pData)=0
virtual bool haveSpecularTexture() const =0
virtual bool isAvailable(const OdGiMaterialTextureData *pData) const =0
virtual void setProceduralTextureHeight(OdUInt32 height)=0
OdSmartPtr< OdGiMaterialTextureData > OdGiMaterialTextureDataPtr
virtual void removeBumpTexture()=0
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
virtual OdGiMaterialTextureDataPtr textureEntryData(OdUInt32 nIndex) const =0
virtual OdGiMaterialTextureEntryPtr refractionTexture()=0
OdSmartPtr< OdGiMaterialTextureLoadPE > OdGiMaterialTextureLoadPEPtr
virtual OdGiMaterialTextureEntryPtr bumpTexture()=0
OdGiMaterialTextureLoadPE()
virtual double proceduralTextureQuality() const =0
DevDataVariant(void *ptr)
virtual OdGiMaterialTextureEntryPtr reflectionTexture()=0
virtual OdGiMaterialTextureEntryPtr opacityTexture() const =0
virtual void textureData(OdGiPixelBGRA32Array &data, OdUInt32 &width, OdUInt32 &height) const =0
virtual OdGiMaterialTextureDataPtr loadTexture(OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, OdGiMaterialTextureEntry *pEntry, OdGiMaterialTexturePtr pTexture)=0
virtual OdGiMaterialTextureEntryPtr specularTexture()=0
DevDataVariant & setPtr(void *ptr)
virtual void removeDiffuseTexture()=0
static OdSmartPtr< OdGiMaterialTextureData > createDefaultTextureDataImplementation()
virtual void setTextureData(OdGiMaterialTextureData *pTextureData, OdGiMaterialTextureManager *pManager=NULL)=0
ODRX_DECLARE_MEMBERS(OdGiMaterialRenderItem)
virtual ManageType manageType() const =0
virtual OdGiMaterialTextureEntryPtr createSpecularTexture()=0
virtual OdGiMaterialTextureDataPtr searchTexture(const OdGiMaterialMap &matMap)=0
virtual OdUInt32 proceduralTextureHeight() const =0
OdRxObjectPtr getRxObject() const
virtual OdGiMaterialTextureEntryPtr normalMapTexture()=0
virtual void removeSpecularTexture()=0
virtual OdGiMaterialTextureEntryPtr createRefractionTexture()=0
virtual OdGiMaterialTextureDataPtr tryToLoad(OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, OdGiMaterialTextureEntry *pEntry, const OdGiMaterialMap &matMap)=0
virtual OdGiMaterialTextureEntryPtr diffuseTexture() const =0
virtual void setMaterialId(const OdDbStub *matId=NULL)=0
virtual OdGiMaterialTextureDataPtr searchTexture(OdGiMaterialTexturePtr pTexture)=0
GLint GLenum GLsizei GLsizei height
GLint GLenum GLsizei width
virtual OdGiMaterialTextureEntryPtr specularTexture() const =0
virtual void setTextureData(OdGiMaterialTextureData::DevDataVariant pDeviceInfo, const OdGiImageBGRA32 &image)=0
virtual OdUInt32 numTextureEntries() const =0
virtual OdGiMaterialTextureEntryPtr createOpacityTexture()=0
virtual bool haveEmissionTexture() const =0
virtual OdGiMaterialTextureEntryPtr createDiffuseTexture()=0
virtual bool setGiMaterialTexture(OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, const OdString &fileName, OdGiMaterialTextureManager *pManager=NULL)=0
virtual OdGiMaterialTexturePtr textureEntryKey(OdUInt32 nIndex) const =0
DevDataVariantType m_ddvType
virtual OdGiMaterialTextureDataPtr searchTexture(const OdString &fileName)=0
virtual OdGiMaterialTextureEntryPtr opacityTexture()=0
virtual OdGiMaterialTextureEntryPtr reflectionTexture() const =0
virtual void setMaterialLoaderExt(OdGiMaterialTextureLoaderExt *pExt)=0
virtual void setManageType(ManageType type)=0
virtual void removeReflectionTexture()=0
virtual bool setGiMaterialTexture(OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, OdGiMaterialTexturePtr pTexture, OdGiMaterialTextureManager *pManager=NULL)=0
static OdRxClass * defaultTextureDataImplementationDesc()
virtual void setProceduralTextureQuality(double coef)=0
OdSmartPtr< OdGiMaterialTextureEntry > OdGiMaterialTextureEntryPtr
virtual bool haveReflectionTexture() const =0
OdSmartPtr< OdGiMaterialItem > OdGiMaterialItemPtr
OdRxObjectPtr m_pRxObject
virtual bool haveNormalMapTexture() const =0
virtual void removeRefractionTexture()=0
virtual OdGiMaterialTextureDataPtr tryToLoad(OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, OdGiMaterialTextureEntry *pEntry, const OdString &fileName)=0
virtual bool haveRefractionTexture() const =0
OdSmartPtr< OdGiMaterialTextureManager > OdGiMaterialTextureManagerPtr
virtual OdGiMaterialTextureEntryPtr refractionTexture() const =0
virtual void setProceduralTextureWidth(OdUInt32 width)=0
virtual const OdDbStub * materialId() const =0
DevDataVariantType type() const
virtual bool haveData() const =0
virtual void linkTexture(const OdGiMaterialMap &matMap, OdGiMaterialTextureDataPtr pData)=0
virtual OdUInt32 proceduralTextureWidth() const =0
virtual void linkTexture(OdGiMaterialTexturePtr pTexture, OdGiMaterialTextureDataPtr pData)=0
virtual OdGiMaterialTextureEntryPtr createEmissionTexture()=0
virtual void setCachedData(OdRxObjectPtr data)=0
virtual OdGiMaterialTextureDataPtr tryToLoad(OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, OdGiMaterialTextureEntry *pEntry, OdGiMaterialTexturePtr pTexture)=0
virtual OdGiMaterialTextureEntryPtr createReflectionTexture()=0
virtual void textureLoadingFailed(const OdString &fileName, OdDbBaseDatabase *pDb)=0
virtual OdGiMaterialTextureEntryPtr diffuseTexture()=0
ODRX_DECLARE_MEMBERS(OdGiMaterialItem)
virtual bool setGiMaterialTexture(OdGiMaterialTextureData::DevDataVariant pDeviceInfo, OdRxClass *pTexDataImpl, const OdGiContext &giCtx, const OdGiMaterialMap &matMap, OdGiMaterialTextureManager *pManager=NULL)=0
virtual OdGiMaterialTextureLoaderExtPtr materialLoaderExt() const =0