VR-Forces 4.8 Class Documentation
 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) 2019 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtDriver.h>
14 
15 #include <boost/unordered_map.hpp>
16 
17 #include <matrix/vlTaitBryan.h>
18 #include <matrix/vlVector.h>
19 
20 namespace makVrv
21 {
22  class DtEntityFacade;
23 }
24 
28 {
29 public:
30 
33 
35  virtual ~DtExampleCommLinesDriver();
36 
39 
42  virtual const std::string& className() const;
43 
46  virtual bool onStart();
47 
50  virtual bool onStop();
51 
54  virtual bool onTick();
55 
58  virtual void slot_displayEngineAdded( const makVrv::DtDeRecord& igRecord );
59 
61 
62 protected:
63 
67  const makVrv::DtModelSetRealizationManager::ModelSetRealizations& modelSets, bool distribute );
68 
70  virtual void updatePosition();
71 
73  virtual void updateCommLines( int modelSet );
74 
76  virtual void repositionAircraft( DtVector position, DtTaitBryan ori );
77 
78 protected:
79 
80  typedef boost::unordered_map<int,makVrv::DtUniqueID> SceneObjectIdsByModelSet;
82 
84 
87 
90  double myClockAngle;
91  double myRadius;
92  double myRoll;
93 
94 };
double myClockAngle
Definition: DtExampleCommLinesDriver.h:90
Contains makVrv::DtModelSetRealizationManager class.
double myRoll
Definition: DtExampleCommLinesDriver.h:92
double myAngularVelocity
Definition: DtExampleCommLinesDriver.h:85
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.
virtual bool onStop()
Performs shutdown logic for the driver.
SceneObjectIdsByModelSet mySceneObjectIds
Definition: DtExampleCommLinesDriver.h:81
A Record of an IG instance.
Definition: DtDeRecord.h:24
double myLastUpdateTime
Definition: DtExampleCommLinesDriver.h:89
virtual ~DtExampleCommLinesDriver()
Virtual DTOR.
virtual const std::string & className() const
Returns the driver&#39;s class name.
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
virtual bool onStart()
Performs startup logic for the driver.
The DtEntityFacade is a facade around agents that make up an entity.
Definition: DtEntityFacade.h:35
double myRadius
Definition: DtExampleCommLinesDriver.h:91
The DtDriver is an abstract class.
Definition: DtDriver.h:34
virtual void updateCommLines(int modelSet)
Instantiates comm lines if they have timed out.
makVrv::DtEntityFacade * myEntityFacade
Definition: DtExampleCommLinesDriver.h:83
virtual bool onTick()
Performs update logic for the driver.
The DtAgentManager manages the distributed scene object framework.
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
double myLastCommLineTime
Definition: DtExampleCommLinesDriver.h:88
This driver demonstrates drawing communication lines.
Definition: DtExampleCommLinesDriver.h:27
DtVector myOrbitCenter
Definition: DtExampleCommLinesDriver.h:86
boost::unordered_map< int, makVrv::DtUniqueID > SceneObjectIdsByModelSet
Definition: DtExampleCommLinesDriver.h:80
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:44

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)