VR-Vantage 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtFeature.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCore/vrvCore.h>
15 #include <vrvCore/DtUniqueID.h>
16 #include <vrvUtil/DtFaccCode.h>
17 
18 namespace makVrv
19 {
20  class DtFeatureVisualizer;
21 
22  namespace DFAD
23  {
24  typedef unsigned int FeatureID;
25  typedef unsigned int SurfaceMaterialCode;
26  };
27 
36  {
37  public:
38  friend class DtFeatureSet;
39  friend class DtFaccManager;
40 
42  virtual ~DtFeature();
43 
46  DtElementID elementId() const;
47 
49  virtual std::string generateDisplayName() const = 0;
50 
52  DFAD::FeatureID featureID() const;
53 
55  const DtFaccCode& faccCode() const;
56 
58  unsigned int sourceID() const;
59 
61  DFAD::SurfaceMaterialCode soilType();
62 
64  DtFeatureVisualizer* findFeatureVisualizer();
65 
67  void setFeatureVisualizer(DtFeatureVisualizer* vis);
68 
69  protected:
72  DtFeature(DtElementID id, DFAD::FeatureID featureID,
73  const DtFaccCode& feautureCode, unsigned int sourceId = 0 );
74 
75  protected:
76 
79  unsigned int mySourceId;
82  float myWidth;
83  float myLength;
84  float myHeight;
87  };
88 }
unsigned int FeatureID
Definition: DtFeature.h:24
Base visualizer class for visualizing features.
Definition: DtFeatureVisualizer.h:22
float myWidth
Definition: DtFeature.h:82
float myLength
Definition: DtFeature.h:83
DtFaccCode myFeatureCode
Definition: DtFeature.h:80
The DtFeatureSet contains all of the features of a particular database.
Definition: DtFeatureSet.h:34
A data type which represents a FACC code.
Definition: DtFaccCode.h:22
DFAD::FeatureID myFeatureID
Definition: DtFeature.h:78
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
float myHeight
Definition: DtFeature.h:84
DFAD::SurfaceMaterialCode mySoilType
Definition: DtFeature.h:81
float myOrientation
Definition: DtFeature.h:85
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
unsigned int SurfaceMaterialCode
Definition: DtFeature.h:25
The DtFeatureSpecificationManager manages feature specification for an application.
Definition: DtFaccManager.h:80
Contains makVrv::DtUniqueID type.
This is the base Terrain Feature class which all specific feature types extend.
Definition: DtFeature.h:35
unsigned int mySourceId
Definition: DtFeature.h:79
Contains makVrv::DtFaccCode class.
const DtElementID myElementId
Definition: DtFeature.h:77
Contains DLL export macros.
DtFeatureVisualizer * myFeatureVisualizer
Definition: DtFeature.h:86


Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)