23 #include <matrix/vlVector.h>
24 #include <vlutil/vlPerformanceStats.h>
27 #include <CigiVersionID.h>
29 class CigiBaseViewCtrl;
37 class DtCigiConnectionInitializer;
38 class DtCigiNetworkIO;
39 class DtAgentManagerInterface;
40 class DtCigiEntityVisualizer;
41 class DtCoordinateSystem;
42 class DtSharedSettingsManager;
43 class DtVirtualBaseClass;
44 class DtCigiIgControlProcessor;
45 class DtHatHotResponder;
47 class DtSensorResponder;
48 class DtCigiLosBasicResponse;
49 class DtCigiLosExtendedResponse;
75 virtual bool tick(
double elapsedTime );
78 virtual bool connect();
81 virtual bool disconnect();
89 virtual void restart();
98 virtual void sendCigiMessages();
101 virtual void setCoordinateSystem(
const std::string& name,
102 const std::string& params);
129 virtual void setLastHostFrameNumber(
unsigned int frameNumber);
132 virtual unsigned int lastHostFrameNumber()
const;
137 return myUseSynchronousMode;
141 virtual void setIgMode(DtIgMode
mode);
150 virtual void setDatabaseNumber(
int number);
153 virtual int databaseNumber()
const;
157 virtual void setLoadingDatabase();
161 virtual void setDatabaseLoaded();
164 virtual void setExtrapolationEnabled(
bool enabled);
167 virtual bool extrapolationEnabled()
const;
170 virtual void setTimestampValid(
bool valid);
173 virtual bool timestampValid()
const;
176 virtual void setLastTimestamp(
unsigned int timestamp);
179 virtual unsigned int lastTimestamp()
const;
200 virtual void sendUserPacket( CigiBasePacket* packet );
233 virtual unsigned int currentIgFrame()
const;
239 virtual CigiIGSession& session();
242 virtual const CigiIGSession& session()
const;
246 bool cigiSessionExists()
const;
249 virtual bool registerUserPacket(CigiBasePacket *packet,
250 unsigned int packetId,
bool hostSend,
bool igSend);
253 virtual bool useThreadFlag()
const;
256 virtual void queueDriverFunction(boost::function<
void ()> func);
261 virtual void queueConnectionFunction(boost::function<
void ()> func);
275 virtual void startOverloadTimer();
278 virtual void stopOverloadTimer();
281 virtual bool overloaded();
285 virtual void setWarnOnOverload(
bool b );
288 virtual bool warnOnOverload()
const;
293 virtual void setDropMessagesOnOverload(
bool b );
296 virtual bool dropMessagesOnOverload()
const;
300 virtual double hostFrequency()
const;
304 boost::signal<void (DtViewStateProcessor::ObserverAction&)>
311 boost::signal<void (int, DtCigiViewController::DtViewDefinitionAction) >
315 boost::signal<void (int, DtCigiViewController::DtViewControlAction)>
348 virtual void setCigiVersion(CigiVersionID& cigiVersion);
351 virtual const CigiVersionID getCigiVersion()
const;
357 virtual const bool connectionObjectId()
const;
361 virtual void getConnectionObjectIDFromString(
unsigned int& connectionID, std::string connectionObjectIDString);
370 virtual void on_viewControlReceived( CigiBaseViewCtrl& viewControl);
boost::signal< void()> signal_coordinateSystemChanged
Emitted when the coordinate system changed.
Definition: DtCigiConnection.h:335
DtCigiDriver & myCigiDriver
Definition: DtCigiConnection.h:375
This class initializes the CIGI driver.
Definition: DtCigiConnectionInitializer.h:18
Virtual base class.
Definition: DtVirtualBaseClass.h:22
DtCoordinateSystem * myCoordinateSystem
Definition: DtCigiConnection.h:387
boost::signal< void()> signal_connected
Emitted when the connection finished connecting.
Definition: DtCigiConnection.h:329
This class is responsible for processing various CIGI messages that pertain to CIGI entities and sett...
Definition: DtCigiEntityVisualizer.h:69
A DtHatHotResponder receives HAT/HOT requests from CIGI and either initiates an immediate request or ...
Definition: DtHatHotResponder.h:35
double myHostFrequency
Definition: DtCigiConnection.h:391
bool myDropMessagesOnOverload
Definition: DtCigiConnection.h:406
bool myDatabaseLoading
Definition: DtCigiConnection.h:398
DtIgMode myMode
Definition: DtCigiConnection.h:396
unsigned int myLastHostFrameNumber
Definition: DtCigiConnection.h:394
This class is responsible for processing CIGI messages that 'control' settings in the IG...
Definition: DtCigiIgControlProcessor.h:41
boost::signal< void()> signal_toBeDisconnected
Emitted when the connection will be disconnecting.
Definition: DtCigiConnection.h:332
Contains makVrv::DtComponentSignaler class.
DtLosResponder * myLosResponder
Definition: DtCigiConnection.h:382
A DtComponentSignaler holds various signals that can be caught by the DtCigiDriver so that it can cha...
Definition: DtComponentSignaler.h:23
The shared settings manager, is the global object responsible for managing any shared settings object...
Definition: DtSharedSettingsManager.h:45
unsigned int myLastTimestamp
Definition: DtCigiConnection.h:401
Struct for HatHotResponseData.
Definition: DtHatHotResponder.h:70
CigiVersionID myCigiVersion
Definition: DtCigiConnection.h:408
boost::signal< void(int, DtUniqueID)> signal_alphaChanged
Emitted when an entity's alpha has changed.
Definition: DtCigiConnection.h:308
A DtCigiIntersectionHandler processes CIGI LOS Requests and packages the results into instances of th...
Definition: DtCigiLosExtendedResponse.h:29
Struct for all Position response data In degrees.
Definition: DtPositionResponder.h:99
This class holds the CIGI settings used by the DtCigiConnection object.
Definition: DtCigiConnSettingsHandler.h:31
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:37
int myDatabaseNumber
Definition: DtCigiConnection.h:397
boost::signal< void(int, DtCigiViewController::DtViewControlAction)> signal_receivedViewControl
Emitted when a CIGI View Control is received.
Definition: DtCigiConnection.h:316
Contains makVrv::DtCollisionResponder & creator class.
DtIgMode
Definition: DtCigiConnection.h:59
boost::signal< void(const std::string &)> signal_loadDatabase
Emitted when the host tells the IG to load a database.
Definition: DtCigiConnection.h:326
bool myUseSynchronousMode
Definition: DtCigiConnection.h:390
Contains makVrv::DtVirtualBaseClass class.
boost::signal< void()> signal_postTick
Signal emitted at the end of the tick function.
Definition: DtCigiConnection.h:344
A DtPositionResponder processes CIGI Position request messages This class catches signals from the Dt...
Definition: DtPositionResponder.h:48
bool myExtrapolationEnabled
Definition: DtCigiConnection.h:399
DtSensorResponder * mySensorResponder
Definition: DtCigiConnection.h:385
DtPositionResponder * myPositionResponder
Definition: DtCigiConnection.h:383
bool useSynchronousMode() const
Get whether the connection is using synchronous communications.
Definition: DtCigiConnection.h:135
The DtDriver for CIGI.
Definition: DtCigiDriver.h:44
Struct for Collision Response Data.
Definition: DtCollisionResponder.h:76
DtCigiEntityVisualizer * myEntityManager
Definition: DtCigiConnection.h:377
Contains makVrv::DtCigiViewController class.
Creator class for the DtCigiConnection.
Definition: DtCigiConnection.h:413
double myFrameTimeSoFar
Definition: DtCigiConnection.h:404
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
Contains makVrv::DtHatHotResponder class.
DtCigiConnSettingsHandler mySettingsHandler
Definition: DtCigiConnection.h:389
boost::signal< void(DtViewStateProcessor::ObserverAction &)> signal_viewChanged
Emitted when a view control change is received.
Definition: DtCigiConnection.h:305
DtComponentSignaler myComponentSignaler
Definition: DtCigiConnection.h:388
DtCigiConnectionInitializer myInitializer
Definition: DtCigiConnection.h:378
boost::signal< void()> signal_preTick
Signal emitted at the beginning of the tick function.
Definition: DtCigiConnection.h:341
A DtCigiIntersectionHandler processes CIGI LOS Requests and packages the results into instances of th...
Definition: DtCigiLosBasicResponse.h:27
This class is responsible for the actual processing of CIGI data.
Definition: DtCigiConnection.h:56
boost::signal< void(int, int, int, int, int)> signal_timeSet
Emitted when the time is set via CIGI Celestial Sphere Control message.
Definition: DtCigiConnection.h:319
This class catches Sesnor Control signals from the Cigi Signal handler, and processes them into V3 an...
Definition: DtSensorResponder.h:46
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
This class handles the processing of Collision Segment Defintion packets It catches signals from DtCi...
Definition: DtCollisionResponder.h:54
DtIgMode igMode() const
Gets the IG mode.
Definition: DtCigiConnection.h:144
Contains makVrv:DtBaseConnection class.
bool myWarnOnOverload
Definition: DtCigiConnection.h:405
boost::signal< void(bool)> signal_ephemerisEnableSet
Emitted when the ephemeris model is enabled / disabled via CIGI Celestial Sphere Control message...
Definition: DtCigiConnection.h:323
Contains the declaration for makVrv::DtCigiConnSettingsHandler.
DtCigiNetworkIO * myNetworkIO
Definition: DtCigiConnection.h:376
unsigned int myIgFrame
Definition: DtCigiConnection.h:393
Contains makVrv::DtPositionResponderclass.
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
const char int mode
Definition: ioapi.h:38
DtCigiIgControlProcessor * myIgController
Definition: DtCigiConnection.h:379
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:36
A DtLosResponder processes CIGI LOS Segment Request and LOS Vector Request messages, and either immediately signals the DtCigiIntersectionHandler of a request or adds a periodic request to its queue.
Definition: DtLosResponder.h:41
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::map< std::string, DtVirtualBaseClass * > InstanceMap
Definition: DtCigiConnection.h:373
bool myTimestampValid
Definition: DtCigiConnection.h:400
#define DT_DLL_VRVCIGI
Definition: vrvCigi.h:19
Record of miscellaneous CIGI settings.
Definition: DtCigiSettingsRecord.h:26
boost::signal< void(int, DtCigiViewController::DtViewDefinitionAction) > signal_receivedViewDefinition
Emitted when a CIGI View definition is received.
Definition: DtCigiConnection.h:312
boost::signal< void(bool)> signal_deadReckoningAllowedChanged
Emitted when CIGI extrapolation is enabled.
Definition: DtCigiConnection.h:338
DtTimedSection myOverloadTimer
Definition: DtCigiConnection.h:403
This class performs all of the network I/O for CIGI messages.
Definition: DtCigiNetworkIO.h:71
DtSignalConnectionManager mySignals
Definition: DtCigiConnection.h:395
DtHatHotResponder * myHatHotResponder
Definition: DtCigiConnection.h:381
DtCollisionResponder * myCollisionResponder
Definition: DtCigiConnection.h:384