CFx SDK Documentation 2024 SP0
|
#include <GsLayerNode.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGsLayerNode) | |
OdGsLayerNode (OdGsBaseModel *pModel, const OdGiDrawable *pUnderlyingDrawable, bool bSetGsNode=true) | |
~OdGsLayerNode () | |
void | destroy () |
OdGiLayerTraitsData & | layerTraits (OdUInt32 nVpId) |
const OdGiLayerTraitsData & | layerTraits (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) | |
void * | operator new (size_t) |
void | operator delete (void *) |
void | addRef () |
void | release () |
OdGsNode (OdGsBaseModel *pModel, const OdGiDrawable *pUnderlyingDrawable) | |
virtual | ~OdGsNode () |
OdGsBaseModel * | baseModel () const |
OdGsModel * | model () const |
bool | isContainer () const |
virtual ENodeType | nodeType () const =0 |
bool | isSyncDrawable () const |
virtual void | invalidate (OdGsContainerNode *pParent, OdGsViewImpl *pView, OdUInt32 mask)=0 |
OdGiDrawablePtr | underlyingDrawable () const |
OdDbStub * | underlyingDrawableId () const |
virtual void | update (OdGsUpdateContext &ctx, OdGsContainerNode *pParent, OdSiSpatialIndex *pParentIndex)=0 |
virtual void | updateVisible (OdGsViewImpl *pViewImpl) |
virtual void | display (OdGsDisplayContext &ctx)=0 |
virtual void | propagateLayerChanges (OdGsViewImpl &view)=0 |
virtual void | highlight (bool bDoIt, bool bWholeBranch, OdUInt32 nSelStyle=0) |
bool | isHighlighted () const |
bool | isHighlightedAll () const |
virtual void | destroy ()=0 |
virtual void | hide (bool bDoIt, bool bSelectable=false, bool bWholeBranch=true) |
bool | isHidden () const |
bool | isSelectableIfHidden () const |
bool | isHiddenAll () const |
OdUInt32 | selectionStyle () const |
bool | hasSelectionStyle () const |
OdUInt32 | userFlags () const |
void | setUserFlags (OdUInt32 val) |
virtual bool | saveNodeState (OdGsFiler *pFiler, OdGsBaseVectorizer *pVectorizer=NULL) const |
virtual bool | loadNodeState (OdGsFiler *pFiler, OdGsBaseVectorizer *pVectorizer=NULL) |
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 |
bool | modelExtents (OdGeExtents3d &ext, bool bUseModelTf=true) const |
bool | modelExtents (const OdGsView *pView, OdGeExtents3d &ext, bool bUseModelTf=true) const |
virtual OdDb::LineWeight | getMaxLineweightUsed () const |
virtual void | setDrawableNull () |
virtual void | addContentToUpdateManager (OdUInt32 viewportId, OdGsUpdateManager *pManager, const UpdateManagerContext &context) |
virtual bool | isMetafilesCompatible (const OdGsViewImpl *pView1, const OdGsViewImpl *pView2, OdGsUpdateContext *ctx) |
Public Member Functions inherited from OdGsCache | |
ODRX_DECLARE_MEMBERS (OdGsCache) | |
virtual OdGsModel * | model () const =0 |
virtual void | setDrawableNull ()=0 |
virtual bool | extents (OdGeExtents3d &extents) const =0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () 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 |
Protected Member Functions | |
void | update (OdGsUpdateContext &ctx, OdGsContainerNode *pParent, OdSiSpatialIndex *pParentIndex) |
virtual void | display (OdGsDisplayContext &ctx) |
bool | extents (OdGeExtents3d &) const |
void | propagateLayerChanges (OdGsViewImpl &view) |
void | updateVpFrozen (OdGsViewImpl *pView) |
Protected Member Functions inherited from OdGsNode | |
void | setInvalidVp (bool val) |
void | clearDrawable () |
void | setSelectionStyleImpl (OdUInt32 nStyle) |
OdUInt32 | getSelectionStyleImpl () const |
OdGsNode (const OdGsNode &c) | |
Protected Attributes | |
OdGiLayerTraitsData | m_layerTraits |
OdGiLayerTraitsDataArray | m_vpLayerTraits |
OdGsLayerNode * | m_pNextChanged |
Protected Attributes inherited from OdGsNode | |
OdGsNode * | m_pPrev |
OdGsNode * | m_pNext |
OdGsBaseModel * | m_pModel |
void * | m_underlyingDrawable |
OdUInt32 | m_flags |
OdUInt32 | m_userFlags |
Friends | |
class | OdGsBaseModel |
class | OdGsEmptyMetafileCache |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Types inherited from OdGsNode | |
enum | { kPersistent = 0x00000001 , kContainer = 0x00000002 , kHLT = 0x00000004 , kHLT_All = 0x00000008 , kSyncDrawable =0x00000010 , kHidden = 0x00000020 , kSelectHidden =0x00000040 , kHiddenAll = 0x00000080 , kSelStyle = 0x00000100 , kLastFlag = kSelStyle } |
enum | { kInvalidateVp = 0x80000000 } |
Static Protected Attributes inherited from OdGsNode | |
static GS_STATIC_EXPORT AllocatorArray | s_aAlloc |
<group OdGs_Classes>
Definition at line 40 of file GsLayerNode.h.
OdGsLayerNode::OdGsLayerNode | ( | OdGsBaseModel * | pModel, |
const OdGiDrawable * | pUnderlyingDrawable, | ||
bool | bSetGsNode = true |
||
) |
Constructor for the OdGsLayerNode class.
pModel | [in] Pointer to the BaseModel object. |
pUnderlyingDrawable | [in] Pointer to the underlying Drawable object. |
bSetGsNode | [in] Flag that controls whether to set GS node to the underlying drawable. |
OdGsLayerNode::~OdGsLayerNode | ( | ) |
Destructor for the OdGsLayerNode class.
|
inlinevirtual |
Destroys a layer node. Does nothing in default implementation.
Implements OdGsNode.
Definition at line 118 of file GsLayerNode.h.
|
protectedvirtual |
Paints the specified view with the cached data associated with this Node object. Does nothing in default implementation.
ctx | [in] Display context. |
Implements OdGsNode.
|
protectedvirtual |
Returns extents of this container node object. Does nothing in default implementation.
Implements OdGsCache.
|
virtual |
Invalidates this layer node.
pParent | [in] Parent container node. |
view | [in] Implementation view object for which data is invalidated. |
mask | [in] Mask. |
Implements OdGsNode.
|
inline |
Definition at line 260 of file GsLayerNode.h.
|
inline |
Checks whether this layer node is frozen.
Definition at line 314 of file GsLayerNode.h.
|
inline |
Checks whether this layer node is marked as invalid.
Definition at line 284 of file GsLayerNode.h.
Checks whether layer traits of the specified viewports are compatible. Layer traits are compatible if: Layer colors are equal Layer lineweights are equal Layer linetypes are equal Layer plot style name types are equal OR plot style name identifiers are equal in case if plotStyleNameType() == OdDb::kPlotStyleNameById Layer material identifiers are equal At least of the layers that some flags set.
nVpId1 | [in] First viewport that has layer traits associated to it. |
nVpId2 | [in] Second viewport that has layer traits associated to it. |
|
inline |
Checks whether this layer node is up to date.
nVpId | [in] Viewport ID for viewport-dependent layer nodes. |
Definition at line 271 of file GsLayerNode.h.
bool OdGsLayerNode::isValidCache | ( | OdUInt32 | nVpId | ) | const |
Checks whether cache of this layer node is valid.
nVpId | [in] Viewport ID for viewport-dependent layer nodes. |
|
inline |
Checks whether this layer node is viewport-dependent.
Definition at line 289 of file GsLayerNode.h.
|
inline |
Checks whether this layer node is frozen.
Definition at line 309 of file GsLayerNode.h.
|
inline |
Retrieves layer traits.
nVpId | [in] Viewport ID for viewport-dependent layer nodes. |
Definition at line 294 of file GsLayerNode.h.
|
inline |
Retrieves layer traits by the passed viewport identifier.
nVpId | [in] Viewport ID for viewport-dependent layer nodes. |
Definition at line 299 of file GsLayerNode.h.
|
virtual |
Restores node state from filer object.
pFiler | [in] Pointer to a filer object. Filer object. |
pVectorizer | [in] Pointer to a vectorizer. May be needed to load vectorizer client metafile (cache). |
Reimplemented from OdGsNode.
|
inlinevirtual |
Retrieves a node type of this object.
Implements OdGsNode.
Definition at line 183 of file GsLayerNode.h.
OdGsLayerNode::ODRX_DECLARE_MEMBERS | ( | OdGsLayerNode | ) |
|
protectedvirtual |
Invalidates parts of cache depended on layers modified since last regeneration.
view | [in] Implementation view object. |
Implements OdGsNode.
|
virtual |
Stores current state of this layer node into filer object.
pFiler | [out] Pointer to a filer object. |
pVectorizer | [in/out] Pointer to a vectorizer. May be needed to save vectorizer client metafile (cache). |
Reimplemented from OdGsNode.
Specifies that cache of this layer node is valid.
nVpId | [in] Viewport ID for viewport-dependent layer nodes. |
|
inline |
Definition at line 266 of file GsLayerNode.h.
|
virtual |
Updates this layer node.
view | [in] Vectorizer view. |
|
protectedvirtual |
Updates this container node. Does nothing in default implementation.
ctx | [in] GS update context. |
pParent | [in] Pointer to a parent container node. |
pParentIndex | [in] Pointer to a parent spatial index. |
Implements OdGsNode.
|
protected |
Updates the viewport-frozen flag state of this layer node. If this layer is not visible for one of the views in an associated base model, the kVpFrozen flag for this layer node is set to true.
view | [in] Implementation view object. Not used. |
|
friend |
Definition at line 96 of file GsLayerNode.h.
|
friend |
Definition at line 254 of file GsLayerNode.h.
|
protected |
Definition at line 93 of file GsLayerNode.h.
|
protected |
Definition at line 97 of file GsLayerNode.h.
|
mutableprotected |
Definition at line 94 of file GsLayerNode.h.