VR-Forces 4.8 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  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 }
The feature layer is a type of terrain layer which contains features, such as points, lines, areas, and props created from them.
Definition: DtFeatureLayer.h:28
bool mysimOnly
Definition: DtFeatureLayer.h:86
std::string myFilename
Definition: DtFeatureLayer.h:83
std::vector< DtAddPropsRuleRecord > DtAddPropsRuleRecordVector
Definition: DtAddPropsRuleRecord.h:96
Contains makVrv::DtFeatureSet class.
A DtFeatureLayerRecord contains the information to add features from a single source file and ruleset...
Definition: DtFeatureLayerRecord.h:25
const char * filename
Definition: ioapi.h:38
Contains makVrv::DtTerrainLayer class.
The DtFeatureSet contains all of the features of a particular database.
Definition: DtFeatureSet.h:34
The DtTerrainlayer is the base implementation of a layer of data which makes up the terrain...
Definition: DtTerrainLayer.h:36
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
DtFeatureSet myFeatures
Definition: DtFeatureLayer.h:85
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Record of a rule used to add props to a feaure layer.
Definition: DtAddPropsRuleRecord.h:26
makArchives::DtAddPropsRuleRecordVector myAddPropsRules
Definition: DtFeatureLayer.h:84
Contains makArchives::DtAddPropsRuleRecord class.
const char int mode
Definition: ioapi.h:38
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:36
This is the base Terrain Feature class which all specific feature types extend.
Definition: DtFeature.h:35
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69

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)