CFx SDK Documentation
2020SP3
|
#include <GsContainerNode.h>
Classes | |
struct | VpData |
Protected Types | |
enum | { kEntityListValid = OdGsNode::kLastFlag << 1, kCheckWorkset = OdGsNode::kLastFlag << 2, kHasStockData = OdGsNode::kLastFlag << 3, kVpDepCache = OdGsNode::kLastFlag << 4, kLastFlag = kVpDepCache } |
enum | { kChildrenNotUpToDate = 0x80000000 } |
typedef OdList< OdGsLightNode * > | LightsList |
typedef OdSmartPtr< VpData > | VpDataPtr |
typedef OdVector< VpDataPtr > | VpDataArray |
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 | |
VpData * | getVpData (OdUInt32 nVpId, bool bCreateIfNotFound=true) const |
VpData * | makeVpData (OdUInt32 nVpId) const |
OdUInt32 | vpDataId (const VpData *pVpData) const |
virtual void | propagateLayerChanges (OdGsViewImpl &view) |
bool | saveVpData (OdGsFiler *pFiler, const VpData *pVpData) const |
bool | loadVpData (OdGsFiler *pFiler, VpData *pVpData) |
Protected Member Functions inherited from OdGsNode | |
void | setInvalidVp (bool val) |
void | clearDrawable () |
OdGsNode (const OdGsNode &c) | |
Protected Attributes | |
VpDataArray | m_vpData |
VpDataPtr | m_shareableData |
OdUInt32Vector | m_vpAwareFlags |
ViewRefs | m_viewRefs |
StockProps | m_stock |
OdMutexPtr | m_lightsMutex |
Protected Attributes inherited from OdGsNode | |
OdGsNode * | m_pPrev |
OdGsNode * | m_pNext |
OdGsBaseModel * | m_pModel |
void * | m_underlyingDrawable |
OdUInt32 | m_flags |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Static Protected Attributes inherited from OdGsNode | |
static GS_STATIC_EXPORT AllocatorArray | s_aAlloc |
This class implements OdGsNode descendent objects that can serve as containers for OdGsEntityNode objects.
Corresponding C++ library: TD_Gs <group OdGs_Classes>
Definition at line 46 of file GsContainerNode.h.
|
protected |
Definition at line 64 of file GsContainerNode.h.
|
protected |
Definition at line 90 of file GsContainerNode.h.
|
protected |
Definition at line 89 of file GsContainerNode.h.
|
protected |
Enumerator | |
---|---|
kEntityListValid | |
kCheckWorkset | |
kHasStockData | |
kVpDepCache | |
kLastFlag |
Definition at line 49 of file GsContainerNode.h.
|
protected |
Enumerator | |
---|---|
kChildrenNotUpToDate |
Definition at line 58 of file GsContainerNode.h.
OdGsContainerNode::OdGsContainerNode | ( | OdGsBaseModel * | pModel, |
const OdGiDrawable * | pUnderlyingDrawable, | ||
bool | bSetGsNode = true |
||
) |
pModel | [in] Pointer to the BaseModel object. |
pUnderlyingDrawable | [in] Pointer to the underlying Drawable object. |
bTopLevel | [in] true if container represents layout's block |
OdGsContainerNode::~OdGsContainerNode | ( | ) |
|
virtual |
Adds a child node to this ContainerNode object.
pDrawable | [in] Pointer to the Drawable object. |
unerased | [in] Added child is unerased. |
void OdGsContainerNode::addChildNode | ( | OdUInt32 | nVpId, |
OdGsEntityNode * | pEnt | ||
) |
|
virtual |
Adds content of node to the update manager
viewportId | [in] Id of viewport |
pManager | [in] Pointer to the Update Manager instance |
context | [in] UpdateManagerContext that specify what values should be initialized |
Reimplemented from OdGsNode.
void OdGsContainerNode::addEntProps | ( | const OdGsUpdateContext & | ctx | ) |
|
virtual |
Definition at line 688 of file GsContainerNode.h.
|
inline |
Definition at line 493 of file GsContainerNode.h.
Returns the Aware flags for the specified Viewport for this ContainerNode object.
viewportId | [in] Viewport ID. |
Value kVpID 0x00000001 kVpRegenType 0x00000002 kVpRenderMode 0x00000004 kVpWorldToEye 0x00000008 kVpPerspective 0x00000010 kVpResolution 0x00000020 kVpMaxDevForCircle 0x00000040 kVpMaxDevForCurve 0x00000080 kVpMaxDevForBoundary 0x00000100 kVpMaxDevForIsoline 0x00000200 kVpMaxDevForFacet 0x00000400 kVpCamLocation 0x00000800 kVpCamTarget 0x00001000 kVpCamUpVector 0x00002000 kVpCamViewDir 0x00004000 kVpViewport 0x00008000 kVpFrontBack 0x00010000 kVpFrozenLayers 0x00020000 kVpLtypeScaleMult 0x00040000 kEntityRegenDraw 0x00080000 kVpDisableLayoutCache 0x00100000 kVpModelTf 0x00200000 kVpExcludeFromExtMinMax 0x00400000 kSectionable 0x00800000 kVpRenderModule 0x01000000 kVpAnnoScale 0x02000000 kVpFilterFunction 0x04000000 kVpVisualStyle 0x08000000 kVpHighlightingGeom 0x10000000
Definition at line 618 of file GsContainerNode.h.
|
inline |
Definition at line 649 of file GsContainerNode.h.
|
inline |
Definition at line 659 of file GsContainerNode.h.
|
inline |
Returns true if and only if the ChildrenUpToDate flag is set for this ContainterNode object.
nVpId | [in] Viewport ID. |
Definition at line 594 of file GsContainerNode.h.
OdUInt32 OdGsContainerNode::currViewChanges | ( | ) | const |
Returns summ of all aware flags for entire viewports list.
void OdGsContainerNode::destroySubitems | ( | ) |
|
virtual |
Paints the specified view with the cached data associated with this Node object.
view | [in] View to be painted. |
Implements OdGsNode.
|
virtual |
Vectorizes the entities in all of the child nodes of this ContainerNode object.
ctx | [in] Display context. |
bool OdGsContainerNode::doMTUpdate | ( | OdGsUpdateContext & | ctx | ) |
void OdGsContainerNode::doSTUpdate | ( | OdGsUpdateContext & | ctx | ) |
|
inline |
Returns true if and only if the EntityListValid flag is set for this ContainterNode object.
nVpId | [in] Viewport ID. |
Definition at line 483 of file GsContainerNode.h.
|
virtual |
Returns extents of this container node object.
ext | [out] Reference to the OdGeExtents3d object which will receive current container node extents. |
Reimplemented from OdGsNode.
|
virtual |
Returns extents of this container node object.
extents | [out] Reference to the OdGeExtents3d object which will receive current container node extents. |
Implements OdGsCache.
bool OdGsContainerNode::findCompatibleCache | ( | OdGsViewImpl & | keyView | ) |
|
inline |
Returns pointer to the first entity node inside container.
nVpId | [in] Viewport ID. |
Definition at line 552 of file GsContainerNode.h.
|
inline |
Returns pointer to the first entity node inside container.
nVpId | [in] Viewport ID. |
Definition at line 560 of file GsContainerNode.h.
|
inlineprotected |
Definition at line 439 of file GsContainerNode.h.
|
inline |
Definition at line 464 of file GsContainerNode.h.
bool OdGsContainerNode::highlightSubnodes | ( | OdUInt32 | nSubnodes, |
bool | bHighlight, | ||
bool | bAll | ||
) |
Add/release counter of highlighted children of the node, and set kHLT/kHLT_All flags if necessary
nSubnodes | [in] number of subnodes |
bHighlight | [in] if true then highlight else unhighlight |
bAll | [in] if true then consider kHLT_All flag Returns true if and only if highlighting of the child caused changing of kHLT flag on the container. |
|
virtual |
Implements OdGsNode.
OdUInt32 OdGsContainerNode::isAttached | ( | OdGsEntityNode * | pNode | ) | const |
|
inline |
Definition at line 498 of file GsContainerNode.h.
|
inline |
Definition at line 478 of file GsContainerNode.h.
|
inline |
Returns pointer to the last entity node inside container.
nVpId | [in] Viewport ID. |
Definition at line 568 of file GsContainerNode.h.
|
inline |
Returns pointer to the last entity node inside container.
nVpId | [in] Viewport ID. |
Definition at line 576 of file GsContainerNode.h.
|
inline |
Returns light nodes list.
nVpId | [in] Viewport ID. |
Definition at line 584 of file GsContainerNode.h.
|
inline |
Returns light nodes list.
nVpId | [in] Viewport ID. |
Definition at line 589 of file GsContainerNode.h.
|
virtual |
Reimplemented from OdGsNode.
void OdGsContainerNode::makeStock | ( | ) |
|
inline |
Returns true if and only if a regen is required for the specified Viewport object for this ContainterNode object.
nVpId | [in] Viewport ID. |
Definition at line 640 of file GsContainerNode.h.
|
inlinevirtual |
Implements OdGsNode.
Definition at line 130 of file GsContainerNode.h.
|
inline |
Returns number of child entities
nVpId | [in] Viewport ID. |
Definition at line 708 of file GsContainerNode.h.
Definition at line 718 of file GsContainerNode.h.
Definition at line 713 of file GsContainerNode.h.
|
inline |
Definition at line 471 of file GsContainerNode.h.
OdGsContainerNode::ODRX_DECLARE_MEMBERS | ( | OdGsContainerNode | ) |
|
virtual |
Reimplemented from OdGsNode.
void OdGsContainerNode::propagateInvalidVpFlag | ( | ) |
Updates invalidVp flag for entire entities list.
|
protectedvirtual |
Invalidates parts of cache depended on layers modified since last regeneration.
Implements OdGsNode.
void OdGsContainerNode::propagateLayerChangesStock | ( | ) |
|
inline |
Returns real extents of the node
nVpId | [in] Viewport ID. |
Definition at line 674 of file GsContainerNode.h.
void OdGsContainerNode::releaseStock | ( | ) |
Removes the specified child node from this ContainerNode object.
pNode | [in] Pointer to the child object. |
void OdGsContainerNode::removeErased | ( | ) |
Removes entities marked as erased.
|
virtual |
Definition at line 693 of file GsContainerNode.h.
bool OdGsContainerNode::safeEntityUpdate | ( | OdGsEntityNode * | pEntity, |
OdGsUpdateContext & | ctx, | ||
OdSiSpatialIndex * | pSpatialIndex | ||
) |
|
virtual |
Reimplemented from OdGsNode.
Sets the Aware flags for the specified Viewport for this ContainerNode object.
viewportId | [in] Viewport ID. |
flags | [in] Aware flags. |
Value kVpID 0x00000001 kVpRegenType 0x00000002 kVpRenderMode 0x00000004 kVpWorldToEye 0x00000008 kVpPerspective 0x00000010 kVpResolution 0x00000020 kVpMaxDevForCircle 0x00000040 kVpMaxDevForCurve 0x00000080 kVpMaxDevForBoundary 0x00000100 kVpMaxDevForIsoline 0x00000200 kVpMaxDevForFacet 0x00000400 kVpCamLocation 0x00000800 kVpCamTarget 0x00001000 kVpCamUpVector 0x00002000 kVpCamViewDir 0x00004000 kVpViewport 0x00008000 kVpFrontBack 0x00010000 kVpFrozenLayers 0x00020000 kVpLtypeScaleMult 0x00040000 kEntityRegenDraw 0x00080000 kVpDisableLayoutCache 0x00100000 kVpModelTf 0x00200000 kVpExcludeFromExtMinMax 0x00400000 kSectionable 0x00800000 kVpRenderModule 0x01000000 kVpAnnoScale 0x02000000 kVpFilterFunction 0x04000000 kVpVisualStyle 0x08000000 kVpHighlightingGeom 0x10000000
Definition at line 625 of file GsContainerNode.h.
|
inline |
Definition at line 654 of file GsContainerNode.h.
Definition at line 666 of file GsContainerNode.h.
|
inline |
Controls the ChildrenUpToDate flag for this ContainterNode object.
childrenUpToDate | [in] Controls flag. |
nVpID | [in] Viewport ID. |
Definition at line 601 of file GsContainerNode.h.
|
inline |
Definition at line 510 of file GsContainerNode.h.
Controls the EntityListValid flag for this ContainterNode object.
nVpId | [in] Viewport ID. |
entityListValid | [in] Controls flag. |
Definition at line 520 of file GsContainerNode.h.
|
inline |
Sets real extents of the node and its maximal lineweight
nVpId | [in] Viewport ID. |
ext | [in] New real extents for the node. |
nMaxLw | [in] New maximal lineweight for the node. |
Definition at line 682 of file GsContainerNode.h.
|
inline |
Returns a reference to the spatial index for this ContainerNode object.
nVpId | [in] Viewport ID. |
Definition at line 542 of file GsContainerNode.h.
|
inline |
Returns a reference to the spatial index for this ContainerNode object.
nVpId | [in] Viewport ID. |
Definition at line 547 of file GsContainerNode.h.
|
inline |
Definition at line 703 of file GsContainerNode.h.
void OdGsContainerNode::turnOnLights | ( | OdGsBaseVectorizer & | view | ) |
|
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. |
Implements OdGsNode.
|
virtual |
|
virtual |
|
virtual |
Updates the cached data if Node object is visible in specified view
pViewImpl | [in] pointer to the View Implementation |
Reimplemented from OdGsNode.
OdUInt32 OdGsContainerNode::viewportId | ( | const OdGsViewImpl & | pView, |
bool | bForceVpId = true |
||
) | const |
|
inline |
Definition at line 698 of file GsContainerNode.h.
Definition at line 449 of file GsContainerNode.h.
|
protected |
Definition at line 434 of file GsContainerNode.h.
|
mutableprotected |
Definition at line 430 of file GsContainerNode.h.
|
protected |
Definition at line 433 of file GsContainerNode.h.
|
protected |
Definition at line 432 of file GsContainerNode.h.
|
protected |
Definition at line 431 of file GsContainerNode.h.
|
mutableprotected |
Definition at line 429 of file GsContainerNode.h.