OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimH5GridModel.h
Go to the documentation of this file.
1 //*****************************************************************************
2 // FILE: ossimH5GridModel.h
3 //
4 // License: LGPL
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // AUTHOR: David Burken
9 //
10 // Copied from Mingjie Su's ossimHdfGridModel.
11 //
12 // DESCRIPTION:
13 // Contains declaration of class ossimHdfGridModel. This is an
14 // implementation of an interpolation sensor model.
15 //
16 //*****************************************************************************
17 // $Id$
18 
19 #ifndef ossimH5GridModel_HEADER
20 #define ossimH5GridModel_HEADER 1
23 
25 
26 #include <string>
27 
28 // Forward class declarations:
29 class ossimDpt;
30 class ossimGpt;
31 namespace H5
32 {
33  class DataSet;
34  class H5File;
35 }
36 
37 /******************************************************************************
38  *
39  * CLASS: ossimH5GridModel
40  *
41  *****************************************************************************/
43 {
44 public:
45 
48 
50  virtual ~ossimH5GridModel();
51 
63  bool setGridNodes( H5::DataSet* latDataSet,
64  H5::DataSet* lonDataSet,
65  const ossimIrect& validRect );
66 
73  virtual bool saveState(ossimKeywordlist& kwl, const char* prefix=0) const;
74 
81  virtual bool loadState(const ossimKeywordlist& kwl, const char* prefix=0);
82 
89  virtual void worldToLineSample(const ossimGpt& world_point,
90  ossimDpt& image_point) const;
91 
92 protected:
93 
99  void initializeModelParams(ossimIrect imageBounds);
100 
107  virtual ossimDpt extrapolate( const ossimGpt& gp ) const;
108 
109 private:
110 
111  bool getWktFootprint( std::string& s ) const;
112 
113  void debugDump();
114 
116 
117  //---
118  // This polygon differs from base "theBoundGndPolygon" in that if the
119  // scene crosses the dateline the longitude values are stored between
120  // 0 and 360 degress as opposed to -180 to 180.
121  //---
123 
124  TYPE_DATA
125 };
126 
127 #endif /* Matches: #ifndef ossimH5GridModel_HEADER */
Represents serializable keyword/value map.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Fulfills ossimObject base-class pure virtuals.
virtual ossimGpt extrapolate(const ossimDpt &imgPt, const double &height=ossim::nan()) const
Implements its own extrapolation since this can be handled by ossimDblGrid.
#define TYPE_DATA
Definition: ossimRtti.h:339
#define OSSIM_PLUGINS_DLL
virtual void worldToLineSample(const ossimGpt &world_point, ossimDpt &image_point) const
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Fulfills ossimObject base-class pure virtuals.
ossimPolygon m_boundGndPolygon
void initializeModelParams(ossimIrect irect)
Initializes base class data members after grids have been assigned.