CFx SDK Documentation  2020SP3
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
OdGsMaterialCache Class Reference

#include <GsMaterialCache.h>

Inheritance diagram for OdGsMaterialCache:
OdRxObject

Public Member Functions

 OdGsMaterialCache ()
 
 ~OdGsMaterialCache ()
 
 ODRX_DECLARE_MEMBERS (OdGsMaterialCache)
 
void setBaseModel (OdGsBaseModel *pModel)
 
OdGsBaseModelbaseModel ()
 
const OdGsBaseModelbaseModel () const
 
OdGsMaterialNodesearchNode (OdDbStub *mtl) const
 
OdGsMaterialNodecurrentNode () const
 
void setMaterial (OdGsBaseVectorizer &view, OdDbStub *mtl, bool bDontReinit=false)
 
void setCurrentNode (OdGsMaterialNode *curNode=NULL)
 
bool removeNode (OdDbStub *mtl)
 
bool removeNode (OdGsCache *pCsh)
 
OdUInt32 getCacheSize () const
 
OdGsMaterialNodegetCacheNode (OdUInt32 n) const
 
void addNode (OdGsBaseVectorizer &view, OdDbStub *mtl)
 
void clearCache ()
 
void invalidateCache ()
 
bool saveMaterialCache (OdGsFiler *pFiler) const
 
bool loadMaterialCache (OdGsFiler *pFiler)
 
- 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< OdGsMaterialCachecreateObject (OdGsBaseModel *pModel)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Protected Attributes

OdUInt32 m_nMaterials
 
OdGsMaterialNodem_pMaterials
 
OdGsMaterialNodem_pCurrentNode
 
OdGsBaseModelm_pModel
 

Detailed Description

<group OdGs_Classes>

Definition at line 40 of file GsMaterialCache.h.

Constructor & Destructor Documentation

◆ OdGsMaterialCache()

OdGsMaterialCache::OdGsMaterialCache ( )

◆ ~OdGsMaterialCache()

OdGsMaterialCache::~OdGsMaterialCache ( )

Member Function Documentation

◆ addNode()

void OdGsMaterialCache::addNode ( OdGsBaseVectorizer view,
OdDbStub *  mtl 
)
inline

Definition at line 78 of file GsMaterialCache.h.

◆ baseModel() [1/2]

OdGsBaseModel* OdGsMaterialCache::baseModel ( )
inline

Definition at line 55 of file GsMaterialCache.h.

◆ baseModel() [2/2]

const OdGsBaseModel* OdGsMaterialCache::baseModel ( ) const
inline

Definition at line 56 of file GsMaterialCache.h.

◆ clearCache()

void OdGsMaterialCache::clearCache ( )

◆ createObject()

static OdSmartPtr<OdGsMaterialCache> OdGsMaterialCache::createObject ( OdGsBaseModel pModel)
static

◆ currentNode()

OdGsMaterialNode* OdGsMaterialCache::currentNode ( ) const

◆ getCacheNode()

OdGsMaterialNode* OdGsMaterialCache::getCacheNode ( OdUInt32  n) const

◆ getCacheSize()

OdUInt32 OdGsMaterialCache::getCacheSize ( ) const

◆ invalidateCache()

void OdGsMaterialCache::invalidateCache ( )

◆ loadMaterialCache()

bool OdGsMaterialCache::loadMaterialCache ( OdGsFiler pFiler)

◆ ODRX_DECLARE_MEMBERS()

OdGsMaterialCache::ODRX_DECLARE_MEMBERS ( OdGsMaterialCache  )

◆ removeNode() [1/2]

bool OdGsMaterialCache::removeNode ( OdDbStub *  mtl)

◆ removeNode() [2/2]

bool OdGsMaterialCache::removeNode ( OdGsCache pCsh)

◆ saveMaterialCache()

bool OdGsMaterialCache::saveMaterialCache ( OdGsFiler pFiler) const

◆ searchNode()

OdGsMaterialNode* OdGsMaterialCache::searchNode ( OdDbStub *  mtl) const

◆ setBaseModel()

void OdGsMaterialCache::setBaseModel ( OdGsBaseModel pModel)

◆ setCurrentNode()

void OdGsMaterialCache::setCurrentNode ( OdGsMaterialNode curNode = NULL)

◆ setMaterial()

void OdGsMaterialCache::setMaterial ( OdGsBaseVectorizer view,
OdDbStub *  mtl,
bool  bDontReinit = false 
)

Member Data Documentation

◆ m_nMaterials

OdUInt32 OdGsMaterialCache::m_nMaterials
protected

Definition at line 43 of file GsMaterialCache.h.

◆ m_pCurrentNode

OdGsMaterialNode* OdGsMaterialCache::m_pCurrentNode
protected

Definition at line 45 of file GsMaterialCache.h.

◆ m_pMaterials

OdGsMaterialNode* OdGsMaterialCache::m_pMaterials
protected

Definition at line 44 of file GsMaterialCache.h.

◆ m_pModel

OdGsBaseModel* OdGsMaterialCache::m_pModel
protected

Definition at line 46 of file GsMaterialCache.h.


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