OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimDemPoint.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Ken Melero (kmelero@imagelinks.com)
6 // Orginally written by Jamie Moyers (jmoyers@geeks.com)
7 // Adapted from the package KDEM.
8 // Description: This class defines a DEM point.
9 //
10 //********************************************************************
11 // $Id: ossimDemPoint.h 17195 2010-04-23 17:32:18Z dburken $
12 
13 #ifndef ossimDemPoint_HEADER
14 #define ossimDemPoint_HEADER
15 
16 #include <vector>
17 
19 {
20 public:
21 
22  ossimDemPoint(double x = 0.0, double y = 0.0);
23 
24  // Accessors
25  double getX() const;
26  double getY() const;
27  void getXY(double& x, double& y) const;
28 
29  // Modifiers
30  void setX(double x);
31  void setY(double y);
32  void setXY(double x, double y);
33  bool operator<(ossimDemPoint const& /* rhs */) const {return false;}
34  bool operator==(ossimDemPoint const& /* rhs */) const {return false;}
35 
36 private:
37 
38  double _x;
39  double _y;
40 };
41 
42 // Inline Methods for class ossimDemPoint
43 
44 inline
46 {
47  _x = x;
48  _y = y;
49 }
50 
51 inline
52 double
54 {
55  return _x;
56 }
57 
58 inline
59 double
61 {
62  return _y;
63 }
64 
65 inline
66 void
67 ossimDemPoint::getXY(double& x, double& y) const
68 {
69  x = _x;
70  y = _y;
71 }
72 
73 inline
74 void
76 {
77  _x = x;
78 }
79 
80 inline
81 void
83 {
84  _y = y;
85 }
86 
87 inline
88 void
89 ossimDemPoint::setXY(double x, double y)
90 {
91  _x = x;
92  _y = y;
93 }
94 
95 typedef std::vector<ossimDemPoint> ossimDemPointVector;
96 
97 #endif // #ifndef ossimDemPoint_HEADER
ossim_uint32 x
void setX(double x)
Definition: ossimDemPoint.h:75
ossim_uint32 y
void getXY(double &x, double &y) const
Definition: ossimDemPoint.h:67
double getY() const
Definition: ossimDemPoint.h:60
std::vector< ossimDemPoint > ossimDemPointVector
Definition: ossimDemPoint.h:95
bool operator<(ossimDemPoint const &) const
Definition: ossimDemPoint.h:33
bool operator==(ossimDemPoint const &) const
Definition: ossimDemPoint.h:34
void setY(double y)
Definition: ossimDemPoint.h:82
void setXY(double x, double y)
Definition: ossimDemPoint.h:89
ossimDemPoint(double x=0.0, double y=0.0)
Definition: ossimDemPoint.h:45
double getX() const
Definition: ossimDemPoint.h:53