22 #include <boost/signals2.hpp>
24 #include <vlutil/vlPerformanceStats.h>
26 #include <QtCore/QPoint>
27 #include <QtCore/QObject>
30 #include <unordered_map>
31 #include <unordered_set>
39 class DtElementIDHierarchyNode;
44 class DtVrfHierarchyPage;
45 class DtObjectListViewItem;
46 class DtVrfGuiSimObjectManager;
47 class DtExpandCollapseButton;
81 virtual void slot_itemSelectionChanged();
82 virtual void slot_rightClickOnItem(QPoint global);
84 virtual void expandToLevel(
unsigned int i);
85 virtual void collapseToLevel(
unsigned int i);
94 virtual void deparent(
const QStringList&) = 0;
101 virtual void setShowObjectConsoleWarning(
bool b);
102 virtual bool showObjectConsoleWarningIcon()
const;
104 virtual void setTextFilter(
const QString&);
107 virtual void setShowCountsOnObjectList(
bool);
110 virtual void setShowEchelonIdColumn(
bool);
111 virtual bool showEchelonIdColumn()
const;
116 virtual void activate();
119 virtual int sortColumn()
const;
121 virtual int initialSortColumn()
const;
125 myDoubleClickAttachesAndCenters = b;
130 return myDoubleClickAttachesAndCenters;
133 virtual void setInitiallyExpand(
bool);
136 return myInitiallyExpand;
139 virtual void setGrayOutHiddenItems(
bool);
142 return myGrayOutHiddenItems;
146 virtual void setStaggerObjectDiscovery(
int);
149 return myStaggerObjectDiscovery;
163 const QString& beforeItem =
"",
bool keepUnderThisNodeIfTacticalGraphic =
false);
167 virtual bool removeOrganizedRootNode(
const QString&);
176 virtual void removeOrganizedParentNode(ParentNodeContext);
184 virtual bool showCountsOnObjectList()
const;
187 virtual bool canDisplayChildCounts()
const;
193 virtual void addToChildCount(
const QModelIndex&,
int,
int);
194 virtual void removeFromChildCount(
const QModelIndex&,
int,
int);
197 virtual void enableChildCount();
198 virtual void disableChildCount();
201 virtual bool handleStealthObjects()
const;
203 virtual void slot_gumballSettingsChanged(
bool b);
207 virtual void scenarioClosed();
214 virtual void slot_onTick();
230 virtual void filterItems();
232 virtual void stateViewUpdated();
234 virtual void resorted();
249 virtual void hookOrganizedParentToChildren();
253 virtual void forcesChanged();
271 virtual void deferredItemSelectionChanged();
274 virtual bool performOperationsImmediately()
const;
277 virtual void slot_externalSelectionChanged(
281 virtual void updateCollapseButtons();
284 virtual void createCollapseButton(
unsigned int);
290 virtual short supportsAttribute()
const = 0;
293 virtual void setupForceRootNodes();
296 virtual void checkPendingOperations();
302 virtual void slot_extendedApplicationOptionsChanged();
318 virtual void initialize();
320 virtual void resetVisuals();
322 virtual void resetIconColor(
DtRwColor,
const std::vector<makVrv::DtUniqueID>& ids);
330 virtual void cleanStaleOrganizedNodes();
364 bool myWaitForStateAddition =
false;
371 OrganizedRootNode() : selectionFilter(nullptr), stateData(nullptr), objectListViewItem(nullptr), keepUnderThisNodeIfTacticalGraphic(false) {};
373 std::unique_ptr<DtVrfSelectionFilter> selectionFilter;
402 std::map<makVrv::DtUniqueID, makVrv::DtSignalConnectionManager*>
myRateChanges;
411 int myLastPendingOperationsSize = 0;
412 int myStaggerObjectDiscovery = -1;
UUID is a unique ID wrapper class.
Definition: uuid.h:59
OrganizedParentNodes myOrganizedParentNodes
Definition: vrfHierarchyPageLogic.h:400
std::vector< std::shared_ptr< OrganizedRootNode > > OrganizationOrder
Definition: vrfHierarchyPageLogic.h:380
DtObjectListViewItem * objectListViewItem
Definition: vrfHierarchyPageLogic.h:375
OrganizedParentNode()
Definition: vrfHierarchyPageLogic.h:391
std::set< QTreeWidgetItem * > myUnitNodesForVisibilityCheck
Definition: vrfHierarchyPageLogic.h:353
class DtVrfSelectionFilter
Definition: vrfSelectionFilters.h:33
std::map< int, std::shared_ptr< OrganizedRootNode > > ForceRootNodes
Definition: vrfHierarchyPageLogic.h:386
int staggerObjectDiscovery() const
Definition: vrfHierarchyPageLogic.h:147
PendingOperationsMap myPendingOperations
Definition: vrfHierarchyPageLogic.h:358
std::shared_ptr< DtVrfSelectionFilter > parentFilter
Definition: vrfHierarchyPageLogic.h:394
bool myShowEchelonIdColumn
Definition: vrfHierarchyPageLogic.h:346
boost::signals2::scoped_connection myDeferredSelectionSignalConnection
Definition: vrfHierarchyPageLogic.h:360
std::map< makVrv::DtUniqueID, std::shared_ptr< OrganizedRootNode > > OrganizedRootNodes
Definition: vrfHierarchyPageLogic.h:383
int myDeferredSelectionCounter
Definition: vrfHierarchyPageLogic.h:410
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
bool myNeedsResort
Definition: vrfHierarchyPageLogic.h:350
OrganizationOrder myOrganizationOrder
Definition: vrfHierarchyPageLogic.h:381
std::map< makVrv::DtUniqueID, makVrv::DtSignalConnectionManager * > myRateChanges
Definition: vrfHierarchyPageLogic.h:402
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
Contains makVrv:DtSelectionManager class.
Definition: vrfHierarchyPageLogic.h:64
DtSimObjectReference stateView
Definition: vrfHierarchyPageLogic.h:376
bool myShowObjectConsoleWarningIcon
Definition: vrfHierarchyPageLogic.h:363
bool myFirstTick
Definition: vrfHierarchyPageLogic.h:347
Contains makVrv::DtElementData class.
ParentNodeContext
Definition: vrfHierarchyPageLogic.h:69
std::set< DtObjectListViewItem * > parentNodes
Definition: vrfHierarchyPageLogic.h:396
Definition: objectSettingsManager.h:50
DtVrfGuiSimObjectManager * myVrfStateViewCollectionManager
Definition: vrfHierarchyPageLogic.h:404
OrganizedRootNodes myOrganizedRootNodes
Definition: vrfHierarchyPageLogic.h:384
The DtElementIDHierarchyState class contains information about the element and its place in the eleme...
Definition: DtElementIDHierarchyState.h:20
bool myUseForceRootOrganization
Default is false. Before initialization set to true in order to use force root nodes for organization...
Definition: vrfHierarchyPageLogic.h:357
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
std::shared_ptr< DtGuiLocalObject > stateData
Definition: vrfHierarchyPageLogic.h:374
bool initiallyExpand() const
Definition: vrfHierarchyPageLogic.h:134
makVrv::DtDe & myDe
Definition: vrfHierarchyPageLogic.h:338
Definition: vrfHierarchyPageLogic.h:369
std::set< DtObjectListViewItem * > myItemsToCheckForFurtherOrgainization
Definition: vrfHierarchyPageLogic.h:343
makVrv::DtSignalConnectionManager myConnectionManager
Definition: vrfHierarchyPageLogic.h:359
Contains makVrf:DtSharedVrfVrlApplicationSettings class. This class will share settings between the d...
Reader-Writer color specified by red, green, blue components.
Definition: rwColor.h:19
boost::signals2::scoped_connection myRightClickSignalConnection
Definition: vrfHierarchyPageLogic.h:361
std::map< DtUUID, DtObjectListViewItem * > myItemsByUUID
Definition: vrfHierarchyPageLogic.h:367
DtVrfHierarchyPage * myInterface
Definition: vrfHierarchyPageLogic.h:339
Contains makVrv::DtElementIDHierarchy class. This is an arbitrary hierarchy class that will allow hie...
The DtVrfChildToParentSelectionFilter specialized filter that must be used as a child filter when org...
Definition: vrfHierarchyPageLogic.h:51
Definition: vrfHierarchyPage.h:111
std::map< DtUUID, bool > myExpandedNodes
Definition: vrfHierarchyPageLogic.h:366
std::vector< EntryAttributes > EntryAttributesList
Define the type used to signal changes to one or more attributes for one or more elements.
Definition: DtElementAttributeManager.h:44
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
The DtElementIDHierarchyNode class will contain information about an element, its children and its pa...
Definition: DtElementIDHierarchy.h:33
bool myHideForceLevelNodesWhenNoChildren
Definition: vrfHierarchyPageLogic.h:351
virtual void setForce(int) override
Definition: vrfHierarchyPageLogic.h:58
bool myUpdateCollapseButtons
Definition: vrfHierarchyPageLogic.h:345
EntityStates
Definition: sharedVrfVrlApplicationSettings.h:30
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
boost::signals2::connection myGrayIfHiddenConnection
Definition: vrfHierarchyPageLogic.h:341
virtual void setDoubleClickAttachesAndCenters(bool b)
Definition: vrfHierarchyPageLogic.h:123
Base class to provide boost signal/slot management.
std::set< QTreeWidgetItem * > myRootNodesForVisibilityCheck
Definition: vrfHierarchyPageLogic.h:352
The DtVrfGuiSimObjectManager class is a wrapper around the DtStateDataManager created in the network ...
Definition: vrfGuiSimObjectManager.h:36
std::vector< DtExpandCollapseButton * > myCollapseButtonVector
Definition: vrfHierarchyPageLogic.h:340
int myLastForceType
Definition: vrfHierarchyPageLogic.h:409
bool keepUnderThisNodeIfTacticalGraphic
Definition: vrfHierarchyPageLogic.h:377
std::vector< DtElementID > UniqueIdList
Public Type Definitions.
Definition: DtElementData.h:49
bool myGrayOutHiddenItems
Definition: vrfHierarchyPageLogic.h:408
DtHierarchyListItemMap myItems
Definition: vrfHierarchyPageLogic.h:342
Contains the DtElementAttributeManager class declaration.
std::map< ParentNodeContext, OrganizedParentNode > OrganizedParentNodes
Definition: vrfHierarchyPageLogic.h:399
ForceRootNodes myForceRootNodes
Definition: vrfHierarchyPageLogic.h:387
Definition: vrfHierarchyPageLogic.h:389
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
QString myTextFilter
Definition: vrfHierarchyPageLogic.h:406
boost::signals2::signal< void(makVrv::DtUniqueID)> signal_itemRemoved
Definition: vrfHierarchyPageLogic.h:190
std::unordered_map< makVrv::DtElementID, DtObjectListViewItem * > DtHierarchyListItemMap
Definition: vrfHierarchyPageLogic.h:335
std::shared_ptr< DtVrfSelectionFilter > childFilter
Definition: vrfHierarchyPageLogic.h:395
This tree widget item can be used in any tree that wants to display an icon next to the name of an ob...
Definition: objectListViewItem.h:45
bool myDoubleClickAttachesAndCenters
Definition: vrfHierarchyPageLogic.h:349
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
bool doubleClickAttachesAndCenters() const
Definition: vrfHierarchyPageLogic.h:128
std::unordered_map< makVrv::DtElementID, double > PendingOperationsMap
Definition: vrfHierarchyPageLogic.h:336
bool grayOutHiddenItems() const
Definition: vrfHierarchyPageLogic.h:140
bool myInitiallyExpand
Definition: vrfHierarchyPageLogic.h:348