CFx SDK Documentation 2024 SP0
|
#include <GsNode.h>
Classes | |
struct | UpdateManagerContext |
Public Member Functions | |
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 Types | |
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 } |
Protected Member Functions | |
void | setInvalidVp (bool val) |
void | clearDrawable () |
void | setSelectionStyleImpl (OdUInt32 nStyle) |
OdUInt32 | getSelectionStyleImpl () const |
OdGsNode (const OdGsNode &c) | |
Protected Attributes | |
OdGsNode * | m_pPrev |
OdGsNode * | m_pNext |
OdGsBaseModel * | m_pModel |
void * | m_underlyingDrawable |
OdUInt32 | m_flags |
OdUInt32 | m_userFlags |
Static Protected Attributes | |
static GS_STATIC_EXPORT AllocatorArray | s_aAlloc |
Friends | |
class | OdGsBaseModel |
class | OdGsViewImpl |
GS_TOOLKIT_EXPORT OdGiDrawablePtr | fxUnderlyingDrawable (const OdGsNode *) |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is the base class for custom GsNode objects which implement custom caching support for client vectorization applications.
This cached information can be fed into the ODA Platform vectorization framework during a redraw instead of making the usual calls to subWorldDraw() and subViewportDraw(), thereby greatly improving the speed of redraws.
Corresponding C++ library: TD_Gs <group OdGs_Classes>
|
protected |
OdGsNode::OdGsNode | ( | OdGsBaseModel * | pModel, |
const OdGiDrawable * | pUnderlyingDrawable | ||
) |
Constructor for the OdGsNode class.
pModel | [in] Pointer to the BaseModel object. |
pUnderlyingDrawable | [in] Pointer to the underlying Drawable object. |
|
protected |
|
virtual |
|
inlinevirtual |
Adds content of node to the update manager.
viewportId | [in] Id of a viewport. |
pManager | [in] Pointer to the Update Manager instance. |
context | [in] UpdateManagerContext that specify what values should be initialized. |
Reimplemented in OdGsContainerNode, and OdGsEntityNode.
|
virtual |
Implements OdRxObject.
|
inline |
|
protected |
Removes the associations between the underlying Drawable object and this GsNode object.
|
pure virtual |
Implemented in OdGsBlockNode, OdGsBlockReferenceNode, OdGsMInsertBlockNode, OdGsContainerNode, OdGsEntityNode, OdGsLayerNode, and OdGsMaterialNode.
|
pure virtual |
Paints the specified view with the cached data associated with this Node object.
ctx | [in] Current GS update context. |
Implemented in OdGsBlockNode, OdGsContainerNode, OdGsEntityNode, OdGsLayerNode, and OdGsMaterialNode.
|
virtual |
Reimplemented in OdGsContainerNode, and OdGsEntityNode.
|
virtual |
Reimplemented in OdGsEntityNode.
|
protected |
Internal part of selection style getter implementation.
|
inline |
|
virtual |
Hides the specified node.
bDoIt | [in] Flag that specifies whether to hide this node (true) or show it (false). |
bSelectable | [in] Flag that specifies whether this node should be selectable when it is hidden. |
bWholeBranch | [in] Flag that specifies whether the node hidden state should be changed for all branches. |
Reimplemented in OdGsEntityNode.
Highlights the specified node.
bDoIt | [in] Flag that specifies whether to highlight. If true - highlight, if false - unhighlight. |
bWholeBranch | [in] Specifies whether the node highlight state will be applied to all subentitites. |
nSelStyle | [in] Optional selection style index. |
Reimplemented in OdGsMInsertBlockNode, and OdGsEntityNode.
|
pure virtual |
Invalidates the cached data within this object.
pParent | [in] Pointer to the ContainerNode object for this Node object. |
pView | [in] Pointer to the VectorizeView object for which data are to be invalidated. |
mask | [in] Mask. |
Implemented in OdGsBlockReferenceNode, OdGsMInsertBlockNode, OdGsContainerNode, OdGsEntityNode, OdGsLayerNode, OdGsLightNode, OdGsMaterialNode, and OdGsBlockNode.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Checks whether metafiles are compatible with for the specified vectorize views.
pView1 | [in] Pointer to the VectorizeView |
pView2 | [in] Pointer to the VectorizeView |
Reimplemented in OdGsContainerNode, and OdGsEntityNode.
|
inline |
|
inline |
|
virtual |
Reimplemented in OdGsBlockReferenceNode, OdGsMInsertBlockNode, and OdGsLightNode.
|
virtual |
Reimplemented in OdGsBlockNode, OdGsContainerNode, OdGsEntityNode, OdGsLayerNode, and OdGsMaterialNode.
|
virtual |
Returns a model that is associated with this node.
Implements OdGsCache.
bool OdGsNode::modelExtents | ( | const OdGsView * | pView, |
OdGeExtents3d & | ext, | ||
bool | bUseModelTf = true |
||
) | const |
bool OdGsNode::modelExtents | ( | OdGeExtents3d & | ext, |
bool | bUseModelTf = true |
||
) | const |
|
pure virtual |
Implemented in OdGsBlockNode, OdGsContainerNode, OdGsEntityNode, OdGsLayerNode, and OdGsMaterialNode.
OdGsNode::ODRX_DECLARE_MEMBERS | ( | OdGsNode | ) |
void * OdGsNode::operator new | ( | size_t | ) |
|
virtual |
Reimplemented in OdGsBlockNode, OdGsBlockReferenceNode, OdGsMInsertBlockNode, and OdGsContainerNode.
|
pure virtual |
Invalidates parts of cache depended on layers modified since last regeneration.
view | [in] View Implementation object. |
Implemented in OdGsBlockNode, OdGsBlockReferenceNode, OdGsContainerNode, OdGsEntityNode, OdGsLayerNode, and OdGsMaterialNode.
|
virtual |
Implements OdRxObject.
|
virtual |
Reimplemented in OdGsBlockReferenceNode, OdGsMInsertBlockNode, and OdGsLightNode.
|
virtual |
Reimplemented in OdGsBlockNode, OdGsContainerNode, OdGsEntityNode, OdGsLayerNode, and OdGsMaterialNode.
|
inline |
|
virtual |
Resets pointer to the underlying GiDrawable object associated with this Node object.
Implements OdGsCache.
Internal part of selection style setter implementation.
nStyle | [in] Selection style index. |
void OdGsNode::setToDrawable | ( | const OdGiDrawable * | pUnderlyingDrawable | ) |
Sets underlying drawable for current Node object.
pUnderlyingDrawble | [in] Drawable object pointer. |
OdGsNode::TD_USING | ( | OdGsCache::extents | ) |
|
inline |
|
inline |
|
pure virtual |
Updates the cached data within this Node object for the specified VectorizeView and ContainerNode objects.
pParent | [in] Pointer to the ContainerNode object for this Node object. |
view | [in] VectorizeView object for which data are to be updated. |
Implemented in OdGsBlockNode, OdGsLightNode, OdGsBlockReferenceNode, OdGsContainerNode, OdGsEntityNode, OdGsLayerNode, and OdGsMaterialNode.
|
inlinevirtual |
Updates the cached data if Node object is visible in specified view.
pViewImpl | [in] pointer to the View Implementation. |
Reimplemented in OdGsContainerNode, and OdGsEntityNode.
|
inline |
|
friend |
|
friend |
|
friend |
|
protected |
|
staticprotected |