CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
OdGsCurrentMaterialNode Class Reference

#include <GsMaterialCache.h>

Public Member Functions

 OdGsCurrentMaterialNode (OdGsMaterialNode *pCurrentNode=NULL)
 
 ~OdGsCurrentMaterialNode ()
 
OdGsMaterialNodecurrentNode () const
 
void setCurrentNode (OdGsMaterialNode *pNode=NULL)
 
OdGsMaterialNodesetMaterial (OdGsMaterialCache *pCache, OdGsBaseVectorizer &view, OdDbStub *mtl, bool bDontReinit=false)
 

Protected Attributes

OdGsMaterialNodem_pCurrentNode
 

Detailed Description

<group OdGs_Classes>

Definition at line 173 of file GsMaterialCache.h.

Constructor & Destructor Documentation

◆ OdGsCurrentMaterialNode()

OdGsCurrentMaterialNode::OdGsCurrentMaterialNode ( OdGsMaterialNode pCurrentNode = NULL)
inline

Constructor for the OdGsCurrentMaterialNode class. Sets current material node from the passed parameter.

Parameters
pCurrentNode[in] Pointer to current material node.

Definition at line 184 of file GsMaterialCache.h.

◆ ~OdGsCurrentMaterialNode()

OdGsCurrentMaterialNode::~OdGsCurrentMaterialNode ( )
inline

Destructor for the OdGsCurrentMaterialNode class.

Definition at line 190 of file GsMaterialCache.h.

Member Function Documentation

◆ currentNode()

OdGsMaterialNode * OdGsCurrentMaterialNode::currentNode ( ) const
inline

Retrieves pointer to current material node.

Definition at line 195 of file GsMaterialCache.h.

◆ setCurrentNode()

void OdGsCurrentMaterialNode::setCurrentNode ( OdGsMaterialNode pNode = NULL)
inline

Sets a new current material node.

Parameters
pNode[in] Pointer to current material node.

Definition at line 205 of file GsMaterialCache.h.

◆ setMaterial()

OdGsMaterialNode * OdGsCurrentMaterialNode::setMaterial ( OdGsMaterialCache pCache,
OdGsBaseVectorizer view,
OdDbStub *  mtl,
bool  bDontReinit = false 
)

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
pCache[in] Pointer to material cache.
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.

Member Data Documentation

◆ m_pCurrentNode

OdGsMaterialNode* OdGsCurrentMaterialNode::m_pCurrentNode
protected

Definition at line 176 of file GsMaterialCache.h.


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