![]() |
VR-Forces Developer's Guide
|
The class that will be used to keep track of echelon hierarchy. (This was moved from vrvVrl 2022)

Public Types | |
| enum | Flags { Destroyed = 0x80000000 } |
Public Member Functions | |
| virtual | ~DtAggregateEchelonManager () |
| virtual void | setDisplayInitiallyExpanded (bool) |
| virtual void | setRecord (const makArchives::DtAggregateSettingsRecord &) |
| virtual void | setDestroyed (DtElementID id, bool) |
| bool | destroyed (DtElementID) const |
| void | removeElementPendingDestroyedState (DtElementID id) |
| DtElementID | parent (DtElementID id) |
| const DtElementIDHierarchy & | hierarchy () const |
| DtElementIDHierarchy & | hierarchy () |
| virtual const makArchives::DtAggregateSettingsRecord & | aggregateSettings () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtAggregateEchelonManager & | instance (DtBaseConnection &connection) |
| static void | registerInstance (DtBaseConnection &sim, DtAggregateEchelonManager *) |
| static void | processDisplayOperation (DtDe &de, DtElementID id, DtElementIDHierarchyDisplayState::DisplayState operation) |
| static void | processDirectDisplayOperation (DtDe &de, DtElementID id, DtElementIDHierarchyDisplayState::DisplayState operation) |
| static const DtElementIDHierarchyStateAttribute * | findHierarchyItem (DtDe &de, DtElementID id) |
| static const DtElementIDHierarchyDisplayStateAttribute * | findDisplayState (DtDe &de, DtElementID id) |
| static bool | aggregateElementCanBeExpanded (DtDe &de, DtElementID id) |
| static bool | aggregateElementCanBeCollapsed (DtDe &de, DtElementID id) |
Public Attributes | |
| boost::signalslib::signal < void(DtElementID, bool b) > | signal_aggregateDestroyedStateChanged |
| boost::signalslib::signal < void(DtElementID, DtElementIDHierarchyNode::DisplayState) > | signal_visibilityStateChanged |
| boost::signalslib::signal < void(DtElementIDHierarchyNode *) > | signal_hierarchyItemModified |
| boost::signalslib::signal < void(DtElementID, const DtElementIDHierarchy::ElementIDs &) > | signal_updateHierarchy |
Protected Member Functions | |
| virtual void | hierarchyItemModified (DtElementIDHierarchyNode *) |
| virtual void | hierarchyItemAboutToBeRemoved (DtElementIDHierarchyNode *) |
| virtual DtElementIDHierarchyNode::DisplayState | expectedDisplayStateFor (const DtElementIDHierarchyNode *node) |
| virtual void | updateDestroyedState (DtElementIDHierarchyNode *parentNode) |
| virtual void | updateHierarchy (DtElementID parentId, const DtElementIDHierarchy::ElementIDs &children) |
| DtAggregateEchelonManager (DtBaseConnection &sim) | |
| virtual void | slot_echelonVisibilityChanged (DtElementIDHierarchy::VisibilityProcessingList) |
| void | setShowLeafNodes (bool enabled) |
| void | setGhostEchelonLevelItems (bool enabled) |
| void | setGhostEchelonLevelItemLabels (bool enabled) |
| void | setEchelonLevel (int l) |
| void | setDisplayAggregates (bool enabled) |
Static Private Member Functions | |
| static void | postDisplayOperation (DtDe &de, DtElementID elementToProcess, DtElementIDHierarchyDisplayState::DisplayState operation) |
|
virtual |
|
protected |
|
static |
Get the global instance.
|
static |
Register the global instance.
|
static |
Apply a display-state operation to an aggregate with user interaction redirect semantics (VRV-6733).
This is the GUI-facing entry point for collapse/expand operations. Its redirect rules mirror what a user expects when selecting an item and pressing Collapse/Expand:
id has a hierarchy parent the operation is redirected to that parent. This lets a user select a subordinate element and collapse it into its superior without having to first navigate to the superior.id is a childless leaf node the operation is redirected to its parent for the same ergonomic reason.id is not found in the data bank the call is a no-op.| de | The simulation data environment. |
| id | The element whose display state should change (may be redirected; see above). |
| operation | The desired display-state transition. |
|
static |
Apply a display-state operation to exactly the named aggregate with no parent redirection.
This entry point is intended for programmatic callers (e.g. DtAutoCollapseExpandEchelonManager) that have already selected the precise target aggregate through their own tree-walk logic and must not have the operation silently redirected to a parent. Unlike processDisplayOperation(), no useParent logic is applied: the operation is posted for id itself regardless of its position in the hierarchy. All four DisplayState values (Expand, ExpandAll, Collapse, CollapseAll) are applied directly to id with no hierarchy-parent substitution.
If id does not exist in the data bank the method does nothing (same silent behavior as processDisplayOperation()).
| de | The simulation data environment. |
| id | The element to which the operation is applied exactly as given. |
| operation | The desired display-state transition. |
|
static |
Utility function to retrieve the DtElementIDHierarchyStateAttribute of an aggregate.
|
static |
Utility function to retrieve the ElementIDHierarchyDisplayStateAttribute of an aggregate.
|
static |
Utility function to determine whether an aggregate can be expanded or not.
|
static |
Utility function to determine whether an aggregate can be collapsed or not.
|
protectedvirtual |
Called when a hierarchy item is modified. Uses echelon signaler to emit signal that an item was modified.
|
protectedvirtual |
Called when a hierarchy item is about to be removed.
|
virtual |
Sets, into the hierarchy, to display initially expanded (or not)
|
virtual |
Called when aggregate settings have changed, redo settings for appropriate observer mode.
|
virtual |
Sets whether or not something is destroyed. Since aggregates do not publish their destroyed states, this will keep track of that, and signal when aggregate destroyed states changes based on their subordinates.
| bool makVrv::DtAggregateEchelonManager::destroyed | ( | DtElementID | ) | const |
| void makVrv::DtAggregateEchelonManager::removeElementPendingDestroyedState | ( | DtElementID | id | ) |
Individual entities also add destroyed state info, which they need to remove when they are destroyed.
| DtElementID makVrv::DtAggregateEchelonManager::parent | ( | DtElementID | id | ) |
|
inline |
Retrieves the hierarchy.
|
inline |
|
virtual |
Access the aggregate settings record. This is a copy of the record based on signals provided by the DtSharedAggregateDisplaySettingsSignaler.
|
protected |
These methods are called when signals are raised by the DtSharedAggregateDisplaySettingsSignaler that need to be passed down to the DtElementIDHierarchy member.
|
protected |
These methods are called when signals are raised by the DtSharedAggregateDisplaySettingsSignaler that need to be passed down to the DtElementIDHierarchy member.
|
protected |
These methods are called when signals are raised by the DtSharedAggregateDisplaySettingsSignaler that need to be passed down to the DtElementIDHierarchy member.
|
protected |
These methods are called when signals are raised by the DtSharedAggregateDisplaySettingsSignaler that need to be passed down to the DtElementIDHierarchy member.
|
protected |
These methods are called when signals are raised by the DtSharedAggregateDisplaySettingsSignaler that need to be passed down to the DtElementIDHierarchy member.
|
protectedvirtual |
Will return either hidden or ghosted.
|
protectedvirtual |
Will process the parent for the new subordinate destroyed state (and any other parent that might be effected)
|
protectedvirtual |
Override to see if the destroyed state of an item that has children should be updated.
|
protectedvirtual |
|
staticprivate |
| boost::signalslib::signal<void(DtElementID, bool b) > makVrv::DtAggregateEchelonManager::signal_aggregateDestroyedStateChanged |
| boost::signalslib::signal<void(DtElementID, DtElementIDHierarchyNode::DisplayState) > makVrv::DtAggregateEchelonManager::signal_visibilityStateChanged |
Signal raised when the DtElementIDHierarchy member indicates a change in visibility for an element. This is typically caused by collapsing or expanding aggregates.
| boost::signalslib::signal<void(DtElementIDHierarchyNode*) > makVrv::DtAggregateEchelonManager::signal_hierarchyItemModified |
Signal raised when the the DtElementIDHierarchy member indicates a change in a specific heirarchy node.
| boost::signalslib::signal<void(DtElementID, const DtElementIDHierarchy::ElementIDs&) > makVrv::DtAggregateEchelonManager::signal_updateHierarchy |
Signal raised by updateHierarchy() when the aggregate hierarchy changes.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |