|
VR-Engage
2.2
|
DtRemoteEntityConnector handles requests to change properties of remote entities, such as visibility state, engine sound effects, and character model visualization. It works with entity elements and visualizers to modify the presentation of entities in the simulation environment.
#include <remoteEntityConnector.h>
Public Member Functions | |
| DtRemoteEntityConnector () | |
| virtual | ~DtRemoteEntityConnector () override |
| virtual void | install (DtPlayerStationApp *app, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection *connection) override |
| virtual void | tick () override |
| virtual void | shutdown () override |
Public Member Functions inherited from makVre::DT_PROTOCOL_NAMESPACE::DtSimEventConnector | |
| DtSimEventConnector () | |
| virtual | ~DtSimEventConnector () override |
Public Member Functions inherited from makVre::DtConnector | |
| DtConnector () | |
| virtual | ~DtConnector () |
| virtual DtConnectorType | type () |
| virtual std::string | name () |
Protected Member Functions | |
| virtual makVre::DtVreMessageResult | handleEntityVisibility (makVre::DtVreMessage *msg) |
| virtual makVre::DtVreMessageResult | handleEntityEngineSound (makVre::DtVreMessage *msg) |
| virtual makVre::DtVreMessageResult | handleHideEntityOccupantsLocally (makVre::DtVreMessage *msg) |
| virtual void | handleElementCreated (makVrv::DtEntityElement *element) |
Protected Attributes | |
| boost::signals2::scoped_connection | myElementCreatedConnection |
Protected Attributes inherited from makVre::DT_PROTOCOL_NAMESPACE::DtSimEventConnector | |
| DtPlayerStationApp * | myApp |
| makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection * | myConnection |
Protected Attributes inherited from makVre::DtConnector | |
| std::string | myName |
| DtConnectorType | myType |
Additional Inherited Members | |
Public Types inherited from makVre::DtConnector | |
| enum | DtConnectorType { DIS , HLA13 , HLA1516 , HLA1516E , HLA4 } |
Static Public Member Functions inherited from makVre::DtConnector | |
| static std::string | extension (DtConnectorType type) |
| makVre::DtRemoteEntityConnector::DtRemoteEntityConnector | ( | ) |
Default constructor.
Initializes the connector with name "RemoteEntity"
|
overridevirtual |
Virtual destructor.
|
overridevirtual |
Installs the remote entity connector with the application and connection.
| app | Pointer to the player station application |
| connection | Pointer to the protocol-specific VR-Link connection |
Registers message handlers for entity visibility, occupant visibility, and engine sounds, and connects to the element created signal to handle entity visualization issues
Reimplemented from makVre::DT_PROTOCOL_NAMESPACE::DtSimEventConnector.
|
overridevirtual |
Performs periodic processing (currently does nothing)
Reimplemented from makVre::DT_PROTOCOL_NAMESPACE::DtSimEventConnector.
|
overridevirtual |
Shuts down the remote entity connector.
Removes all message handlers and disconnects from the element created signal
Reimplemented from makVre::DT_PROTOCOL_NAMESPACE::DtSimEventConnector.
|
protectedvirtual |
Handles requests to change entity visibility.
| msg | Pointer to the entity visibility message |
Processes SetEntityVisiblityMessage by finding the entity element and modifying its character model agent's visibility
|
protectedvirtual |
Handles requests to enable/disable entity engine sounds.
| msg | Pointer to the entity engine sound message |
Processes SetEntityEngineSoundEnabledMessage by finding the entity element and modifying its audio visualizer's engine sound state
|
protectedvirtual |
Handles requests to hide entity occupants locally.
| msg | Pointer to the hide occupants message |
Processes SetHideEntityOccupantsLocallyMessage by finding the entity and setting its occupants visibility state
|
protectedvirtual |
Handles entity element creation events.
| element | Pointer to the newly created entity element |
Called when a new entity element is created, ensures proper visualization for elements that are initially not visible
|
protected |
Connection to the element created signal.
Used to receive notifications when new entity elements are created