![]() |
VR-Forces Developer's Guide
|
The DtVrfGuiSimObjectManager class is a wrapper around the DtStateDataManager created in the network thread. Access to all data supplied from this class is thread safe.

Classes | |
| class | GuiSimObjectManager |
| struct | StateComponent |
Public Types | |
| typedef std::unordered_map < DtUUID, DtSimObjectReference > | SimObjectsByUUID |
| using | SimObjects = SimObjectsByUUID |
| typedef boost::signals2::signal< void(DtSimObjectReference, DtStateComponent::StateComponentType)> | StateComponentSignal |
Static Public Member Functions | |
| static DtVrfGuiSimObjectManager & | instance (makVrv::DtDe &) |
Public Attributes | |
| boost::signals2::signal< void(DtSimObjectReference)> | signal_objectAdded |
| boost::signals2::signal< void(DtSimObjectReference)> | signal_objectDeleted |
| boost::signals2::signal< void(const DtUUID &, const DtUUID &, DtSimObjectReference)> | signal_uuidChanged |
| boost::signals2::signal< void(const DtString &, const DtString &, DtSimObjectReference)> | signal_objectRenamed |
| boost::signals2::signal< void()> | signal_allObjectsDiscovered |
| boost::signals2::signal< void()> | signal_cleared |
Protected Types | |
| typedef std::map< DtUUID, std::set< int > > | ComponentsAddedRemoved |
| typedef std::vector < StateComponent > | StateComponentSignals |
| typedef std::unordered_map < DtUUID, unsigned long long > | IdsByUUID |
Friends | |
| class | DtGuiLocalObjectManager |
| class | DtVrfConnectionHelper |
| typedef std::unordered_map<DtUUID, DtSimObjectReference> makVrf::DtVrfGuiSimObjectManager::SimObjectsByUUID |
| typedef boost::signals2::signal<void (DtSimObjectReference, DtStateComponent::StateComponentType)> makVrf::DtVrfGuiSimObjectManager::StateComponentSignal |
|
protected |
|
protected |
|
protected |
| makVrf::DtVrfGuiSimObjectManager::DtVrfGuiSimObjectManager | ( | makVrv::DtDe & | ) |
|
overridevirtual |
|
static |
[vrfGuiSimObjectManager instanceDefinition]
Referenced by makVrf::DtSetStatePropertyDialog::setupProperties().
|
virtual |
[vrfGuiSimObjectManager instanceDefinition]
Convenience method to return the world position of the given object.
Referenced by makVrf::DtSetStatePropertyDialog::setupProperties().
|
inline |
|
virtual |
|
inline |
|
inline |
Returns true if there is a sim object reference with this UUID Returns true if this manager has the UUID in the mySimObjects list.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
|
virtual |
Same as DtElementAttributeUtilityFunctions::uuidForObject(myDe, id);.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns the name of the object given the specified id.
|
virtual |
Returns the type of the element.
|
virtual |
IDs of main elements (parent ids, not scene ids) whose 3D model set contains a DIGuy visualizer. Note that any new objects created since this list was requested will be inspected, so, calls to this (depending on how long it was since the last call) could take a few moments to return.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns true if the manager is in the process of clearing out objects due to model set reload.
|
virtual |
Signal when all the kind/domain objects (of the key) are discovered. Will look at existing objects before waiting for new.
|
virtual |
|
inline |
|
inline |
|
virtual |
Returns the max marking text length for the entity type given the assigned max marking text length boost function. Reassign the function only if you know that changes you have made to the standard will support larger name lengths. Entities are capped at 11 (one byte for NULL bit), aggregates at 31 and tactical graphics at 255. by default.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Given the unique id, add unique entity types to the given vector that either are this item or subordinates of this item.
|
inline |
Returns all the current stealth states. myEntityId is the site/app id of the stealth.
|
protectedvirtual |
Creates a new state data and adds does not add it to the state data manager. The state data will be destroyed when the unique ptr that holds the state data goes out of scope.
|
protectedvirtual |
Creates data that will be part of the state data manager and, when the frame is advanced, be available as a read only sim object reference. Even though this data is created in the gui thread, it is updated in the network thread, so, changes made to the local gui data might not be available on the next tick.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
friend |
|
friend |
This should never be set outside of the DtVrfConnectionHelper. This class is just used as a way to share the manager.
| boost::signals2::signal<void (DtSimObjectReference)> makVrf::DtVrfGuiSimObjectManager::signal_objectAdded |
| boost::signals2::signal<void (DtSimObjectReference)> makVrf::DtVrfGuiSimObjectManager::signal_objectDeleted |
| boost::signals2::signal<void (const DtUUID&, const DtUUID&, DtSimObjectReference)> makVrf::DtVrfGuiSimObjectManager::signal_uuidChanged |
| boost::signals2::signal<void (const DtString&, const DtString&, DtSimObjectReference)> makVrf::DtVrfGuiSimObjectManager::signal_objectRenamed |
| boost::signals2::signal<void ()> makVrf::DtVrfGuiSimObjectManager::signal_allObjectsDiscovered |
If set up for it, a signal sent when the object counts map has had all the objects of all kind/domain pairs discovered.
| boost::signals2::signal<void ()> makVrf::DtVrfGuiSimObjectManager::signal_cleared |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
This will keep track of data created only on the GUI side.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |