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

#include <GsLayerNode.h>

Inheritance diagram for OdGsLayerNode:
OdGsNode OdGsCache OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGsLayerNode)
 
 OdGsLayerNode (OdGsBaseModel *pModel, const OdGiDrawable *pUnderlyingDrawable, bool bSetGsNode=true)
 
 ~OdGsLayerNode ()
 
void destroy ()
 
OdGiLayerTraitsDatalayerTraits (OdUInt32 nVpId)
 
const OdGiLayerTraitsDatalayerTraits (OdUInt32 nVpId) const
 
void reserveLayerTraits (OdUInt32 nVpId)
 
bool isDirty () const
 
void setDirty (bool bDirty)
 
bool isUpToDate (OdUInt32 nVpId) const
 
bool isValidCache (OdUInt32 nVpId) const
 
void setCacheUpToDate (OdUInt32 nVpId)
 
bool isInvalidated () const
 
bool isVpDep () const
 
virtual ENodeType nodeType () const
 
bool isVpFrozen () const
 
bool isFrozen () const
 
void invalidate (OdGsContainerNode *pParent, OdGsViewImpl *pView, OdUInt32 mask)
 
virtual void update (OdGsBaseVectorizer &view)
 
bool isTraitsCompatible (OdUInt32 nVpId1, OdUInt32 nVpId2) 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 Member Functions

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

Protected Attributes

OdGiLayerTraitsData m_layerTraits
 
OdGiLayerTraitsDataArray m_vpLayerTraits
 
OdGsLayerNodem_pNextChanged
 
- Protected Attributes inherited from OdGsNode
OdGsNodem_pPrev
 
OdGsNodem_pNext
 
OdGsBaseModelm_pModel
 
voidm_underlyingDrawable
 
OdUInt32 m_flags
 

Friends

class OdGsBaseModel
 
class OdGsEmptyMetafileCache
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- 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 }
 
- Static Protected Attributes inherited from OdGsNode
static GS_STATIC_EXPORT AllocatorArray s_aAlloc
 

Detailed Description

<group OdGs_Classes>

Definition at line 40 of file GsLayerNode.h.

Constructor & Destructor Documentation

◆ OdGsLayerNode()

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

◆ ~OdGsLayerNode()

OdGsLayerNode::~OdGsLayerNode ( )

Member Function Documentation

◆ destroy()

void OdGsLayerNode::destroy ( )
inlinevirtual

Implements OdGsNode.

Definition at line 83 of file GsLayerNode.h.

◆ display()

virtual void OdGsLayerNode::display ( OdGsDisplayContext &  ctx)
protectedvirtual

No operation.

Implements OdGsNode.

◆ extents()

bool OdGsLayerNode::extents ( OdGeExtents3d ) const
protectedvirtual

No operation.

Implements OdGsCache.

◆ invalidate()

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

No operation.

Implements OdGsNode.

◆ isDirty()

bool OdGsLayerNode::isDirty ( ) const
inline

Definition at line 122 of file GsLayerNode.h.

◆ isFrozen()

bool OdGsLayerNode::isFrozen ( ) const
inline

Definition at line 176 of file GsLayerNode.h.

◆ isInvalidated()

bool OdGsLayerNode::isInvalidated ( ) const
inline

Definition at line 146 of file GsLayerNode.h.

◆ isTraitsCompatible()

bool OdGsLayerNode::isTraitsCompatible ( OdUInt32  nVpId1,
OdUInt32  nVpId2 
) const

◆ isUpToDate()

bool OdGsLayerNode::isUpToDate ( OdUInt32  nVpId) const
inline

Definition at line 133 of file GsLayerNode.h.

◆ isValidCache()

bool OdGsLayerNode::isValidCache ( OdUInt32  nVpId) const

◆ isVpDep()

bool OdGsLayerNode::isVpDep ( ) const
inline

Definition at line 151 of file GsLayerNode.h.

◆ isVpFrozen()

bool OdGsLayerNode::isVpFrozen ( ) const
inline

Definition at line 171 of file GsLayerNode.h.

◆ layerTraits() [1/2]

OdGiLayerTraitsData & OdGsLayerNode::layerTraits ( OdUInt32  nVpId)
inline

Definition at line 156 of file GsLayerNode.h.

◆ layerTraits() [2/2]

const OdGiLayerTraitsData & OdGsLayerNode::layerTraits ( OdUInt32  nVpId) const
inline

Definition at line 161 of file GsLayerNode.h.

◆ loadNodeState()

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

Reimplemented from OdGsNode.

◆ nodeType()

virtual ENodeType OdGsLayerNode::nodeType ( ) const
inlinevirtual

Implements OdGsNode.

Definition at line 98 of file GsLayerNode.h.

◆ ODRX_DECLARE_MEMBERS()

OdGsLayerNode::ODRX_DECLARE_MEMBERS ( OdGsLayerNode  )

◆ propagateLayerChanges()

void OdGsLayerNode::propagateLayerChanges ( OdGsViewImpl view)
protectedvirtual

Invalidates parts of cache depended on layers modified since last regeneration.

Remarks
For internal use only. Returns this if and only if the this node is one of modified layers.

Implements OdGsNode.

◆ reserveLayerTraits()

void OdGsLayerNode::reserveLayerTraits ( OdUInt32  nVpId)

◆ saveNodeState()

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

Reimplemented from OdGsNode.

◆ setCacheUpToDate()

void OdGsLayerNode::setCacheUpToDate ( OdUInt32  nVpId)

◆ setDirty()

void OdGsLayerNode::setDirty ( bool  bDirty)
inline

Definition at line 128 of file GsLayerNode.h.

◆ update() [1/2]

virtual void OdGsLayerNode::update ( OdGsBaseVectorizer view)
virtual

◆ update() [2/2]

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

No operation.

Implements OdGsNode.

Friends And Related Function Documentation

◆ OdGsBaseModel

friend class OdGsBaseModel
friend

Definition at line 72 of file GsLayerNode.h.

◆ OdGsEmptyMetafileCache

friend class OdGsEmptyMetafileCache
friend

Definition at line 116 of file GsLayerNode.h.

Member Data Documentation

◆ m_layerTraits

OdGiLayerTraitsData OdGsLayerNode::m_layerTraits
protected

Definition at line 69 of file GsLayerNode.h.

◆ m_pNextChanged

OdGsLayerNode* OdGsLayerNode::m_pNextChanged
protected

Definition at line 73 of file GsLayerNode.h.

◆ m_vpLayerTraits

OdGiLayerTraitsDataArray OdGsLayerNode::m_vpLayerTraits
mutableprotected

Definition at line 70 of file GsLayerNode.h.


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