VR-Forces 4.10 Class Documentation
 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) 2012 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 <boost/unordered_set.hpp>
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 boost::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.
Definition: DtSymbolFacade2.h:45
A Record of an IG instance.
Definition: DtDeRecord.h:24
Contains makVrv:DtSelectionManager class.
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
boost::unordered_map< makVrv::DtElementID, DtSymbolFacade * > SymbolFacadeMap
Type for mapping element ids to symbol facades.
Definition: DtExampleSymbolDriver2.h:109
Provides an interface for creating and managing symbol facades.
Definition: DtExampleSymbolDriver2.h:36
The DtDriver is an abstract class.
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.
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 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)