17 #include <tbb/spin_rw_mutex.h>
19 #include <unordered_map>
20 #include <unordered_set>
21 #include <boost/signals2.hpp>
25 class DtCoordinateSystem;
58 virtual DtStateDataWrapper* createSimObject(
const DtEntityIdentifier& entid)
const override;
87 return myLocalObjects;
92 virtual bool has(
const DtUUID&)
const;
93 virtual bool has(
unsigned long long)
const;
111 return mySimObjectsByUUID;
117 virtual void slot_tick();
131 virtual const std::set<makVrv::DtUniqueID>& dIGuyIds();
132 virtual const std::set<makVrv::DtUniqueID>& tacticalGraphicElements()
const;
135 virtual DtVector centerOfMass(
const std::set<DtUUID>& uuids,
bool ignoreEmbarked =
true)
const;
140 virtual bool clearing()
const;
144 virtual void signalWhenAllObjectsDiscovered(
const std::map<short, int>&);
146 typedef boost::signals2::signal<void (DtSimObjectReference, DtStateComponent::StateComponentType)>
StateComponentSignal;
155 : signal_stateComponentAdded(orig.signal_stateComponentAdded)
156 , signal_stateComponentRemoved(orig.signal_stateComponentRemoved)
157 , connections(orig.connections)
174 virtual void resizeContainer(
unsigned);
176 template <
typename T_Component>
179 resizeContainer(T_Component::ComponentType());
180 return *(myStateComponentSignals[T_Component::ComponentType()].signal_stateComponentAdded);
183 template <
typename T_Component>
186 resizeContainer(T_Component::ComponentType());
187 return *(myStateComponentSignals[T_Component::ComponentType()].signal_stateComponentRemoved);
192 boost::signals2::signal<void (const DtUUID&, const DtUUID&, DtSimObjectReference)>
signal_uuidChanged;
203 virtual int maxMarkingTextLengthFor(
const DtEntityType&)
const;
207 virtual int defaultMaxMarkingTextLengthFunction(
const DtEntityType&);
210 virtual void uniqueEntityTypes(
makVrv::DtUniqueID, std::vector<DtEntityType>& entityTypes);
215 return myStealthStates;
232 virtual void slot_uuidChanged(
const DtUUID& oldUUID,
const DtUUID& newUUID);
235 virtual void uniqueEntityTypes(
makVrv::DtUniqueID, std::vector<DtEntityType>& entityTypes, std::set<std::string>& typesChecked);
237 virtual void slot_gateUnlocked();
238 virtual void slot_gateLocked();
239 virtual void slot_modelSetLoaded();
243 virtual void setupComponentModifiedConnections();
244 virtual void slot_onCoordinateSystemChanged(
const std::string& coordinateSystem,
const std::string& coordinateParameters);
298 bool myClearing =
false;
std::set< DtSimObjectReference > myObjectsUpdated
Definition: vrfGuiSimObjectManager.h:267
UUID is a unique ID wrapper class.
Definition: uuid.h:59
makVrv::DtDe & myDe
Definition: vrfGuiSimObjectManager.h:260
std::map< int, std::set< DtSimObjectReference > > myComponentsUpdated
Definition: vrfGuiSimObjectManager.h:266
SimObjectsByUUID SimObjects
Definition: vrfGuiSimObjectManager.h:108
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DT_DLL_VRFGUICORE std::vector< DtUUID > convertMarkingTextVectorToUUIDVector(const std::vector< DtString > &v)
std::map< DtUUID, unsigned long long > IdsByUUID
Definition: vrfGuiSimObjectManager.h:290
Helper code for connectors. Does not exist in it's own project but is included by all projects that u...
Definition: vrfConnectionHelper.h:129
Definition: vrfGuiSimObjectManager.h:79
DT_DLL_VRFGUICORE std::vector< std::string > convertUUIDVectorToMarkingTextVector(const std::vector< DtUUID > &v)
Returns a vector of objectName() from UUID.
boost::signals2::signal< void(const DtUUID &, const DtUUID &, DtSimObjectReference)> signal_uuidChanged
Definition: vrfGuiSimObjectManager.h:192
boost::signals2::connection deleteConnection
Definition: vrfGuiSimObjectManager.h:82
StateComponent(const StateComponent &orig)
Definition: vrfGuiSimObjectManager.h:154
ComponentsAddedRemoved myComponentsRemoved
Definition: vrfGuiSimObjectManager.h:256
Contains makVrv:DtSelectionManager class.
Definition: vrfGuiSimObjectManager.h:147
std::set< makVrv::DtUniqueID > myStealthStates
Definition: vrfGuiSimObjectManager.h:258
const SimObjectsByUUID & simObjects() const
Definition: vrfGuiSimObjectManager.h:109
StateComponent()
Definition: vrfGuiSimObjectManager.h:149
SimObjectsByUUID mySimObjectsByUUID
Definition: vrfGuiSimObjectManager.h:288
std::unordered_set< makVrv::DtUniqueID > myIdsToCheckForDIGuy
Definition: vrfGuiSimObjectManager.h:272
DtMaxMarkingTextLengthFunction myMaxMarkingTextLengthFunction
Definition: vrfGuiSimObjectManager.h:273
std::map< short, int > myWaitingForDiscovery
Definition: vrfGuiSimObjectManager.h:274
ComponentsAddedRemoved myComponentsAdded
Definition: vrfGuiSimObjectManager.h:255
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
boost::signals2::connection myTickConnection
Definition: vrfGuiSimObjectManager.h:263
makVrv::DtDe & myDe
Definition: vrfGuiSimObjectManager.h:61
std::map< DtUUID, LocalObject > myLocalObjects
Definition: vrfGuiSimObjectManager.h:283
StateComponentSignal & signalWhenStateComponentRemoved()
Definition: vrfGuiSimObjectManager.h:184
makVrv::DtSignalConnectionManager myConnections
Definition: vrfGuiSimObjectManager.h:281
static const DtUUID & nullUUID()
tbb::spin_mutex myUpdatedMutex
Definition: vrfGuiSimObjectManager.h:265
Contains makVrv::DtVirtualBaseClass class.
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:513
boost::signals2::signal< void()> signal_cleared
Definition: vrfGuiSimObjectManager.h:198
std::set< makVrv::DtUniqueID > myTacticalGraphicElements
Definition: vrfGuiSimObjectManager.h:270
const SimObjects & simObjects() const
Definition: vrfGuiSimObjectManager.h:44
boost::signals2::signal< void(DtSimObjectReference)> signal_objectAdded
Definition: vrfGuiSimObjectManager.h:190
boost::signals2::signal< void()> signal_allObjectsDiscovered
If set up for it, a signal sent when the object counts map has had all the objects of all kind/domain...
Definition: vrfGuiSimObjectManager.h:197
std::vector< DtUniqueID > SceneObjectIdList
Public Type Definitions.
Definition: DtElementData.h:38
boost::signals2::scoped_connection myGateUnlockedConnection
Definition: vrfGuiSimObjectManager.h:277
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
This class is the central access point for all current-frame state of all objects in the simulation i...
Definition: simObjectManagerTemplate.h:38
DtSimObjectReference findStateView(makVrv::DtUniqueID id) const
Definition: vrfGuiSimObjectManager.h:74
std::set< DtSimObjectReference > myObjectsDeleted
Definition: vrfGuiSimObjectManager.h:268
std::unordered_map< DtUUID, DtSimObjectReference > SimObjectsByUUID
Definition: vrfGuiSimObjectManager.h:107
ElementType
Definition: DtElementEntry.h:26
StateComponent & operator=(const StateComponent &rhs)
Definition: vrfGuiSimObjectManager.h:160
StateComponentSignals myStateComponentSignals
Definition: vrfGuiSimObjectManager.h:286
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
boost::signals2::signal< void(const DtString &, const DtString &, DtSimObjectReference)> signal_objectRenamed
Definition: vrfGuiSimObjectManager.h:193
IdsByUUID myIdsByUUID
Definition: vrfGuiSimObjectManager.h:291
std::map< DtUUID, DtUUID > myUUIDChanged
Definition: vrfGuiSimObjectManager.h:293
Definition: guiLocalObject.h:18
std::map< unsigned long long, DtSimObjectReferenceTemplate< DtGuiSimObject >> SimObjects
Definition: simObjectManagerTemplate.h:96
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Definition: stateComponent.h:52
const std::set< makVrv::DtUniqueID > & stealthStates() const
Returns all the current stealth states. myEntityId is the site/app id of the stealth.
Definition: vrfGuiSimObjectManager.h:213
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: stateDataWrapper.h:49
std::map< DtUUID, std::set< int > > ComponentsAddedRemoved
Definition: vrfGuiSimObjectManager.h:253
StateComponentSignal & signalWhenStateComponentAdded()
Definition: vrfGuiSimObjectManager.h:177
Base class to provide boost signal/slot management.
The DtVrfGuiSimObjectManager class is a wrapper around the DtStateDataManager created in the network ...
Definition: vrfGuiSimObjectManager.h:36
const std::map< DtUUID, LocalObject > & localObjects() const
Definition: vrfGuiSimObjectManager.h:85
The DtGuiLocalObjectManager is the interface to be used when creating objects that are not to be publ...
Definition: guiLocalObjectManager.h:393
std::shared_ptr< StateComponentSignal > signal_stateComponentRemoved
Definition: vrfGuiSimObjectManager.h:171
std::set< makVrv::DtUniqueID > myDIGuyIds
Definition: vrfGuiSimObjectManager.h:271
std::vector< StateComponent > StateComponentSignals
Definition: vrfGuiSimObjectManager.h:285
Contains makVrv::DtUniqueID type.
std::shared_ptr< StateComponentSignal > signal_stateComponentAdded
Definition: vrfGuiSimObjectManager.h:170
boost::signals2::signal< void(DtSimObjectReference, DtStateComponent::StateComponentType)> StateComponentSignal
Definition: vrfGuiSimObjectManager.h:146
boost::signals2::signal< void(DtSimObjectReference)> signal_objectDeleted
Definition: vrfGuiSimObjectManager.h:191
boost::function< int(const DtEntityType &)> DtMaxMarkingTextLengthFunction
Definition: vrfGuiSimObjectManager.h:30
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
boost::signals2::scoped_connection myGateLockedConnection
Definition: vrfGuiSimObjectManager.h:276
DtModelSetId
Definition: DtModelSetEnums.h:19
tbb::spin_mutex myAdvanceFrameMutex
Definition: vrfGuiSimObjectManager.h:295
tbb::spin_rw_mutex myUUIDChangedMutex
Definition: vrfGuiSimObjectManager.h:294
std::shared_ptr< makVrv::DtSignalConnectionManager > connections
Definition: vrfGuiSimObjectManager.h:169
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
The GuiSimObjectManager will hold instances of DtGuiLocalObject.
Definition: vrfGuiSimObjectManager.h:40
DT_DLL_VRFGUICORE std::vector< std::string > convertUUIDVectorToUUIDStringVector(const std::vector< DtUUID > &v)
Returns a vector of uuidString.
makVrv::DtSignalConnectionManager myConnectionManager
Definition: vrfGuiSimObjectManager.h:264
DtEntityType myStealthType
Definition: vrfGuiSimObjectManager.h:259
DtSimObjectReference findStateView(const DtUUID &id) const
Definition: vrfGuiSimObjectManager.h:77
tbb::spin_rw_mutex myComponentMutex
Definition: vrfGuiSimObjectManager.h:252
This class holds the state data that represents each simulation object in the system.
Definition: stateDataManager.h:76