VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleCommLinesDriver.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2022 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtDriver.h>
14 
16 
17 #include <boost/unordered_map.hpp>
18 
19 #include <matrix/vlTaitBryan.h>
20 #include <matrix/vlVector.h>
21 
22 namespace makVrv
23 {
24  class DtEntityFacade;
25  class DtCoordinateSystem;
26 }
27 
31 {
32 public:
33 
36 
38  virtual ~DtExampleCommLinesDriver();
39 
42 
45  virtual const std::string& className() const;
46 
49  virtual bool onStart();
50 
53  virtual bool onStop();
54 
57  virtual bool onTick();
58 
61  virtual void slot_displayEngineAdded( const makVrv::DtDeRecord& igRecord );
62 
64 
65 protected:
66 
70  const makVrv::DtModelSetRealizationManager::ModelSetRealizations& modelSets, bool distribute );
71 
73  virtual void updatePosition();
74 
76  virtual void updateCommLines( int modelSet );
77 
79  virtual void repositionAircraft( DtVector position, DtTaitBryan ori );
80 
82  virtual void slot_coordinateSystemChanged();
83 
84 protected:
85 
86  typedef boost::unordered_map<int,makVrv::DtUniqueID> SceneObjectIdsByModelSet;
88 
90 
93 
96  double myClockAngle;
97  double myRadius;
98  double myRoll;
99 
101 
105 };
double myClockAngle
Definition: DtExampleCommLinesDriver.h:96
Contains makVrv::DtModelSetRealizationManager class.
double myRoll
Definition: DtExampleCommLinesDriver.h:98
double myAngularVelocity
Definition: DtExampleCommLinesDriver.h:91
virtual void repositionAircraft(DtVector position, DtTaitBryan ori)
Positions the aircraft at the given coordinates.
makVrv::DtEntityFacade * createEntityFacade(makVrv::DtAgentManager &am, makVrv::DtElementID elementId, const makVrv::DtModelSetRealizationManager::ModelSetRealizations &modelSets, bool distribute)
Creates an entity facade for an F-18. Properly initializes the individual 3d/2d/Colorized facades...
virtual bool onStop()
Performs shutdown logic for the driver.
SceneObjectIdsByModelSet mySceneObjectIds
Definition: DtExampleCommLinesDriver.h:87
A Record of an IG instance.
Definition: DtDeRecord.h:24
double myLastUpdateTime
Definition: DtExampleCommLinesDriver.h:95
makVrv::DtCoordinateSystem * myCoordinateSystem
local clone of the system wide coordinate system. for thread safety.
Definition: DtExampleCommLinesDriver.h:104
virtual ~DtExampleCommLinesDriver()
Virtual DTOR.
virtual const std::string & className() const
Returns the driver&#39;s class name.
virtual bool onStart()
Performs startup logic for the driver.
virtual void slot_coordinateSystemChanged()
slot for when the coordinate system changes
The DtEntityFacade is a facade around agents that make up an entity. This entity facade represents a ...
Definition: DtEntityFacade.h:35
double myRadius
Definition: DtExampleCommLinesDriver.h:97
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:31
virtual void updateCommLines(int modelSet)
Instantiates comm lines if they have timed out.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
makVrv::DtEntityFacade * myEntityFacade
Definition: DtExampleCommLinesDriver.h:89
virtual bool onTick()
Performs update logic for the driver.
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:41
double myLastCommLineTime
Definition: DtExampleCommLinesDriver.h:94
Base class to provide boost signal/slot management.
makVrv::DtSignalConnectionManager myConnections
Definition: DtExampleCommLinesDriver.h:100
This driver demonstrates drawing communication lines.
Definition: DtExampleCommLinesDriver.h:30
DtVector myOrbitCenter
Definition: DtExampleCommLinesDriver.h:92
boost::unordered_map< int, makVrv::DtUniqueID > SceneObjectIdsByModelSet
Definition: DtExampleCommLinesDriver.h:86
DtExampleCommLinesDriver(makVrv::DtAgentManager &am)
CTOR.
virtual void updatePosition()
Updates the current position / orientation of the entity.
virtual void slot_displayEngineAdded(const makVrv::DtDeRecord &igRecord)
Ensures the driver is properly restarted when a De is connected.
std::map< int, bool > ModelSetRealizations
Definition: DtModelSetRealizationManager.h:41

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)