OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
RefPoint.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #ifndef RefPoint_h
13 #define RefPoint_h
14 
16 
17 class ossimKeywordlist;
18 
19 namespace ossimplugins
20 {
21 
22 
23 class Ephemeris;
24 
25 
30 {
31 public:
35  RefPoint();
39  ~RefPoint();
43  RefPoint(const RefPoint& rhs);
47  RefPoint& operator=(const RefPoint& rhs);
48 
49  void set_ephemeris(Ephemeris* ephemeris);
50  void set_distance(double distance);
51  void set_pix_line(double pix_line);
52  void set_pix_col(double pix_col);
53 
54  Ephemeris* get_ephemeris();
55  double get_distance() const;
56  double get_pix_line() const;
57  double get_pix_col() const;
58 
60  {
61  return new RefPoint(*this);
62  };
63 
70  bool saveState(ossimKeywordlist& kwl, const char* prefix=0) const;
71 
77  bool loadState (const ossimKeywordlist &kwl, const char *prefix=0);
78 
79 protected:
81  double _distance;
82  double _pix_line;
83  double _pix_col;
84 private:
85 };
86 }
87 
88 #endif
RefPoint * Clone()
Definition: RefPoint.h:59
Represents serializable keyword/value map.
This class handles the referential point.
Definition: RefPoint.h:29
This class represents an ephemeris.
Definition: Ephemeris.h:28
#define OSSIM_PLUGINS_DLL
Ephemeris * _ephemeris
Definition: RefPoint.h:80
float distance(double lat1, double lon1, double lat2, double lon2, int units)