![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2004 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: asciiInit.h,v $ $Revision: 1.10 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef asciiInit_H_ 00009 #define asciiInit_H_ 00010 00011 // \file asciiInit.h 00012 // \brief Contains the DtAsciiInitializer class declaration. 00013 00014 #include "ascii/asciiDefines.h" 00015 #include "gdb/terrainFileInitializer.h" 00016 #include "geometry/gdbColor.h" 00017 #include <vlutil/vlConfig.h> 00018 #include <vlutil/vlFilename.h> 00019 #include <vector> 00020 00021 // 00022 // The ascii metafile record has a container of individual ascii files, and also a 00023 // post spacing parameter, used to control the resolution of the map. 00024 class DT_DLL_ascii DtAsciiInitializer : public DtTerrainFileInitializer 00025 { 00026 00027 public: 00028 00029 // default constructor. 00030 DtAsciiInitializer(); 00031 00032 // destructor 00033 virtual ~DtAsciiInitializer(); 00034 00035 // copy constructor 00036 DtAsciiInitializer(const DtAsciiInitializer& orig); 00037 00038 // assignment operator 00039 DtAsciiInitializer& operator=(const DtAsciiInitializer& orig); 00040 00041 virtual DtString type() const; 00042 00043 // get/set post spacing. 00044 virtual int postSpacing() const; 00045 virtual void setPostSpacing(int i); 00046 00047 // Returns a flag specifying whether or not to project the database 00048 virtual bool isProjected() const; 00049 virtual void setIsProjected(bool b); 00050 00051 // Returns a flag specifying whether there is or not info about 00052 // triangles in the files 00053 virtual bool isTriangulated() const; 00054 virtual void setIsTriangulated(bool b); 00055 00056 // returns the origin latitude; 00057 virtual const double& originLatitude() const; 00058 virtual void setOriginLatitude(const double& d); 00059 00060 // returns the origin longitude 00061 virtual const double& originLongitude() const; 00062 virtual void setOriginLongitude(const double& d); 00063 00064 // returns the low-color height 00065 virtual bool isOriginSpecified() const; 00066 virtual void setIsOriginSpecified(bool b); 00067 00068 // returns the max (boundary) latitude 00069 virtual const double& maxLatitude() const; 00070 virtual void setMaxLatitude(const double& d); 00071 00072 // returns the min (boundary) latitude 00073 virtual const double& minLatitude() const; 00074 virtual void setMinLatitude(const double& d); 00075 00076 // returns the max (boundary) longitude 00077 virtual const double& maxLongitude() const; 00078 virtual void setMaxLongitude(const double& d); 00079 00080 // returns the min (boundary) longitude 00081 virtual const double& minLongitude() const; 00082 virtual void setMinLongitude(const double& d); 00083 00084 // returns the flag specifying whether or not a sea rectangle is added 00085 virtual bool isSeaRectangleAdded() const; 00086 virtual void setIsSeaRectangleAdded(bool b); 00087 00088 virtual void setThresholdForSeaLevel(double threshold); 00089 virtual double thresholdForSeaLevel() const; 00090 00091 virtual void setSkipForVertex(int i, int times); 00092 virtual int skipForVertex(int i) const; 00093 00094 virtual void setSkipForTriangle(int i, int times); 00095 virtual int skipForTriangle(int i) const; 00096 00097 virtual void setHasSoilTypes(bool b); 00098 virtual bool hasSoilTypes() const; 00099 00100 virtual void setIndexFromZero(bool b); 00101 virtual bool indexFromZero() const; 00102 00103 protected: 00104 00105 int myPostSpacing; 00106 bool myIsProjected; 00107 bool myIsTriangulated; 00108 00109 double myOriginLatitude; 00110 double myOriginLongitude; 00111 bool myIsOriginSpecified; 00112 double myMaxLatitude; 00113 double myMinLatitude; 00114 double myMaxLongitude; 00115 double myMinLongitude; 00116 bool myIsSeaRectangleAdded; 00117 double myThresholdForSeaLevel; 00118 bool myHasSoilTypes; 00119 bool myIndexFromZero; 00120 00121 std::vector<int> mySkipsForVertex; 00122 std::vector<int> mySkipsForTriangle; 00123 00124 }; 00125 00126 #endif