VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFeatureLayer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtFeatureLayer.h,v $ $Revision: 1.17 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCore/DtTerrainLayer.h>
15 #include <vrvCore/DtFeatureSet.h>
17 
18 namespace makArchives
19 {
20  class DtFeatureLayerRecord;
21 }
22 
23 namespace makVrv
24 {
29  {
30  public:
31 
33  DtFeatureLayer(DtDe& de, DtAgentManagerInterface& sceneInterface,
34  const std::string& filename, bool simOnly=false);
35 
37  virtual ~DtFeatureLayer();
38 
40  virtual void getRecord(makArchives::DtFeatureLayerRecord& rec) const;
41 
43  virtual void setFromRecord(const makArchives::DtFeatureLayerRecord& rec);
44 
46 
47 
49  virtual void addProps(const makArchives::DtAddPropsRuleRecord& rule);
50 
52  const makArchives::DtAddPropsRuleRecordVector& addPropsRules() const;
53 
55 
57  const std::string& filename() const;
58 
60  bool simOnly() const;
61 
63 
64  DtFeatureSet& featureSet();
65  const DtFeatureSet& featureSet() const;
67 
69  DtFeature* findFeature(DtElementID id);
70 
72  bool destroyFeature(DtElementID id);
73 
74  protected:
75 
76  void loadFeatures();
77  void showFeatures();
78  void groundClampFeatures();
79  void checkForDisplayFeatureChanged(int mode, int setting, bool state);
80 
81  private:
82 
83  std::string myFilename;
86  bool mysimOnly;
87  };
88 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)