VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtItemsListLogic.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2026 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 
14 #include <vrvCore/DtElementData.h>
15 #include <vrvCore/DtElementEntry.h>
19 
21 
22 namespace makVrv
23 {
24  class DtColorValue;
25  class DtDe;
26  class DtItemsListInterface;
27 
32  {
33  public:
34 
35  friend class DtItemsListLogicCreator;
36 
38  virtual ~DtItemsListLogic();
39 
42 
44  virtual void setEventObjectType(const std::string& objectType);
45 
47  virtual std::string eventObjectType() const;
48 
49  protected:
50 
52  virtual void connectSignals();
53 
55  virtual void connectPostInitSignals();
56 
58  virtual void slot_milSymbolStandardChanged(DtSymbologyStandard standard);
59 
62  virtual void slot_colorSymbolByForceChanged(bool enabled);
63 
65  virtual void slot_symbolOutlineColorOverrideChanged(bool enabled, const DtColorValue& outline, const DtColorValue& highlight);
66 
68  virtual int findIndexForSubTypeTopLevelItem(const DtElementAttributes::ElementSubtypes& subType);
69 
71  virtual int findIndexForTypeTopLevelItem(const DtElementEntry::ElementType& type);
72 
74  virtual void addElement(const DtElementEntry& element);
75 
77  virtual bool passElementTypeTest(const DtElementEntry& data) = 0;
78 
80  virtual std::string elementTypeToString(const DtElementEntry::ElementType& type) const;
81 
83  virtual std::string elementSubTypeToString(const DtElementAttributes::ElementSubtypes& subType) const;
84 
86  virtual std::string iconForElementType(const DtElementEntry::ElementType& type) const;
87 
89  virtual std::string iconForElementSubType(const DtElementAttributes::ElementSubtypes& subType) const;
90 
92  virtual void slot_elementsInitialized(const DtElementData::ElementIdList& elements);
93 
95  virtual void slot_elementsRemoved(const DtElementData::ElementIdList& elements);
96 
98  virtual void slot_attributesChanged(const DtElementAttributeManager::EntryAttributesList& list);
99 
101  virtual void slot_itemAttachRequested(DtElementID id);
102 
104  virtual void slot__itemSelectionChanged(const std::vector<DtElementID>& idList);
105 
107  virtual void slot_selectManagerSelectionChanged(const DtSelectionManager::IdSet& selected,
108  const DtSelectionManager::IdSet& deselected);
109 
115  virtual void getColorForSubtypeForce(const DtElementAttributes::ElementSubtypes& subType, double& r, double& g, double& a) const;
116 
120  virtual void onDisplayNameChanged(DtElementEntry* entry, const std::string& newName);
121 
125  virtual void onSubtypeChanged(DtElementEntry* entry, int subType);
126 
129  virtual void onIconRequiredUpdate(DtElementEntry* entry);
130 
131  public:
132 
135  DtItemsListLogic() = delete;
136  DtItemsListLogic(const DtItemsListLogic& orig) = delete;
137  DtItemsListLogic(const DtItemsListLogic&& orig) = delete;
138  DtItemsListLogic& operator=(const DtItemsListLogic& orig) = delete;
139  DtItemsListLogic& operator=(const DtItemsListLogic&& orig) = delete;
141 
142  protected:
146  std::string myEventObjectType;
147  boost::signalslib::connection myPostInitializeConnection;
148  };
149 
150 }
std::vector< DtElementID > ElementIdList
Type definition for a vector of DtElementIDs. DtElementIDs ARE DtUniqueIDs, but not all DtUniqueIDs a...
Definition: DtElementData.h:54
Contains makVrv:DtSelectionManager class.
Contains makVrv::DtElementData class.
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
DtItemsListInterface & myInterface
Definition: DtItemsListLogic.h:144
Contains DLL export macros.
DtElementEntry holds the non-simulation-specific data about an element, including its element type an...
Definition: DtElementEntry.h:22
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
boost::signalslib::connection myPostInitializeConnection
Definition: DtItemsListLogic.h:147
ElementSubtypes
Definition: DtElementAttributes.h:59
DtDe & myDe
Definition: DtItemsListLogic.h:143
Contains various enum classes relating to symbology.
Interface for display the objects, terrains, observers in the scene in a list. Used by DtObjectsListW...
Definition: DtItemsListInterface.h:25
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
ElementType
Definition: DtElementEntry.h:26
DtSymbologyStandard
Military symbology standard.
Definition: DtSymbologyEnums.h:18
Base class to provide boost signal/slot management.
Contains the DtElementAttributeManager class declaration.
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
Logic class for display the objects, terrains, observers in the scene in a list. Used by DtObjectsLis...
Definition: DtItemsListLogic.h:31
std::string myEventObjectType
Definition: DtItemsListLogic.h:146
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
Template for Color values in [0,1] range.
Definition: DtColorValue.h:24
Contains makVrv::DtElementEntry class.
DtSignalConnectionManager mySignals
Definition: DtItemsListLogic.h:145

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)