VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGimbalDriver.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2024 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtDriver.h>
13 
15 
16 #include <string>
17 
18 
19 namespace makVrv
20 {
21  class DtGeoReference;
22  class DtSceneObjectAgent;
23  class DtSceneObject;
24 }
25 
26 class DtGeodeticCoord;
28 
39 {
40 public:
41 
44 
46  DtGimbalDriver() = delete;
47 
48 
50  virtual ~DtGimbalDriver();
51 
54 
57  virtual const std::string& className() const;
58 
59  protected:
65  virtual bool onStart();
66 
70  virtual bool onStop();
71 
83  virtual bool onTick();
84 
89  virtual void attachObserverToEntity(const std::string& observerName, const std::string& entityName );
90 
94  virtual void slot_displayEngineAdded( const makVrv::DtDeRecord& igRecord );
96 
101  virtual bool initialize();
102 
106  virtual void slot_coordinateSystemChanged();
107 
108 protected:
111  makVrv::DtSceneObjectAgent* myGimbalSceneObjectAgent;
115  DtGeodeticCoord* myTargetLocation;
117 
119 };
makVrv::DtSignalConnectionManager mySignalConnections
Definition: DtGimbalDriver.h:114
makVrv::DtSceneObject * myPlaneSceneObject
Definition: DtGimbalDriver.h:112
The DtGeoReference class provides a mechanism to convert between geodetic coordinates and topocentric...
Definition: DtGeoReference.h:28
A Record of an IG instance.
Definition: DtDeRecord.h:24
DtGimbalDriver()=delete
Unimplemented CTOR to prevent auto-creation.
DtGimbalSensorOverlay is a wrapper around the two primary classes used to create a DtSensorViewOverla...
Definition: DtGimbalSensorOverlay.h:33
virtual void slot_displayEngineAdded(const makVrv::DtDeRecord &igRecord)
Ensures the driver is properly restarted when a de is connected (such as a remote display engine)...
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
virtual bool onStart()
Performs startup logic for the driver. In this case, this method is a no-op (but must be implemented ...
makVrv::DtElementID myGimbalId
Definition: DtGimbalDriver.h:113
virtual void attachObserverToEntity(const std::string &observerName, const std::string &entityName)
Tells the named observer to attach to the named entity. This method uses an observer state record...
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:30
virtual const std::string & className() const
Returns the driver&#39;s class name.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
virtual ~DtGimbalDriver()
Virtual DTOR.
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
virtual bool initialize()
initialize() looks for the plane created by DtExampleDriver (or DtExampleDriverPlugin). When found, it creates a Gimbal element that can be (logically) attached to the plane. It also creates the DtGeoReferences to use for topocentric operations to correctly place the Gimbal element and put the target into Gimbal coordinates.
DtGimbalSensorOverlay * myGimbalSensorOverlay
Definition: DtGimbalDriver.h:118
Base class to provide boost signal/slot management.
DtGeodeticCoord * myTargetLocation
Definition: DtGimbalDriver.h:115
DtGimbalDriver looks for the plane element created by DtExampleDriver (or DtDriverExamplePlugin) and ...
Definition: DtGimbalDriver.h:38
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:44
makVrv::DtSceneObjectAgent * myGimbalSceneObjectAgent
Definition: DtGimbalDriver.h:111
makVrv::DtGeoReference * myPlaneGeoRef
Definition: DtGimbalDriver.h:109
makVrv::DtGeoReference * myGimbalGeoRef
Definition: DtGimbalDriver.h:110
virtual bool onStop()
Performs shutdown logic for the driver. Deletes the Gimbal Element and GeoReference objects...
virtual void slot_coordinateSystemChanged()
We use this to set up our target location. This is mostly for future use when we support alternate da...
virtual bool onTick()
Performs update logic for the driver. If myGimbalSceneObjectAgent hasn&#39;t been initialized yet...
makVrv::DtElementID myPlaneElementId
Definition: DtGimbalDriver.h:116

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)