#include <GsMaterialCache.h>
<group OdGs_Classes>
Definition at line 42 of file GsMaterialCache.h.
◆ OdGsMaterialCache()
OdGsMaterialCache::OdGsMaterialCache |
( |
| ) |
|
Constructor for the OdGsLightNode class. Sets material cache and associated model to NULL.
◆ ~OdGsMaterialCache()
OdGsMaterialCache::~OdGsMaterialCache |
( |
| ) |
|
◆ addNode()
Adds a material node to cache.
- Parameters
-
view | [in] Vectorization view. |
mtl | [in] Persistent object ID that represents a material. |
Definition at line 134 of file GsMaterialCache.h.
◆ baseModel() [1/2]
Retrieves pointer to the base model associated with this object.
Definition at line 73 of file GsMaterialCache.h.
◆ baseModel() [2/2]
Retrieves pointer to the base model associated with this object.
Definition at line 78 of file GsMaterialCache.h.
◆ clearCache()
void OdGsMaterialCache::clearCache |
( |
| ) |
|
◆ createObject()
Creates a material cache and returns a smart pointer to it.
- Parameters
-
pModel | [in] Pointer to base model. |
◆ getCacheNode()
◆ getCacheSize()
OdUInt32 OdGsMaterialCache::getCacheSize |
( |
| ) |
const |
Retrieves a number of cache elements.
◆ invalidateCache()
Invalidates material cache.
- Parameters
-
pModule | [in] Pointer to module which is erased from the map cache. |
◆ loadMaterialCache()
bool OdGsMaterialCache::loadMaterialCache |
( |
OdGsFiler * |
pFiler | ) |
|
Loads material cache from the specified filer.
- Parameters
-
pFiler | [in] Pointer to a filer where to load the material item from. |
- Returns
- true if material cache is successfully loaded, false otherwise.
◆ ODRX_DECLARE_MEMBERS()
◆ removeNode() [1/2]
bool OdGsMaterialCache::removeNode |
( |
OdDbStub * |
mtl | ) |
|
Removes material node on Erase.
- Parameters
-
mtl | [in] Persistent object ID that represents a material. |
◆ removeNode() [2/2]
bool OdGsMaterialCache::removeNode |
( |
OdGsCache * |
pCsh | ) |
|
Removes material node on Erase.
- Parameters
-
pCsh | [in] Pointer to GS cache. |
◆ saveMaterialCache()
bool OdGsMaterialCache::saveMaterialCache |
( |
OdGsFiler * |
pFiler | ) |
const |
Saves material cache to the specified filer.
- Parameters
-
pFiler | [in] Pointer to a filer where to save the material item. |
- Returns
- true if material cache is successfully saved, false otherwise.
◆ searchNode()
Searches for already initialized node by the persistent object ID.
- Parameters
-
mtl | [in] Persistent object ID that represents a material. |
◆ setBaseModel()
Sets the base model for this object.
- Parameters
-
pModel | [in] Pointer to base model. |
◆ setMaterial()
Initializes a new node, if not already initialized or changed and set's as current node and returns a pointer to the initialized node.
- Parameters
-
view | [in] Vectorization view. |
mtl | [in] Persistent object ID that represents a material. |
bDontReinit | [in] Flag that specifies whether initialization should not be performed if this node is previously initialized and not changed. |
◆ m_nMaterials
OdUInt32 OdGsMaterialCache::m_nMaterials |
|
protected |
◆ m_pCacheMutex
◆ m_pMaterials
◆ m_pModel
The documentation for this class was generated from the following file: