1 #ifndef CALIBRATIONPOINT_H
2 #define CALIBRATIONPOINT_H
6 #include "projection.h"
8 class CalibrationPoint
{
11 CalibrationPoint(PointD xy
, PointD pp
) : _xy(xy
), _pp(pp
) {}
12 CalibrationPoint(PointD xy
, Coordinates c
) : _xy(xy
), _ll(c
) {}
16 return !(_xy
.isNull() || (_pp
.isNull() && !_ll
.isValid()));
19 ReferencePoint
rp(const Projection
&projection
) const
22 ? ReferencePoint(_xy
, projection
.ll2xy(_ll
))
23 : ReferencePoint(_xy
, _pp
);
26 friend QDebug
operator<<(QDebug dbg
, const CalibrationPoint
&p
);
35 inline QDebug
operator<<(QDebug dbg
, const CalibrationPoint
&p
)
37 dbg
.nospace() << "CalibrationPoint(" << p
._xy
<< ", " << p
._pp
<< ", "
43 #endif // CALIBRATIONPOINT_H