16 #include <boost/unordered_map.hpp>
17 #include <boost/unordered_set.hpp>
21 class DtElementChanges;
23 class DtElementAttribute;
26 class DtElementAttributeManager;
82 void findAll(
const std::vector<DtElementEntry::ElementType>& types,
87 void findAll(
ElementList& outVector,
bool sort =
true);
92 virtual void addElementID(
const DtElementID& elementID,
93 const DtUniqueID& sceneObjectID,
int modelSet );
98 virtual void addElementID(
const DtElementID& elementID,
103 virtual void removeElementID(
const DtElementID& elementID,
104 const DtUniqueID& sceneObjectID,
int modelSet );
108 virtual void removeElementID(
const DtElementID& elementID,
114 virtual void getSceneObjectIds(
const DtElementID& elementID,
174 virtual void slot_preTick();
178 typedef boost::unordered_map<int, ElementToSceneObjectMap>
180 typedef boost::unordered_map<DtUniqueID, DtElementID>
std::vector< DtUniqueID > SceneObjectIdList
Public Type Definitions.
Definition: DtElementData.h:38
ElementToSceneObjectMap myElementToSceneObjectMap
Definition: DtElementData.h:187
std::vector< DtElementID > ElementIdList
Type definition for a vector of DtElementIDs. DtElementIDs ARE DtUniqueIDs, but not all DtUniqueIDs a...
Definition: DtElementData.h:54
ElementEntryMap myElements
Definition: DtElementData.h:184
The element data is all the information about all elements in the scene.
Definition: DtElementData.h:30
DtElementEntry holds the non-simulation-specific data about an element, including its element type an...
Definition: DtElementEntry.h:22
boost::unordered_set< DtElementID > myElementsAddedLastFrame
Definition: DtElementData.h:197
DtElementChanges is used to communicate changes in element data between drivers and the main applicat...
Definition: DtElementChanges.h:25
Contains vrvCore::DtObserverMode class.
The element attribute manager is used to provide access to element attribute data. It includes maps between the display name attribute and element id to make it easier to find an element by name. However, note that these maps only valid if display names are unique (and that is not the case internally for the VRF GUI). The DtElementData class creates and owns this manager using the.
Definition: DtElementAttributeManager.h:37
boost::signalslib::signal< void(const ElementIdList &) > signal_elementsInitialized
When the signal_elementsAdded signal is raised, none of the element attributes (like displayName...
Definition: DtElementData.h:151
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
boost::unordered_map< DtUniqueID, DtElementID > SceneObjectToElementMap
Definition: DtElementData.h:181
boost::signalslib::signal< void(const ElementList &) > signal_elementsAdded
Signal that elements have been added.
Definition: DtElementData.h:141
ElementType
Definition: DtElementEntry.h:26
DtElementAttributeManager * myElementAttributeManager
Definition: DtElementData.h:199
boost::signalslib::signal< void(const ElementIdList &) > signal_elementsToBeRemoved
Signal elements to be removed.
Definition: DtElementData.h:154
ModelSetToElementSceneObjectMap myModelSetToElementSceneObjectMap
Definition: DtElementData.h:190
std::vector< DtElementEntry * > ElementList
Type definition for a vector of DtElementEntry pointers.
Definition: DtElementData.h:47
boost::unordered_map< DtElementID, DtElementEntry * > ElementEntryMap
Type definition for an unordered map of element ids to DtElementEntry pointers.
Definition: DtElementData.h:41
DtDe & myDe
Definition: DtElementData.h:183
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:42
std::vector< DtElementID > UniqueIdList
Public Type Definitions.
Definition: DtElementData.h:49
Contains makVrv::DtElementAttributes class.
boost::signalslib::signal< void(const ElementIdList &) > signal_sceneObjectsAdded
Signal a list of elements that have had scene objects added. This can be used in place of signal_elem...
Definition: DtElementData.h:159
boost::unordered_map< DtElementID, SceneObjectIdList > ElementToSceneObjectMap
Type definition for an unordered map of element ids to SceneObjectIdList.
Definition: DtElementData.h:44
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:70
boost::unordered_map< int, ElementToSceneObjectMap > ModelSetToElementSceneObjectMap
Definition: DtElementData.h:179
Definition: DtObserverMode.h:35
SceneObjectToElementMap mySceneObjectToElementMap
Definition: DtElementData.h:193
Contains makVrv::DtElementEntry class.