![]() |
VR-Forces 4.0.4 Class Documentation
|
The base class for protocol specific VRLink Simulations. More...

Public Member Functions | |
| DtConnection (DtAgentManagerInterface &aSceneInterface, const DtCoordinateSystem &coordSystem, const DtEntityAppearanceMapperFactoryCreator &appFactoryCreator, DtSharedSettingsManager &settingsManager) | |
| CTOR. | |
| virtual | ~DtConnection () |
| DTOR. | |
| const DtEntityAppearanceMapper * | findAppearanceMapper (const DtEntityType &type) |
| Attempt to get an appearance mapper from an entity type. | |
| virtual void | coordinateSystemChanged (const std::string &coordinateName, const std::string &coordinateOrigin) |
| const DtCoordinateSystem & | coordinateSystem () const |
| Get the coordinate system. | |
| const DtDisplayUnitsConverter & | displayUnitConverter () const |
| Get the display unit converter. | |
| virtual bool | connect ()=0 |
| Function that creates the exercise conn and reflected lists. | |
| virtual bool | connected () const |
| Check to see if the simulation is connected. | |
| virtual bool | disconnect ()=0 |
| Function that destroys the exercise conn and reflected lists. | |
| virtual void | tick ()=0 |
| Function to be called repeatedly by a thread. | |
| virtual void | setViewControlChanged (bool enabled)=0 |
| Set that the view controls have changed. | |
| virtual void | observerUpdated (const std::string &observerName, double x, double y, double z, double psi, double theta, double phi)=0 |
| handle observer position and orientation changes | |
| virtual void | observerUpdated (const std::string &observerName, double x, double y, double z, double psi, double theta, double phi, double dx, double dy, double dz, double dpsi, double dtheta, double dphi)=0 |
| handle observer poistion and orientation changes including rotational and linear velocities | |
| virtual void | stopPublishingObserver (const std::string &observerName)=0 |
| Start publishing an observer. | |
| virtual void | startPublishingObserver (const std::string &observerName)=0 |
| Stop publishing an observer. | |
| virtual void | attachObserverObject (const std::string &observerName, DtUniqueID id)=0 |
| Handle attachment of a published observer to an object. | |
| virtual void | detachObjects (const std::string &observerName)=0 |
| Handle detachment of a published observer. | |
| void | entityIndicatorMouseDown (DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| Called when an entity is selected/deselected by the sim via its indicator. | |
| void | entityIndicatorMouseUp (DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| void | entityIndicatorMouseDblClick (DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| void | tacticalGraphicIndicatorMouseDown (DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| Called when an tactical graphic is selected/deselected by the sim via its indicator. | |
| void | tacticalGraphicIndicatorMouseUp (DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| void | tacticalGraphicIndicatorMouseDblClick (DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| void | setAppNumber (int appNumber) |
| Set the application number (for HLA connections only, DIS should use the initializer) | |
| void | setSiteId (int siteId) |
| Set the site ID (useful for HLA connections only, DIS connections should use the initializer) | |
Public Attributes | |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)> | signal_entityIndicatorMouseDown |
| Emitted when an entity indicator is clicked. | |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)> | signal_entityIndicatorMouseUp |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)> | signal_entityIndicatorMouseDblClick |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)> | signal_tacticalGraphicIndicatorMouseDown |
| Emitted when an tactical graphic indicator is clicked. | |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)> | signal_tacticalGraphicIndicatorMouseUp |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)> | signal_tacticalGraphicIndicatorMouseDblClick |
| boost::signal< void(DtViewStateProcessor::ObserverAction &)> | signal_viewChanged |
| Emitted when a view control change is received. | |
| boost::signal< void()> | signal_coordinateSystemChanged |
| Emitted when the coordinate system changed. | |
| boost::signal< void()> | signal_connected |
| Emitted when the connection finished connecting. | |
| boost::signal< void()> | signal_toBeDisconnected |
| Emitted when the connection will be disconnecting. | |
Protected Types | |
| typedef boost::unordered_map < std::string, DtEntityAppearanceMapper * > | AppearanceMapperMap |
Protected Attributes | |
| DtCoordinateSystem * | myCoordinateSystem |
| DtDisplayUnitsConverter * | myCoordinateConverter |
| AppearanceMapperMap | myAppearanceMapperMap |
| Map of appearance mappers shared by entities of the same type. | |
| DtEntityAppearanceMapperFactory * | myMapperFactory |
| Factory responsible for creating Appearance Mappers. | |
| int | myAppNumber |
| int | mySiteId |
The base class for protocol specific VRLink Simulations.
typedef boost::unordered_map<std::string,DtEntityAppearanceMapper*> makVrv::DtConnection::AppearanceMapperMap [protected] |
| makVrv::DtConnection::DtConnection | ( | DtAgentManagerInterface & | aSceneInterface, |
| const DtCoordinateSystem & | coordSystem, | ||
| const DtEntityAppearanceMapperFactoryCreator & | appFactoryCreator, | ||
| DtSharedSettingsManager & | settingsManager | ||
| ) |
CTOR.
| virtual makVrv::DtConnection::~DtConnection | ( | ) | [virtual] |
DTOR.
| const DtEntityAppearanceMapper* makVrv::DtConnection::findAppearanceMapper | ( | const DtEntityType & | type | ) |
Attempt to get an appearance mapper from an entity type.
| virtual void makVrv::DtConnection::coordinateSystemChanged | ( | const std::string & | coordinateName, |
| const std::string & | coordinateOrigin | ||
| ) | [virtual] |
| const DtCoordinateSystem& makVrv::DtConnection::coordinateSystem | ( | ) | const |
Get the coordinate system.
Referenced by makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfVrlinkCircleVisualizer< T >::setPosition().
| const DtDisplayUnitsConverter& makVrv::DtConnection::displayUnitConverter | ( | ) | const |
Get the display unit converter.
| virtual bool makVrv::DtConnection::connect | ( | ) | [pure virtual] |
Function that creates the exercise conn and reflected lists.
| true | success |
| false | failure |
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual bool makVrv::DtConnection::connected | ( | ) | const [virtual] |
Check to see if the simulation is connected.
Base version always returns false.
Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual bool makVrv::DtConnection::disconnect | ( | ) | [pure virtual] |
Function that destroys the exercise conn and reflected lists.
| true | success |
| false | failure |
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual void makVrv::DtConnection::tick | ( | ) | [pure virtual] |
Function to be called repeatedly by a thread.
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual void makVrv::DtConnection::setViewControlChanged | ( | bool | enabled | ) | [pure virtual] |
Set that the view controls have changed.
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual void makVrv::DtConnection::observerUpdated | ( | const std::string & | observerName, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | psi, | ||
| double | theta, | ||
| double | phi | ||
| ) | [pure virtual] |
handle observer position and orientation changes
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual void makVrv::DtConnection::observerUpdated | ( | const std::string & | observerName, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | psi, | ||
| double | theta, | ||
| double | phi, | ||
| double | dx, | ||
| double | dy, | ||
| double | dz, | ||
| double | dpsi, | ||
| double | dtheta, | ||
| double | dphi | ||
| ) | [pure virtual] |
handle observer poistion and orientation changes including rotational and linear velocities
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual void makVrv::DtConnection::stopPublishingObserver | ( | const std::string & | observerName | ) | [pure virtual] |
Start publishing an observer.
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual void makVrv::DtConnection::startPublishingObserver | ( | const std::string & | observerName | ) | [pure virtual] |
Stop publishing an observer.
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual void makVrv::DtConnection::attachObserverObject | ( | const std::string & | observerName, |
| DtUniqueID | id | ||
| ) | [pure virtual] |
Handle attachment of a published observer to an object.
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| virtual void makVrv::DtConnection::detachObjects | ( | const std::string & | observerName | ) | [pure virtual] |
Handle detachment of a published observer.
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| void makVrv::DtConnection::entityIndicatorMouseDown | ( | DtMouseState & | mouseState, |
| const DtUniqueID & | id, | ||
| const std::string & | displayEngineName, | ||
| const std::string & | windowName, | ||
| const std::string & | channelName | ||
| ) |
Called when an entity is selected/deselected by the sim via its indicator.
| void makVrv::DtConnection::entityIndicatorMouseUp | ( | DtMouseState & | mouseState, |
| const DtUniqueID & | id, | ||
| const std::string & | displayEngineName, | ||
| const std::string & | windowName, | ||
| const std::string & | channelName | ||
| ) |
| void makVrv::DtConnection::entityIndicatorMouseDblClick | ( | DtMouseState & | mouseState, |
| const DtUniqueID & | id, | ||
| const std::string & | displayEngineName, | ||
| const std::string & | windowName, | ||
| const std::string & | channelName | ||
| ) |
| void makVrv::DtConnection::tacticalGraphicIndicatorMouseDown | ( | DtMouseState & | mouseState, |
| const DtUniqueID & | id, | ||
| const std::string & | displayEngineName, | ||
| const std::string & | windowName, | ||
| const std::string & | channelName | ||
| ) |
Called when an tactical graphic is selected/deselected by the sim via its indicator.
| void makVrv::DtConnection::tacticalGraphicIndicatorMouseUp | ( | DtMouseState & | mouseState, |
| const DtUniqueID & | id, | ||
| const std::string & | displayEngineName, | ||
| const std::string & | windowName, | ||
| const std::string & | channelName | ||
| ) |
| void makVrv::DtConnection::tacticalGraphicIndicatorMouseDblClick | ( | DtMouseState & | mouseState, |
| const DtUniqueID & | id, | ||
| const std::string & | displayEngineName, | ||
| const std::string & | windowName, | ||
| const std::string & | channelName | ||
| ) |
| void makVrv::DtConnection::setAppNumber | ( | int | appNumber | ) |
Set the application number (for HLA connections only, DIS should use the initializer)
| void makVrv::DtConnection::setSiteId | ( | int | siteId | ) |
Set the site ID (useful for HLA connections only, DIS connections should use the initializer)
| boost::signal<void (DtMouseState&, const DtUniqueID&, const std::string& displayEngineName, const std::string& windowName, const std::string& channelName)> makVrv::DtConnection::signal_entityIndicatorMouseDown |
Emitted when an entity indicator is clicked.
| boost::signal<void (DtMouseState&, const DtUniqueID&, const std::string& displayEngineName, const std::string& windowName, const std::string& channelName)> makVrv::DtConnection::signal_entityIndicatorMouseUp |
| boost::signal<void (DtMouseState&, const DtUniqueID&, const std::string& displayEngineName, const std::string& windowName, const std::string& channelName)> makVrv::DtConnection::signal_entityIndicatorMouseDblClick |
| boost::signal<void (DtMouseState&, const DtUniqueID&, const std::string& displayEngineName, const std::string& windowName, const std::string& channelName)> makVrv::DtConnection::signal_tacticalGraphicIndicatorMouseDown |
Emitted when an tactical graphic indicator is clicked.
| boost::signal<void (DtMouseState&, const DtUniqueID&, const std::string& displayEngineName, const std::string& windowName, const std::string& channelName)> makVrv::DtConnection::signal_tacticalGraphicIndicatorMouseUp |
| boost::signal<void (DtMouseState&, const DtUniqueID&, const std::string& displayEngineName, const std::string& windowName, const std::string& channelName)> makVrv::DtConnection::signal_tacticalGraphicIndicatorMouseDblClick |
| boost::signal<void (DtViewStateProcessor::ObserverAction&)> makVrv::DtConnection::signal_viewChanged |
Emitted when a view control change is received.
| boost::signal<void ()> makVrv::DtConnection::signal_coordinateSystemChanged |
Emitted when the coordinate system changed.
| boost::signal<void ()> makVrv::DtConnection::signal_connected |
Emitted when the connection finished connecting.
| boost::signal<void ()> makVrv::DtConnection::signal_toBeDisconnected |
Emitted when the connection will be disconnecting.
Map of appearance mappers shared by entities of the same type.
Factory responsible for creating Appearance Mappers.
int makVrv::DtConnection::myAppNumber [protected] |
int makVrv::DtConnection::mySiteId [protected] |