![]() |
VR-Forces Developer's Guide
|
The base class for protocol specific VRLink Simulations.

Public Attributes | |
| boost::signalslib::signal < void(DtViewStateProcessor::ObserverAction &)> | signal_viewChanged |
| boost::signalslib::signal< void()> | signal_connected |
| boost::signalslib::signal< void()> | signal_toBeDisconnected |
Public Attributes inherited from makVrv::DtBaseConnection | |
| vrvSignalsLib::signal< void()> | signal_coordinateSystemChanged |
| boost::signalslib::signal< void()> | signal_preConnectionTick |
| boost::signalslib::signal< void()> | signal_postConnectionTick |
Protected Member Functions | |
| virtual void | slot_dateChanged (int year, DtDeTimeManager::Month month, int day) |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseConnection | |
| using | InstanceMap = std::unordered_map< std::string, DtVirtualBaseClass * > |
| makVrv::DtVrlinkBaseConnection::DtVrlinkBaseConnection | ( | DtAgentManagerInterface & | aSceneInterface, |
| const DtCoordinateSystem & | coordSystem, | ||
| const DtEntityAppearanceMapperFactoryCreator & | appFactoryCreator, | ||
| DtSharedSettingsManager & | settingsManager | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
delete |
not allowed - equals operator
| const DtEntityAppearanceMapper* makVrv::DtVrlinkBaseConnection::findAppearanceMapper | ( | const DtEntityType & | type | ) |
Attempt to get an appearance mapper from an entity type.
| const DtEntityAppearanceMapperFactory& makVrv::DtVrlinkBaseConnection::appearanceMapperFactory | ( | ) | const |
|
virtual |
When the VR-Link driver creates this connection it provides a clone of it's DtWorldMagneticModel, which is then taken over by the connection (the connection will delete it in it's destructor. We do it this way (instead of creating our own magnetic model because the cloned model from the DtDe will be current as far as any date changes, and the connection does not have direct access to the DtDeTimeManager for initialization.
|
virtual |
Get this connection's DtWorldMagneticModel instance. Note that this may return null if the world magnetic model has not been set.
|
virtual |
|
virtual |
get the display units converter for this connection
|
virtual |
Create a DtDisplayUnitsConverter, using the connection's DtWorldMagneticModel copy.
|
pure virtual |
Function that creates the exercise conn and reflected lists.
| true | success |
| false | failure |
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
virtual |
Check to see if the simulation is connected. Base version always returns false.
Reimplemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Function that destroys the exercise conn and reflected lists.
| true | success |
| false | failure |
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Function to be called repeatedly by a thread.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Get the current simulation time from the connection's vrlink exercise connection.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Set the current simulation time to the connection's vrlink exercise connection.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Get the current clock time (absRealTime()) from the connection's vrlink exercise connection.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Get the timestamp type in use (Relative or Absolute) by the connection's vrlink exercise connection.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
virtual |
Inform the connection that we are paused (sets the myIsPausedFlag to true)
|
virtual |
Inform the connection that we should resume (sets the myIsPausedFlag to false)
|
virtual |
Check to see if the connection is paused.
|
pure virtual |
Set that the view controls have changed.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Set the connection frame time. This is 1/frequency for the connection tick. Default is 1/60.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Get the connection frame time. This is 1/frequency for the connection tick. Default is 1/60.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
We used to use a topo system to convert flat earth vectors. Now we find the point at the end of the vector, convert start and end points, and subtract for a more accurate result. However, when receiving data from a sim using the old method (including older versions of VR-Forces and DI-Guy) user's may want to revert to the old scheme.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
handle observer position and orientation changes
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
handle observer poistion and orientation changes including rotational and linear velocities
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Start publishing an observer.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
|
pure virtual |
Stop publishing an observer.
Implemented in makVrv::DtLegionConnection, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| void makVrv::DtVrlinkBaseConnection::setAppNumber | ( | int | appNumber | ) |
Set the application number (for HLA connections only, DIS should use the initializer)
| void makVrv::DtVrlinkBaseConnection::setSiteId | ( | int | siteId | ) |
Set the site ID (useful for HLA connections only, DIS connections should use the initializer)
|
virtual |
Access flag to check if we are disconnecting. A signal is raised when the connection is being disconnected, which many objects listen to. However, sometimes one object needs to know that it should ignore something it's being asked to do, even if it hasn't received the signal yet (because the asker has). One example of this is the deletion of entities causing hidden aggregates to show themselves when they become childless. We really don't want that behavior if the reason it becomes childless is that we are shutting down. So when it's last child is deleted, it can check this flag and decide not to show itself in this circumstance.
|
protectedvirtual |
Listen for (event) signals from the DtDeTimeManagerSignal so we can keep our DtWorldMagneticModel copy up-to-date.
| boost::signalslib::signal<void (DtViewStateProcessor::ObserverAction&)> makVrv::DtVrlinkBaseConnection::signal_viewChanged |
Emitted when a view control change is received.
| boost::signalslib::signal<void ()> makVrv::DtVrlinkBaseConnection::signal_connected |
Emitted when the connection finished connecting.
| boost::signalslib::signal<void ()> makVrv::DtVrlinkBaseConnection::signal_toBeDisconnected |
Emitted when the connection will be disconnecting.
|
protected |
Factory responsible for creating Appearance Mappers.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |