VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleSymbolDriver2.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <exampleSymbolFacade2.h>
13 
14 #include <vrvCore/DtDriver.h>
15 
17 
18 #include <unordered_set>
19 
20 #include <matrix/vlVector.h>
21 
22 namespace makVrv
23 {
24 
25  namespace exampleSymbolFacade2
26  {
27 
28  class DtSymbolFacade;
29 
37  : public makVrv::DtDriver
38  {
39  public:
40 
43 
45  virtual ~DtExampleSymbolDriver();
46 
47 
50 
53  virtual const std::string& className() const;
54 
57  virtual bool onStart();
58 
61  virtual bool onStop();
62 
65  virtual bool onTick();
66 
68 
69 
72 
76  virtual DtSymbolFacade* createSymbol( const std::string& name,
77  const DtVector& pos );
78 
82  virtual DtSymbolFacade* findSymbol( makVrv::DtElementID id );
83 
85 
86  protected:
87 
91  virtual void positionSymbol( DtSymbolFacade* symbol, const DtVector& pos );
92 
96  virtual void slot_currentSelectionChanged(
97  const makVrv::DtSelectionManager::IdSet& selected,
98  const makVrv::DtSelectionManager::IdSet& deselected,
101 
104  virtual void slot_displayEngineAdded( const makVrv::DtDeRecord& igRecord );
105 
106  protected:
107 
109  typedef std::unordered_map<makVrv::DtElementID,DtSymbolFacade*> SymbolFacadeMap;
110 
113 
114  };
115 
116  }
117 }
Export macro and initialization declarations for exampleSymbolFacade2.
Encapsulates the creation/management of agents used to display a symbol. The Facade design pattern pr...
Definition: DtSymbolFacade2.h:45
A Record of an IG instance.
Definition: DtDeRecord.h:24
Contains makVrv:DtSelectionManager class.
std::unordered_map< makVrv::DtElementID, DtSymbolFacade * > SymbolFacadeMap
Type for mapping element ids to symbol facades.
Definition: DtExampleSymbolDriver2.h:109
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
Provides an interface for creating and managing symbol facades. Loads the Makland terrain and creates...
Definition: DtExampleSymbolDriver2.h:36
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:31
#define DT_DLL_EXAMPLESYMBOLFACADE2
Definition: exampleSymbolFacade2.h:20
SymbolFacadeMap mySymbolFacades
Map of symbol facades created by the driver (indexed by element id).
Definition: DtExampleSymbolDriver2.h:112
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
SelectionType
The nature of the current selection.
Definition: DtSelectionManager.h:42
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)