VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
asciiInitializer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: asciiInit.h,v $ $Revision: 1.10 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef asciiInitializer_H_
9 #define asciiInitializer_H_
10 
11 // \file asciiInit.h
12 // \brief Contains the DtAsciiInitializer class declaration.
13 
14 #include "ascii/asciiDefines.h"
16 #include "geometry/color.h"
17 #include <vlutil/vlConfig.h>
18 #include <vlutil/vlFilename.h>
19 #include <vector>
20 
21 //
22 // The ascii metafile record has a container of individual ascii files, and also a
23 // post spacing parameter, used to control the resolution of the map.
25 {
26 
27 public:
28 
29  // default constructor.
31 
32  // destructor
33  virtual ~DtAsciiInitializer();
34 
35  // copy constructor
37 
38  // assignment operator
40 
41  virtual DtString type() const;
42 
43  // get/set post spacing.
44  virtual int postSpacing() const;
45  virtual void setPostSpacing(int i);
46 
47  // Returns a flag specifying whether or not to project the database
48  virtual bool isProjected() const;
49  virtual void setIsProjected(bool b);
50 
51  // Returns a flag specifying whether there is or not info about
52  // triangles in the files
53  virtual bool isTriangulated() const;
54  virtual void setIsTriangulated(bool b);
55 
56  // returns the origin latitude;
57  virtual const double& originLatitude() const;
58  virtual void setOriginLatitude(const double& d);
59 
60  // returns the origin longitude
61  virtual const double& originLongitude() const;
62  virtual void setOriginLongitude(const double& d);
63 
64  // returns the low-color height
65  virtual bool isOriginSpecified() const;
66  virtual void setIsOriginSpecified(bool b);
67 
68  // returns the max (boundary) latitude
69  virtual const double& maxLatitude() const;
70  virtual void setMaxLatitude(const double& d);
71 
72  // returns the min (boundary) latitude
73  virtual const double& minLatitude() const;
74  virtual void setMinLatitude(const double& d);
75 
76  // returns the max (boundary) longitude
77  virtual const double& maxLongitude() const;
78  virtual void setMaxLongitude(const double& d);
79 
80  // returns the min (boundary) longitude
81  virtual const double& minLongitude() const;
82  virtual void setMinLongitude(const double& d);
83 
84  // returns the flag specifying whether or not a sea rectangle is added
85  virtual bool isSeaRectangleAdded() const;
86  virtual void setIsSeaRectangleAdded(bool b);
87 
88  virtual void setThresholdForSeaLevel(double threshold);
89  virtual double thresholdForSeaLevel() const;
90 
91  virtual void setSkipForVertex(int i, int times);
92  virtual int skipForVertex(int i) const;
93 
94  virtual void setSkipForTriangle(int i, int times);
95  virtual int skipForTriangle(int i) const;
96 
97  virtual void setHasSoilTypes(bool b);
98  virtual bool hasSoilTypes() const;
99 
100  virtual void setIndexFromZero(bool b);
101  virtual bool indexFromZero() const;
102 
103 protected:
104 
108 
120 
121  std::vector<int> mySkipsForVertex;
122  std::vector<int> mySkipsForTriangle;
123 
124 };
125 
126 #endif
bool myIndexFromZero
Definition: asciiInitializer.h:119
bool myIsSeaRectangleAdded
Definition: asciiInitializer.h:116
double myMaxLongitude
Definition: asciiInitializer.h:114
bool myIsProjected
Definition: asciiInitializer.h:106
double myThresholdForSeaLevel
Definition: asciiInitializer.h:117
std::vector< int > mySkipsForTriangle
Definition: asciiInitializer.h:122
int myPostSpacing
Definition: asciiInitializer.h:105
bool myIsTriangulated
Definition: asciiInitializer.h:107
double myMinLatitude
Definition: asciiInitializer.h:113
DtTerrainFileInitializer & operator=(const DtTerrainFileInitializer &orig)
virtual DtString type() const
Definition: terrainFileInitializer.h:19
#define DT_DLL_ascii
Definition: asciiDefines.h:23
bool myHasSoilTypes
Definition: asciiInitializer.h:118
double myOriginLongitude
Definition: asciiInitializer.h:110
double myMaxLatitude
Definition: asciiInitializer.h:112
double myMinLongitude
Definition: asciiInitializer.h:115
double myOriginLatitude
Definition: asciiInitializer.h:109
std::vector< int > mySkipsForVertex
Definition: asciiInitializer.h:121
Definition: asciiInitializer.h:24
bool myIsOriginSpecified
Definition: asciiInitializer.h:111

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)