VR-Forces 4.1.1 Class Documentation
shapeInit.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: shapeInit.h,v $ $Revision: 1.17 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef shapeInit_H_
9 #define shapeInit_H_
10 
11 // \file shapeInit.h
12 // \brief Contains the DtShapeInitializer class declaration.
13 
14 #include "shape/shapeDefines.h"
15 #include <vlutil/vlFilename.h>
17 #include "shape/shapeEntry.h"
18 #include <vlutil/vlConfig.h>
19 #include <list>
20 
21 
22 // The DtShapeInitializer contains the data necessary to initialize the
23 // DtShapeReader shape file import class.
25 {
26 
27 public:
29  {
33  SHAPETERRAIN_POST
34  };
35 
36  typedef std::list<DtShapeEntry> DtShapeFileContainer;
37  typedef DtShapeFileContainer::iterator DtShapeFileIter;
38  typedef DtShapeFileContainer::const_iterator DtShapeFileConstIter;
39 
40  // default constructor.
42 
43  // destructor
44  virtual ~DtShapeInitializer();
45 
46  DtShapeInitializer(const DtShapeInitializer& original);
48 
49  virtual DtString type() const;
50 
51  virtual const DtShapeFileContainer& terrainFileContainer() const;
52  virtual DtShapeFileContainer& terrainFileContainer();
53 
54  // add a filename to the load list
55  virtual void addTerrainFile(const DtFilename& filename, const DtString& dataString, float factorToMtrs);
56  virtual void addTerrainFile(const DtFilename& filename, float elevationDelta, float factorToMtrs);
57  virtual void addTerrainFile(const DtFilename& filename, float factorToMtrs);
58 
59  virtual void clearList();
60 
61  virtual void setIsSeaRectangleAdded(bool added);
62  virtual bool isSeaRectangleAdded() const;
63 
64  virtual void setIsGroundRectangleAdded(bool added);
65  virtual bool isGroundRectangleAdded() const;
66 
67  virtual void setTerrainType(const DtString &typ);
68  virtual DtShapefileTerrainType terrainType() const;
69  virtual DtString terrainTypeString() const;
70 
71  virtual void setMinimumDistance(double dist);
72  virtual double minimumDistance() const;
73 
74  virtual void setThresholdForSeaLevel(double threshold);
75  virtual double thresholdForSeaLevel() const;
76 
77  // returns the origin latitude;
78  virtual const double& originLatitude() const;
79  virtual void setOriginLatitude(const double& d);
80 
81  // returns the origin longitude
82  virtual const double& originLongitude() const;
83  virtual void setOriginLongitude(const double& d);
84 
85  // returns the low-color height
86  virtual bool isOriginSpecified() const;
87  virtual void setIsOriginSpecified(bool b);
88 
89 protected:
90 
95 
100 
102 };
103 
104 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)