![]() |
VR-Forces 5.0.3 Developer's Guide
|
This class is the central access point for all current-frame state of all objects in the simulation in a read-only form. This includes all simulation objects for the sim engine, including locally simulated objects, and remote objects received from the network, both VRF simulated and non-VRF simulated. This gives access to the external state of all of these objects and their current-frame state in a manner that is thread-safe during the simulation frame.
Public Types | |
| typedef std::map< unsigned long long, DtSimObjectReference > | SimObjects |
| typedef std::set< const makVrf::DtFrameStateInterface * > | CurrentFrameStates |
| typedef boost::signals2::signal< void(makVrf::DtStateComponent *)> | StateComponentAddedSignal |
| typedef boost::signals2::signal< void(makVrf::DtStateComponent *)> | StateComponentRemovedSignal |
Static Public Member Functions | |
| static DtSimObjectManager * | creator (DtSimulationServices *) |
Public Attributes | |
| boost::signals2::signal< void()> | signal_advancedFrame |
| boost::signals2::signal< void(DtSimObjectReference)> | signal_simObjectAdded |
| boost::signals2::signal< void(DtSimObjectReference)> | signal_simObjectDeleted |
| boost::signals2::signal< void(const DtUUID &oldUUID, const DtUUID &newUUID)> | signal_uuidChanged |
| boost::signals2::signal< void(const DtUUID &oldUUID, const DtUUID &newUUID)> | signal_uuidUpgradedTo |
| boost::signals2::signal< void(const DtSimObject *, const DtString &oldText, const DtString &newText)> | signal_simObjectRenamed |
Protected Types | |
| typedef std::map< DtString, DtSimObjectReference > | AwaitingMap |
Protected Member Functions | |
| virtual void | simObjectDeleted (const DtSimObject *) |
| virtual DtSimObjectReference | getOrCreateSimObjectReference (makVrf::DtStateData *, bool createOnlyIfNotPresent=false) const |
| virtual void | uuidChanged (unsigned long long, const DtUUID &oldUUID, const DtUUID &newUUID) |
| virtual void | objectRenamed (const DtSimObject *, const DtString &oldName, const DtString &newName) |
| virtual void | simObjectAdded (makVrf::DtStateData *) |
| virtual void | discoveredObjectReference (const DtString &awaiting) |
| bool | isDeleted (const DtUUID &) const |
| virtual void | slot_uuidUpgradedTo (const DtUUID &oldUUID, const DtUUID &newUUID) |
Protected Attributes | |
| DtSimulationServices * | mySimulationServices |
| tbb::spin_rw_mutex | myMutex |
| boost::signals2::scoped_connection | myStateDataAddedConnection |
| boost::signals2::scoped_connection | myUUIDChangedConnection |
| boost::signals2::scoped_connection | myUUIDUpgradedConnection |
| SimObjects | mySimObjects |
| AwaitingMap | myAwaitingMap |
| SimObjects | myAdded |
| std::set< DtUUID > | myDeleted |
Private Member Functions | |
| DtSimObjectManager () | |
| DtSimObjectManager (const DtSimObjectManager &) | |
| DtSimObjectManager & | operator= (const DtSimObjectManager &) |
| typedef std::map<unsigned long long, DtSimObjectReference> DtSimObjectManager::SimObjects |
| typedef std::set<const makVrf::DtFrameStateInterface*> DtSimObjectManager::CurrentFrameStates |
| typedef boost::signals2::signal<void (makVrf::DtStateComponent*)> DtSimObjectManager::StateComponentAddedSignal |
| typedef boost::signals2::signal<void (makVrf::DtStateComponent*)> DtSimObjectManager::StateComponentRemovedSignal |
|
protected |
|
private |
|
private |
| DtSimObjectManager::DtSimObjectManager | ( | DtSimulationServices * | m | ) |
CTOR – Takes the state data manager so this can be made aware of the comings and goings of state data.
|
virtual |
DTOR.
|
private |
|
virtual |
Ticks this manager and performs any operations it needs to.
|
virtual |
Any initialization that wants to be done.
|
static |
Static creator that creates the state data manager.
|
inline |
|
virtual |
Send out an added signal for all objects added and advanced since the last frame began.
|
virtual |
Find a DtSimObject by DtUUID.
|
virtual |
Find a DtSimObject by DtEntityIdentifier.
|
virtual |
Returns the simObjectReference (if it exists) by the legionGlobalId.
| SimObjects DtSimObjectManager::simObjects | ( | ) | const |
|
virtual |
Returns a list of all objects embarked on the given object. These are objects that are only directly embarked – not objects that are embarked on objects embarked on.
|
virtual |
Clears sim objects and awaiting map.
|
virtual |
Returns true if there is a locally simulated entity or unit in this simulation.
Returns true if this manager has the UUID in the mySimObjects list.
| const CurrentFrameStates& DtSimObjectManager::stateComponents | ( | ) | const |
| StateComponentAddedSignal& DtSimObjectManager::signalWhenStateComponentAdded | ( | ) |
| StateComponentAddedSignal& DtSimObjectManager::signalWhenStateComponentRemoved | ( | ) |
|
virtual |
Given the global object designator, find all the entities that are tracking the given object by their emitter systems.
|
virtual |
Given the global object designator, find all the entities that are tracking the given object by their emitter systems.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
If createOnlyIfNotPresent is true, will create and return, but not add to the mySimObjects list.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
If this is in the list but is marked as deleted, returns true.
|
protectedvirtual |
Called, when as part of an import process, a UUID is upgraded from an old to a new version. Some items might need to know this to remap items that hap not yet been discovered.
|
inline |
Deprecated API added to allow for older code to compile.
|
inline |
Deprecated API added to allow for older code to compile.
|
inline |
Deprecated API added to allow for older code to compile.
| VRF4API_METHOD const DtDiGuyCharacterDataManager* DtSimObjectManager::diGuyCharacterManager | ( | ) | const |
Deprecated API added to allow for older code to compile.
|
mutable |
Signal sent when frame is advanced.
|
mutable |
Signal sent when a new DtSimObjectReference has been added.
|
mutable |
Signal sent when a new DtSimObjectReference has been deleted.
|
mutable |
Signal when UUID is changed. Called before the map is updated with the new uuid.
|
mutable |
Signal when a UUID is remapped. Called after awaiting list has been changed.
|
mutable |
Signal sent when an objects name has changed.
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |