![]() |
VR-Forces 4.3.1 Class Documentation
|
The class that will be used to keep track of echelon hierarchy. More...

Public Types | |
| enum | Flags { Destroyed = 0x80000000 } |
Public Member Functions | |
| virtual | ~DtAggregateEchelonManager () |
| virtual void | setRecord (const makArchives::DtAggregateSettingsRecord &) |
| Called when aggregate settings have changed, redo settings for appropriate observer mode. | |
| virtual void | setDestroyed (DtElementID id, bool) |
| Sets whether or not something is destroyed. | |
| bool | destroyed (DtElementID) const |
| void | removeElementPendingDestroyedState (DtElementID id) |
| Individual entities also add destroyed state info, which they need to remove when they are destroyed. | |
| const DtElementIDHierarchy & | hierarchy () const |
| Retrieves the hierarchy. | |
| DtElementIDHierarchy & | hierarchy () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtAggregateEchelonManager & | instance (DtConnection &sim) |
| Get the global instance. | |
| static void | registerInstance (DtConnection &sim, DtAggregateEchelonManager *) |
| Register the global instance. | |
Public Attributes | |
| boost::signal< void(DtElementID, bool b) > | signal_aggregateDestroyedStateChanged |
| boost::signal< void(DtElementIDHierarchyNode *) > | signal_hierarchyItemModified |
Protected Member Functions | |
| virtual void | hierarchyItemModified (DtElementIDHierarchyNode *) |
| Called when a hierarchy item is modified. Uses echelon signaler to emit signal that an item was modified. | |
| virtual void | hierarchyItemAboutToBeRemoved (DtElementIDHierarchyNode *) |
| Called when a hierarchy item is about to be removed. | |
| virtual DtElementIDHierarchyNode::DisplayState | expectedDisplayStateFor (const DtElementIDHierarchyNode *node) |
| Will return either hidden or ghosted. | |
| virtual void | updateDestroyedState (DtElementIDHierarchyNode *parentNode) |
| Will process the parent for the new subordinate destroyed state (and any other parent that might be effected) | |
| virtual void | updateHierarchy (DtElementID parentId, const DtElementIDHierarchy::ElementIDs &children) |
| Override to see if the destroyed state of an item that has children should be updated. | |
| DtAggregateEchelonManager () | |
Protected Attributes | |
| makArchives::DtAggregateSettingsRecord | myAggregateSettings |
| std::map< DtElementID, bool > | myPendingDestroyedStates |
| DtElementIDHierarchy | myHierarchy |
The class that will be used to keep track of echelon hierarchy.
|
virtual |
|
protected |
|
static |
Get the global instance.
|
static |
Register the global instance.
|
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 |
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.
|
inline |
Retrieves the hierarchy.
|
inline |
|
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.
| boost::signal<void (DtElementID, bool b) > makVrv::DtAggregateEchelonManager::signal_aggregateDestroyedStateChanged |
| boost::signal<void (DtElementIDHierarchyNode*) > makVrv::DtAggregateEchelonManager::signal_hierarchyItemModified |
|
protected |
|
protected |
|
protected |