VR-Vantage API Documentation
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 }


Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)