VR-Vantage 2.8 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 
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 }


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