OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimGeoidManager.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // AUTHOR: Oscar Kramer
6 //
7 // DESCRIPTION: Contains declaration of class ossimGeoidManager. Maintains
8 // a list of geoids.
9 //
10 // LIMITATIONS: None.
11 //
12 //*****************************************************************************
13 // $Id: ossimGeoidManager.h 22900 2014-09-30 09:56:11Z dburken $
14 
15 #ifndef ossimGeoidManager_HEADER
16 #define ossimGeoidManager_HEADER
17 
18 #include <vector>
19 #include <ossim/base/ossimRefPtr.h>
20 #include <ossim/base/ossimGeoid.h>
21 /*****************************************************************************
22  *
23  * CLASS: ossimGeoidManager
24  *
25  *****************************************************************************/
27 {
28 public:
29 
30 
31  virtual ~ossimGeoidManager();
32 
36  static ossimGeoidManager* instance();
37 
38 
43  virtual bool open(const ossimFilename& dir, ossimByteOrder byteOrder);
44 
49  virtual double offsetFromEllipsoid(const ossimGpt& gpt);
50 
55  virtual bool saveState(ossimKeywordlist& kwl,
56  const char* prefix=0) const;
57 
62  virtual bool loadState(const ossimKeywordlist& kwl,
63  const char* prefix=0);
64 
68  virtual void addGeoid(ossimRefPtr<ossimGeoid> geoid, bool toFrontFlag=false);
69 
70  ossimGeoid* findGeoidByShortName(const ossimString& shortName, bool caseSensitive=true);
71 
75  virtual void clear();
76 
77 private:
82 
83  //static ossimGeoidManager* theInstance;
84  mutable std::vector< ossimRefPtr<ossimGeoid> > theGeoidList;
85 
86  // will use this as a identity if one wants but don't want it part of the internal list
87  //
89 
90  TYPE_DATA
91 };
92 
93 #endif
#define OSSIMDLLEXPORT
Represents serializable keyword/value map.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Definition: ossimObject.cpp:95
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
virtual bool open(const ossimFilename &dir, ossimByteOrder byteOrder=OSSIM_BIG_ENDIAN)=0
OSSIM_DLL ossimByteOrder byteOrder()
Definition: ossimCommon.cpp:54
ossimRefPtr< ossimGeoid > theIdentityGeoid
virtual double offsetFromEllipsoid(const ossimGpt &gpt)=0
#define TYPE_DATA
Definition: ossimRtti.h:339
ossimByteOrder
std::vector< ossimRefPtr< ossimGeoid > > theGeoidList