mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-25 04:05:53 +01:00
32 lines
715 B
C++
32 lines
715 B
C++
#ifndef COORDINATESYSTEM_H
|
|
#define COORDINATESYSTEM_H
|
|
|
|
#include <QDebug>
|
|
|
|
class CoordinateSystem
|
|
{
|
|
public:
|
|
enum AxisOrder {Unknown, XY, YX};
|
|
|
|
CoordinateSystem() : _axisOrder(Unknown) {}
|
|
CoordinateSystem(AxisOrder axisOrder) : _axisOrder(axisOrder) {}
|
|
CoordinateSystem(int code);
|
|
|
|
bool operator==(const CoordinateSystem &other) const
|
|
{return (_axisOrder == other._axisOrder);}
|
|
|
|
bool isNull() const {return (_axisOrder == Unknown);}
|
|
bool isValid() const {return (_axisOrder != Unknown);}
|
|
|
|
AxisOrder axisOrder() const {return _axisOrder;}
|
|
|
|
private:
|
|
AxisOrder _axisOrder;
|
|
};
|
|
|
|
#ifndef QT_NO_DEBUG
|
|
QDebug operator<<(QDebug dbg, const CoordinateSystem &cs);
|
|
#endif // QT_NO_DEBUG
|
|
|
|
#endif // COORDINATESYSTEM_H
|