![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2004 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: dtedInit.h,v $ $Revision: 1.12 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef dtedInit_H_ 00009 #define dtedInit_H_ 00010 00011 #include "dted/dtedDefines.h" 00012 #include "gdb/terrainFileInitializer.h" 00013 #include <vlutil/vlFilename.h> 00014 #include "geometry/gdbColor.h" 00015 #include <vlutil/vlConfig.h> 00016 #include <list> 00017 00018 enum DtProjectionEnum 00019 { 00020 DtUndefinedProjection, 00021 DtGeodeticProjection, 00022 DtUtmProjection, 00023 DtFlatEarthProjection 00024 }; 00025 00026 // 00027 // The dted metafile record has a list of individual dted files, and also a 00028 // post spacing parameter, used to control the resolution of the map. 00029 class DT_DLL_dted DtDtedInitializer : public DtTerrainFileInitializer 00030 { 00031 00032 public: 00033 00034 // default constructor. 00035 DtDtedInitializer(); 00036 00037 // destructor 00038 virtual ~DtDtedInitializer(); 00039 00040 // copy constructor 00041 DtDtedInitializer(const DtDtedInitializer& orig); 00042 00043 // assignment operator 00044 DtDtedInitializer& operator=(const DtDtedInitializer& orig); 00045 00046 virtual DtString type() const; 00047 00048 // get/set post spacing. 00049 virtual int postSpacing() const; 00050 virtual void setPostSpacing(int i); 00051 00052 // returns the high color 00053 virtual DtColor highColor() const; 00054 virtual void setHighColor(const DtColor& c); 00055 00056 // returns the low color 00057 virtual DtColor lowColor() const; 00058 virtual void setLowColor(const DtColor& c); 00059 00060 // returns the high-color height 00061 virtual double highColorHeight() const; 00062 virtual void setHighColorHeight(const double& d); 00063 00064 // returns the low-color height 00065 virtual double lowColorHeight() const; 00066 virtual void setLowColorHeight(const double& d); 00067 00068 // returns the flag specifying relief shading 00069 virtual bool isReliefShaded() const; 00070 virtual void setIsReliefShaded(bool b); 00071 00072 // returns the origin latitude; 00073 virtual double originLatitude() const; 00074 virtual void setOriginLatitude(const double& d); 00075 00076 // returns the origin longitude 00077 virtual double originLongitude() const; 00078 virtual void setOriginLongitude(const double& d); 00079 00080 // returns the low-color height 00081 virtual bool isOriginSpecified() const; 00082 virtual void setIsOriginSpecified(bool b); 00083 00084 // returns the max (boundary) latitude 00085 virtual double maxLatitude() const; 00086 virtual void setMaxLatitude(const double& d); 00087 00088 // returns the min (boundary) latitude 00089 virtual double minLatitude() const; 00090 virtual void setMinLatitude(const double& d); 00091 00092 // returns the max (boundary) longitude 00093 virtual double maxLongitude() const; 00094 virtual void setMaxLongitude(const double& d); 00095 00096 // returns the min (boundary) longitude 00097 virtual double minLongitude() const; 00098 virtual void setMinLongitude(const double& d); 00099 00100 // returns the flag specifying whether or not a sea rectangle is added 00101 virtual bool isSeaRectangleAdded() const; 00102 virtual void setIsSeaRectangleAdded(bool b); 00103 00104 // Sets/gets the projection to use for data import 00105 virtual DtProjectionEnum projection() const; 00106 virtual void setProjection(DtProjectionEnum proj); 00107 00108 protected: 00109 00110 int myPostSpacing; 00111 DtColor myLowColor; 00112 DtColor myHighColor; 00113 double myLowColorHeight; 00114 double myHighColorHeight; 00115 bool myIsReliefShaded; 00116 double myOriginLatitude; 00117 double myOriginLongitude; 00118 bool myIsOriginSpecified; 00119 double myMaxLatitude; 00120 double myMinLatitude; 00121 double myMaxLongitude; 00122 double myMinLongitude; 00123 bool myIsSeaRectangleAdded; 00124 DtProjectionEnum myProjection; 00125 00126 }; 00127 00128 #endif