CFx SDK Documentation  2023 SP0
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
OdGsMaterialNode Class Reference

#include <GsMaterialNode.h>

Inheritance diagram for OdGsMaterialNode:
OdGsNode OdGsCache OdRxObject

Classes

struct  DataEntry
 

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGsMaterialNode)
 
 OdGsMaterialNode (OdGsBaseModel *pModel, const OdGiDrawable *pUnderlyingDrawable, bool bSetGsNode=true)
 
 ~OdGsMaterialNode ()
 
void destroy ()
 
OdGiMaterialTraitsDatamaterialTraits ()
 
const OdGiMaterialTraitsDatamaterialTraits () const
 
virtual void onModified (OdGsBaseVectorizer &view)
 
void invalidate (OdGsContainerNode *pParent, OdGsViewImpl *pView, OdUInt32 mask)
 
virtual void update (OdGsBaseVectorizer &view)
 
OdGsMaterialNodenextNode () const
 
OdGsMaterialNodeprevNode () const
 
OdGsMaterialNodesetNextNode (OdGsMaterialNode *newNode)
 
OdGsMaterialNodesetPrevNode (OdGsMaterialNode *newNode)
 
bool isDataModified () const
 
bool isCachedDataModified (OdGsBaseVectorizer &view) const
 
void setCachedDataUpdated (OdGsBaseVectorizer &view)
 
const OdRxObjectcachedData (OdGsBaseVectorizer &view) const
 
void setCachedData (OdGsBaseVectorizer &view, OdRxObject *newCachedData)
 
OdMutexPtrcacheMutex ()
 
virtual ENodeType nodeType () const
 
bool saveNodeState (OdGsFiler *pFiler, OdGsBaseVectorizer *pVectorizer=NULL) const
 
bool loadNodeState (OdGsFiler *pFiler, OdGsBaseVectorizer *pVectorizer=NULL)
 
- Public Member Functions inherited from OdGsNode
bool invalidVp () const
 
void setToDrawable (const OdGiDrawable *pUnderlyingDrawable)
 
 ODRX_DECLARE_MEMBERS (OdGsNode)
 
voidoperator new (size_t)
 
void operator delete (void *)
 
void addRef ()
 
void release ()
 
 OdGsNode (OdGsBaseModel *pModel, const OdGiDrawable *pUnderlyingDrawable)
 
virtual ~OdGsNode ()
 
OdGsBaseModelbaseModel () const
 
OdGsModelmodel () const
 
bool isContainer () const
 
bool isSyncDrawable () const
 
OdGiDrawablePtr underlyingDrawable () const
 
OdDbStub * underlyingDrawableId () const
 
virtual void updateVisible (OdGsViewImpl *pViewImpl)
 
virtual void highlight (bool bDoIt, bool bWholeBranch)
 
bool isHighlighted () const
 
bool isHighlightedAll () const
 
void hide (bool bDoIt)
 
bool isHidden () const
 
void setSelectableIfHidden (bool bSelectable)
 
bool isSelectableIfHidden () const
 
virtual bool saveClientNodeState (OdGsFiler *pFiler, OdGsBaseVectorizer *pVectorizer) const
 
virtual bool loadClientNodeState (OdGsFiler *pFiler, OdGsBaseVectorizer *pVectorizer)
 
virtual bool postprocessNodeLoading (OdGsFiler *pFiler)
 
 TD_USING (OdGsCache::extents)
 
virtual bool extents (const OdGsView *pView, OdGeExtents3d &ext) const
 
virtual OdDb::LineWeight getMaxLineweightUsed () const
 
virtual void setDrawableNull ()
 
virtual void addContentToUpdateManager (OdUInt32 viewportId, OdGsUpdateManager *pManager, const UpdateManagerContext &context)
 
- Public Member Functions inherited from OdGsCache
 ODRX_DECLARE_MEMBERS (OdGsCache)
 
- 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 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
 

Protected Types

typedef std::map< const void *, DataEntryCacheMap
 
- Protected Types inherited from OdGsNode
enum  {
  kPersistent = 0x00000001 , kContainer = 0x00000002 , kHLT = 0x00000004 , kHLT_All = 0x00000008 ,
  kSyncDrawable = 0x00000010 , kHidden = 0x00000020 , kSelectHidden = 0x00000040 , kLastFlag = kSelectHidden
}
 
enum  { kInvalidateVp = 0x80000000 }
 

Protected Member Functions

void update (OdGsUpdateContext &ctx, OdGsContainerNode *pParent, OdSiSpatialIndex *pParentIndex)
 
void display (OdGsDisplayContext &ctx)
 
bool extents (OdGeExtents3d &) const
 
virtual void propagateLayerChanges (OdGsViewImpl &view)
 
- Protected Member Functions inherited from OdGsNode
void setInvalidVp (bool val)
 
void clearDrawable ()
 
 OdGsNode (const OdGsNode &c)
 

Protected Attributes

OdGiMaterialTraitsData m_materialTraits
 
bool m_dataInitialized
 
bool m_dataModified
 
CacheMap m_cacheMap
 
OdMutexPtr m_pCacheMutex
 
OdGsMaterialNodem_pMatPrev
 
OdGsMaterialNodem_pMatNext
 
- Protected Attributes inherited from OdGsNode
OdGsNodem_pPrev
 
OdGsNodem_pNext
 
OdGsBaseModelm_pModel
 
voidm_underlyingDrawable
 
OdUInt32 m_flags
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Static Protected Attributes inherited from OdGsNode
static GS_STATIC_EXPORT AllocatorArray s_aAlloc
 

Detailed Description

<group OdGs_Classes>

Definition at line 49 of file GsMaterialNode.h.

Member Typedef Documentation

◆ CacheMap

typedef std::map<const void *, DataEntry> OdGsMaterialNode::CacheMap
protected

Definition at line 83 of file GsMaterialNode.h.

Constructor & Destructor Documentation

◆ OdGsMaterialNode()

OdGsMaterialNode::OdGsMaterialNode ( OdGsBaseModel pModel,
const OdGiDrawable pUnderlyingDrawable,
bool  bSetGsNode = true 
)
Parameters
pModel[in] Pointer to the BaseModel object.
pUnderlyingDrawable[in] Pointer to the underlying Drawable object.

◆ ~OdGsMaterialNode()

OdGsMaterialNode::~OdGsMaterialNode ( )

Member Function Documentation

◆ cachedData()

const OdRxObject* OdGsMaterialNode::cachedData ( OdGsBaseVectorizer view) const

◆ cacheMutex()

OdMutexPtr& OdGsMaterialNode::cacheMutex ( )
inline

Definition at line 129 of file GsMaterialNode.h.

◆ destroy()

void OdGsMaterialNode::destroy ( )
inlinevirtual

Implements OdGsNode.

Definition at line 98 of file GsMaterialNode.h.

◆ display()

void OdGsMaterialNode::display ( OdGsDisplayContext &  ctx)
protectedvirtual

No operation.

Implements OdGsNode.

◆ extents()

bool OdGsMaterialNode::extents ( OdGeExtents3d ) const
protectedvirtual

No operation.

Implements OdGsCache.

◆ invalidate()

void OdGsMaterialNode::invalidate ( OdGsContainerNode pParent,
OdGsViewImpl pView,
OdUInt32  mask 
)
virtual

No operation.

Implements OdGsNode.

◆ isCachedDataModified()

bool OdGsMaterialNode::isCachedDataModified ( OdGsBaseVectorizer view) const

◆ isDataModified()

bool OdGsMaterialNode::isDataModified ( ) const

◆ loadNodeState()

bool OdGsMaterialNode::loadNodeState ( OdGsFiler pFiler,
OdGsBaseVectorizer pVectorizer = NULL 
)
virtual

Reimplemented from OdGsNode.

◆ materialTraits() [1/2]

OdGiMaterialTraitsData& OdGsMaterialNode::materialTraits ( )

◆ materialTraits() [2/2]

const OdGiMaterialTraitsData& OdGsMaterialNode::materialTraits ( ) const

◆ nextNode()

OdGsMaterialNode* OdGsMaterialNode::nextNode ( ) const

◆ nodeType()

virtual ENodeType OdGsMaterialNode::nodeType ( ) const
inlinevirtual

Implements OdGsNode.

Definition at line 131 of file GsMaterialNode.h.

◆ ODRX_DECLARE_MEMBERS()

OdGsMaterialNode::ODRX_DECLARE_MEMBERS ( OdGsMaterialNode  )

◆ onModified()

virtual void OdGsMaterialNode::onModified ( OdGsBaseVectorizer view)
virtual

◆ prevNode()

OdGsMaterialNode* OdGsMaterialNode::prevNode ( ) const

◆ propagateLayerChanges()

virtual void OdGsMaterialNode::propagateLayerChanges ( OdGsViewImpl view)
protectedvirtual

No operation.

Implements OdGsNode.

◆ saveNodeState()

bool OdGsMaterialNode::saveNodeState ( OdGsFiler pFiler,
OdGsBaseVectorizer pVectorizer = NULL 
) const
virtual

Reimplemented from OdGsNode.

◆ setCachedData()

void OdGsMaterialNode::setCachedData ( OdGsBaseVectorizer view,
OdRxObject newCachedData 
)

◆ setCachedDataUpdated()

void OdGsMaterialNode::setCachedDataUpdated ( OdGsBaseVectorizer view)

◆ setNextNode()

OdGsMaterialNode* OdGsMaterialNode::setNextNode ( OdGsMaterialNode newNode)

◆ setPrevNode()

OdGsMaterialNode* OdGsMaterialNode::setPrevNode ( OdGsMaterialNode newNode)

◆ update() [1/2]

virtual void OdGsMaterialNode::update ( OdGsBaseVectorizer view)
virtual

◆ update() [2/2]

void OdGsMaterialNode::update ( OdGsUpdateContext &  ctx,
OdGsContainerNode pParent,
OdSiSpatialIndex pParentIndex 
)
protectedvirtual

No operation.

Implements OdGsNode.

Member Data Documentation

◆ m_cacheMap

CacheMap OdGsMaterialNode::m_cacheMap
protected

Definition at line 84 of file GsMaterialNode.h.

◆ m_dataInitialized

bool OdGsMaterialNode::m_dataInitialized
protected

Definition at line 74 of file GsMaterialNode.h.

◆ m_dataModified

bool OdGsMaterialNode::m_dataModified
protected

Definition at line 75 of file GsMaterialNode.h.

◆ m_materialTraits

OdGiMaterialTraitsData OdGsMaterialNode::m_materialTraits
protected

Definition at line 73 of file GsMaterialNode.h.

◆ m_pCacheMutex

OdMutexPtr OdGsMaterialNode::m_pCacheMutex
protected

Definition at line 85 of file GsMaterialNode.h.

◆ m_pMatNext

OdGsMaterialNode* OdGsMaterialNode::m_pMatNext
mutableprotected

Definition at line 88 of file GsMaterialNode.h.

◆ m_pMatPrev

OdGsMaterialNode* OdGsMaterialNode::m_pMatPrev
mutableprotected

Definition at line 87 of file GsMaterialNode.h.


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