VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTerrainLayer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtTerrainLayer.h,v $ $Revision: 1.10 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCore/vrvCore.h>
16 #include <vrvCore/DtUniqueID.h>
17 
18 #include <map>
19 
20 #include <boost/unordered_set.hpp>
21 
22 namespace makArchives
23 {
24  class DtPropRecord;
25 }
26 
27 namespace makVrv
28 {
29  class DtDe;
30  class DtProp;
31  class DtAgentManagerInterface;
32 
37  {
38  public:
40  typedef std::map<DtUniqueID,DtProp*> PropMap;
41 
43  typedef boost::unordered_set<std::string> PropNameSet;
44 
46  DtTerrainLayer(DtDe& de, DtAgentManagerInterface& sceneInterface);
47 
49  virtual ~DtTerrainLayer();
50 
53  virtual void addProp(DtProp* prop);
54 
56  virtual bool addPropFromRecord(const makArchives::DtPropRecord& record);
57 
60  virtual DtProp* findProp(DtUniqueID id);
61 
64  virtual bool destroyProp(DtUniqueID id);
65 
67  const PropMap& props() const;
68 
70  const PropNameSet& propNames() const;
71 
73  boost::signal<void (const DtSelectionManager::IdSet& selected,
75 
76  void selectionChanged(const DtSelectionManager::IdSet& selected,
77  const DtSelectionManager::IdSet& de);
78 
79  protected:
82 
83  private:
86  };
87 }
std::map< DtUniqueID, DtProp * > PropMap
List of props.
Definition: DtTerrainLayer.h:40
Contains makVrv:DtSelectionManager class.
The DtTerrainlayer is the base implementation of a layer of data which makes up the terrain...
Definition: DtTerrainLayer.h:36
boost::unordered_set< std::string > PropNameSet
Set of prop names.
Definition: DtTerrainLayer.h:43
Facade object for a scene prop.
Definition: DtProp.h:37
PropMap myProps
Definition: DtTerrainLayer.h:84
A DtPropRecord contains the information to recreate a prop.
Definition: DtPropRecord.h:22
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
PropNameSet myPropNames
Definition: DtTerrainLayer.h:85
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
boost::signal< void(const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected)> signal_currentSelectionChanged
Emited when the current selection changes.
Definition: DtTerrainLayer.h:74
Contains makVrv::DtUniqueID type.
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:36
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
DtAgentManagerInterface & mySceneInterface
Definition: DtTerrainLayer.h:81
DtDe & myDe
Definition: DtTerrainLayer.h:80
Contains DLL export macros.

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)