VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleSymbolDriver3.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 <exampleSymbolFacade3.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 exampleSymbolFacade3
26  {
27 
28  class DtSymbolFacade;
29 
40  : public makVrv::DtDriver
41  {
42  public:
43 
44  typedef boost::unordered_set<DtSymbolFacade*> SymbolList;
45 
46  public:
47 
50 
52  virtual ~DtExampleSymbolDriver();
53 
54 
57 
60  virtual const std::string& className() const;
61 
64  virtual bool onStart();
65 
68  virtual bool onStop();
69 
72  virtual bool onTick();
73 
75 
76 
79 
83  virtual DtSymbolFacade* createSymbol( const std::string& name,
84  const DtVector& pos );
85 
89  virtual DtSymbolFacade* findSymbol( makVrv::DtElementID id );
90 
93  virtual SymbolList selectedSymbols() const;
94 
96 
97  protected:
98 
102  virtual void positionSymbol( DtSymbolFacade* symbol, const DtVector& pos );
103 
107  virtual void slot_currentSelectionChanged(
108  const makVrv::DtSelectionManager::IdSet& selected,
109  const makVrv::DtSelectionManager::IdSet& deselected,
112 
115  virtual void slot_displayEngineAdded( const makVrv::DtDeRecord& igRecord );
116 
117  protected:
118 
120  typedef boost::unordered_map<makVrv::DtElementID,DtSymbolFacade*> SymbolFacadeMap;
121 
124 
127 
128  };
129 
130  }
131 }
Provides an interface for creating and managing symbol facades.
Definition: DtExampleSymbolDriver3.h:39
Export macro and initialization declarations for exampleSymbolFacade3.
A Record of an IG instance.
Definition: DtDeRecord.h:24
Contains makVrv:DtSelectionManager class.
Encapsulates the creation/management of agents used to display a symbol.
Definition: DtSymbolFacade3.h:43
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
SymbolList myCurrentlySelectedSymbols
A list of all symbols that are currently selected.
Definition: DtExampleSymbolDriver3.h:126
boost::unordered_map< makVrv::DtElementID, DtSymbolFacade * > SymbolFacadeMap
Type for mapping element ids to symbol facades.
Definition: DtExampleSymbolDriver3.h:120
boost::unordered_set< DtSymbolFacade * > SymbolList
Definition: DtExampleSymbolDriver3.h:44
SymbolFacadeMap mySymbolFacades
Map of symbol facades created by the driver (indexed by element id).
Definition: DtExampleSymbolDriver3.h:123
The DtDriver is an abstract class.
Definition: DtDriver.h:31
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
#define DT_DLL_EXAMPLESYMBOLFACADE3
Definition: exampleSymbolFacade3.h:20

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)