Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
rowcol.h
1 #ifndef ROWCOL_H
2 #define ROWCOL_H
3 
4 #include "Kernel_global.h"
5 
6 namespace Ilwis {
7 class KERNELSHARED_EXPORT RowCol
8 {
9 public:
10  RowCol();
11 
12  RowCol(double r, double c);
13  RowCol(QString& pair);
14  double row(bool subpixel=false) const;
15  void setRow(double r);
16  double col(bool subpixel=false) const;
17  void setCol(double c);
18  bool operator==(const RowCol& rc) const;
19  bool operator!=(const RowCol& rc) const;
20  bool isValid() const;
21  QString toString() const;
22 
23 private:
24  double _row, _col;
25 
26 
27 };
28 }
29 
30 #define rcUNDEF Ilwis::RowCol(iUNDEF, iUNDEF)
31 
32 #endif // ROWCOL_H