VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMilStdSymbolDriver.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <exampleMilStdSymbology.h>
13 
14 #include <vrvCore/DtDriver.h>
16 
17 #include <matrix/vlVector.h>
18 
19 #include <string>
20 #include <vector>
21 
22 namespace makVrv
23 {
24 class DtAgentManager;
25 class DtWidgetLabelAgent;
26 class DtSceneObjectAgent;
27 class DtProjectedWidgetModelAgent;
28 } // namespace makVrv
29 
30 namespace DtExampleMilStd
31 {
32 class DtExampleMilStdManager;
33 
46 {
47 public:
51  virtual ~DtMilStdSymbolDriver();
52 
54  virtual const std::string& className() const override;
56  virtual bool onStart() override;
58  virtual bool onStop() override;
60  virtual bool onTick() override;
61 
64  void toggleGhostAlpha();
65 
68  void togglePlannedStatus();
69 
72  void toggleExerciseContext();
73 
76  void toggleApp6D();
77 
80  void addOverride();
81 
84  void removeOverride();
85 
87  struct SymbolDef
88  {
89  const char* myName = nullptr;
90  int myKind = 0;
91  int myDomain = 0;
92  int myCountry = 0;
93  int myCategory = 0;
94  int mySubcategory = 0;
95  int mySpecific = 0;
96  int myExtra = 0;
97  int myForceId = 0;
98  std::string myTypeString;
99  DtVector myWorldPos;
100  };
101 
102 private:
104  struct LiveSymbol
105  {
106  const SymbolDef* myDef = nullptr;
108  makVrv::DtSceneObjectAgent* mySceneObj = nullptr;
109  makVrv::DtProjectedWidgetModelAgent* myPwma = nullptr;
110  makVrv::DtWidgetLabelAgent* myLabel = nullptr;
111  std::string mySidc;
113  };
114 
116  void rebuildKey(LiveSymbol& s);
117 
119 
120  DtExampleMilStdManager* myMgr = nullptr;
121  std::vector<LiveSymbol> mySymbols;
122  bool myGhostActive = false;
123  bool myPlannedActive = false;
124  bool myExerciseActive = false;
125  bool myApp6DActive = false;
126 
127 };
128 } // namespace DtExampleMilStd
makVrv::DtSignalConnectionManager myConnections
Manages signal/slot lifetime connections.
Definition: DtMilStdSymbolDriver.h:118
Definition of one symbol in the demo gallery.
Definition: DtMilStdSymbolDriver.h:87
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
DtVector myWorldPos
Symbol position in Ground_DB II local coordinates.
Definition: DtMilStdSymbolDriver.h:99
Parameters that describe a MIL-STD symbol key.
Definition: DtMilStdManagerInterface.h:35
std::vector< LiveSymbol > mySymbols
All active symbol widget instances.
Definition: DtMilStdSymbolDriver.h:121
Export macro and initialization declarations for exampleMilStdSymbology.
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:31
Runtime state for one live symbol widget.
Definition: DtMilStdSymbolDriver.h:104
makVrv::DtElementID myElementId
Definition: DtMilStdSymbolDriver.h:107
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
#define DT_DLL_EXAMPLEMILSTD
Definition: exampleMilStdSymbology.h:19
std::string myTypeString
Cached type string generated from the DIS tuple (for override registry lookup).
Definition: DtMilStdSymbolDriver.h:98
Driver that creates and manages a gallery of 2525D/APP-6D symbols.
Definition: DtMilStdSymbolDriver.h:45
makVrv::DtMilStdKeyParams myParams
Definition: DtMilStdSymbolDriver.h:112
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
std::string mySidc
Definition: DtMilStdSymbolDriver.h:111
Custom MIL-STD manager that injects a tracing SIDC generator and a hostile-indicator SVG renderer via...
Definition: DtExampleMilStdManager.h:33
Contains makVrv::DtMilStdManagerInterface class.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)