VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
terrainDatabaseToolConfiguration.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: terrainDatabaseToolConfiguration.h,v $ $Revision: 1.8 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef terrainDatabaseToolConfiguration_H_
9 #define terrainDatabaseToolConfiguration_H_
10 
11 //
12 // \file tdbToolConfiguration.h
13 // \brief Contains the DtTerrainDatabaseToolConfiguration class declaration.
14 //
15 
16 #include "gdb/gdbDefines.h"
17 #include <vlutil/vlConfig.h>
18 #include <vlutil/vlFilename.h>
19 #include <vector>
20 
21 // The DtTerrainDatabaseToolConfiguration contains all the configuration information
22 // for the terrain database tool to process a terrain database.
23 //
25 {
26 public:
27 
29 
31 
32  // \name Accessor functions for the configuration object
34 
35  bool reduce() const;
36  void setReduce(bool reduce);
37 
38  bool triangulateTerrain() const;
39  void setTriangulateTerrain(bool yesNo);
40 
41  double reductionTolerance() const;
42  void setReductionTolerance(double tolerance);
43 
44  bool collapseCSNodes() const;
45  void setCollapseCSNodes(bool collapse);
46 
47  bool convertToGeocentric() const;
48  void setConvertToGeocentric(bool convert);
49 
50  bool convertToGeodetic() const;
51  void setConvertToGeodetic(bool convert);
52 
53  bool convertToFlatEarth() const;
54  void setConvertToFlatEarth(bool convert);
55 
56  bool rebalance() const;
57  void setRebalance(bool rebalance);
58 
59  unsigned branching() const;
60  void setBranching(unsigned branching);
61 
62  unsigned leafing() const;
63  void setLeafing(unsigned leafing);
64 
65  bool clipVectorData() const;
66  void setClipVectorData(bool clipVectorData);
67 
68  bool planarizeVectorData() const;
69  void setPlanarizeVectorData(bool planarizeVectorData);
70 
71  double planarizeTolerance() const;
72  void setPlanarizeTolerance(double planarizeTolerance);
73 
74  unsigned planarizeExcessiveEdgeCount() const;
75  void setPlanarizeExcessiveEdgeCount(unsigned excessiveEdgeCount);
77 
78  // This function returns whether or not the configuration
79  // object is properly configured or not. If any inappropriate
80  // grouping or values for arguments are detected, this will return
81  // false.
82  // \return a boolean indicating the state of the configuration object.
83  bool validConfiguration() const;
84 
85  virtual bool originSet() const;
86  virtual void setOrigin(bool flag);
87 
88  virtual bool moveOrigin() const;
89  virtual void setMoveOrigin(bool flag);
90 
91  // Note that latitude and longitude must be
92  // of the format D:M:S (degrees:minutes:seconds)
93  const DtString& latitude() const;
94  void setLatitude(const DtString& lat);
95 
96  const DtString& longitude() const;
97  void setLongitude(const DtString& lon);
98 
99  // Values in radians. Must be set by user as it is not
100  // set as a function of setting the string values
101  double radiansLatitude() const;
102  void setRadiansLatitude(double lat);
103 
104  double radiansLongitude() const;
105  void setRadiansLongitude(double lon);
106 
107  unsigned zone() const;
108  void setZone(unsigned zone);
109 
110 private:
111 
112  bool myReduce;
115 
120 
122  unsigned myBranching;
123  unsigned myLeafing;
124 
129 
136  unsigned myZone;
137 };
138 
139 
140 #endif

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)