VR-Vantage 3.0.3 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
9 
10 #pragma once
11 #include <vrvCore/vrvCore.h>
12 #include <vrvCore/DtUniqueID.h>
13 #include <vrvUtil/DtFaccCode.h>
14 
15 namespace makVrv
16 {
17  class DtFeatureVisualizer;
18 
19  namespace DFAD
20  {
21  typedef unsigned int FeatureID;
22  typedef unsigned int SurfaceMaterialCode;
23  };
24 
33  {
34  public:
35  friend class DtFeatureSet;
36  friend class DtFaccManager;
37 
39  virtual ~DtFeature();
40 
43  DtElementID elementId() const;
44 
46  virtual std::string generateDisplayName() const = 0;
47 
49  DFAD::FeatureID featureID() const;
50 
52  const DtFaccCode& faccCode() const;
53 
55  unsigned int sourceID() const;
56 
58  DFAD::SurfaceMaterialCode soilType();
59 
61  DtFeatureVisualizer* findFeatureVisualizer();
62 
64  void setFeatureVisualizer(DtFeatureVisualizer* vis);
65 
66  protected:
69  DtFeature(DtElementID id, DFAD::FeatureID featureID,
70  const DtFaccCode& feautureCode, unsigned int sourceId = 0 );
71 
72  protected:
73 
76  unsigned int mySourceId;
79  float myWidth;
80  float myLength;
81  float myHeight;
84  };
85 }
unsigned int FeatureID
Definition: DtFeature.h:21
Base visualizer class for visualizing features.
Definition: DtFeatureVisualizer.h:19
float myWidth
Definition: DtFeature.h:79
float myLength
Definition: DtFeature.h:80
DtFaccCode myFeatureCode
Definition: DtFeature.h:77
The DtFeatureSet contains all of the features of a particular database.
Definition: DtFeatureSet.h:35
A data type which represents a FACC code.
Definition: DtFaccCode.h:19
DFAD::FeatureID myFeatureID
Definition: DtFeature.h:75
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
float myHeight
Definition: DtFeature.h:81
DFAD::SurfaceMaterialCode mySoilType
Definition: DtFeature.h:78
float myOrientation
Definition: DtFeature.h:82
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
unsigned int SurfaceMaterialCode
Definition: DtFeature.h:22
The DtFeatureSpecificationManager manages feature specification for an application.
Definition: DtFaccManager.h:77
Contains makVrv::DtUniqueID type.
This is the base Terrain Feature class which all specific feature types extend.
Definition: DtFeature.h:32
unsigned int mySourceId
Definition: DtFeature.h:76
Contains makVrv::DtFaccCode class.
const DtElementID myElementId
Definition: DtFeature.h:74
Contains DLL export macros.
DtFeatureVisualizer * myFeatureVisualizer
Definition: DtFeature.h:83


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