VR-Forces Developer's Guide
 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 
9 
10 #pragma once
11 #include <vrvCore/DtTerrainLayer.h>
12 #include <vrvCore/DtFeatureSet.h>
14 
15 namespace makArchives
16 {
17  class DtFeatureLayerRecord;
18 }
19 
20 namespace makVrv
21 {
26  {
27  public:
28 
30  DtFeatureLayer(DtDe& de, DtAgentManagerInterface& sceneInterface,
31  const std::string& filename, bool simOnly=false);
32 
34  virtual ~DtFeatureLayer();
35 
37  virtual void getRecord(makArchives::DtFeatureLayerRecord& rec) const;
38 
40  virtual void setFromRecord(const makArchives::DtFeatureLayerRecord& rec);
41 
43 
44 
46  virtual void addProps(const makArchives::DtAddPropsRuleRecord& rule);
47 
49  const makArchives::DtAddPropsRuleRecordVector& addPropsRules() const;
50 
52 
54  const std::string& filename() const;
55 
57  bool simOnly() const;
58 
60  DtFeatureSet& featureSet();
62  const DtFeatureSet& featureSet() const;
64 
66  DtFeature* findFeature(DtElementID id);
67 
69  bool destroyFeature(DtElementID id);
70 
71  protected:
72 
73  void loadFeatures();
74  void showFeatures();
75  void groundClampFeatures();
76  void checkForDisplayFeatureChanged(int mode, int setting, bool state);
77 
78  private:
79 
80  std::string myFilename;
83  bool mysimOnly;
84  };
85 }
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:25
bool mysimOnly
Definition: DtFeatureLayer.h:83
std::string myFilename
Definition: DtFeatureLayer.h:80
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:22
const char * filename
Definition: ioapi.h:38
Contains makVrv::DtTerrainLayer class.
The DtFeatureSet contains all of the features of a particular database. These features include point...
Definition: DtFeatureSet.h:36
The DtTerrainlayer is the base implementation of a layer of data which makes up the terrain...
Definition: DtTerrainLayer.h:33
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
DtFeatureSet myFeatures
Definition: DtFeatureLayer.h:82
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Record of a rule used to add props to a feaure layer.
Definition: DtAddPropsRuleRecord.h:23
makArchives::DtAddPropsRuleRecordVector myAddPropsRules
Definition: DtFeatureLayer.h:81
Contains makArchives::DtAddPropsRuleRecord class.
const char int mode
Definition: ioapi.h:38
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:33
This is the base Terrain Feature class which all specific feature types extend. This feature has a po...
Definition: DtFeature.h:32
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)