44 static void getSystemNames(
bool onlyorthogonal,
56 virtual uiString description()
const = 0;
59 virtual bool isOK()
const = 0;
61 virtual bool geographicTransformOK()
const = 0;
70 bool withsystem=
false)
const;
74 virtual Coord fromString(
const char*)
const;
76 virtual bool isOrthogonal()
const = 0;
78 virtual bool isFeet()
const {
return false; }
79 virtual bool isMeter()
const {
return false; }
84 static const char* sKeyFactoryName();
85 static const char* sKeyUiName();
90 bool wgs84)
const = 0;
92 bool wgs84)
const = 0;
93 virtual void doFillPar(
IOPar&)
const = 0;
94 virtual bool doUsePar(
const IOPar&) = 0;
98 friend class ::LatLong;
106 tr(
"Unlocated XY") );
110 virtual CoordSystem* clone()
const;
112 tr(
"Coordinate system in an undefined projection.");}
114 {
return sFactoryKeyword(); }
119 virtual bool isOK()
const {
return true; }
121 virtual bool isFeet()
const {
return isfeet_; }
122 virtual bool isMeter()
const {
return !isfeet_; }
126 virtual LatLong toGeographic(
const Coord&,
bool wgs84)
const;
127 virtual Coord fromGeographic(
const LatLong&,
bool wgs84)
const;
128 virtual bool doUsePar(
const IOPar&);
129 virtual void doFillPar(
IOPar&)
const;
139 tr(
"Anchor Point Based XY") );
143 virtual CoordSystem* clone()
const;
145 tr(
"Coordinate system has an anchor point " 146 "for which Latitude/Longitude is known");}
150 bool geographicTransformOK()
const;
153 virtual bool isOK()
const {
return true; }
155 virtual bool isFeet()
const {
return isfeet_; }
156 virtual bool isMeter()
const {
return !isfeet_; }
163 virtual LatLong toGeographic(
const Coord&,
bool wgs84)
const;
165 virtual Coord fromGeographic(
const LatLong&,
bool wgs84)
const;
173 virtual bool doUsePar(
const IOPar&);
174 virtual void doFillPar(
IOPar&)
const;
virtual bool isFeet() const
Definition: coordsystem.h:78
#define mRefCountImpl(ClassName)
Macro to setup a class with destructor for reference counting.
Definition: refcount.h:163
#define mExpClass(module)
Definition: commondefs.h:160
bool isfeet_
Definition: coordsystem.h:131
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
T to(const F &fr)
Definition: convert.h:33
LatLong reflatlng_
Definition: coordsystem.h:169
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
virtual bool isProjection() const
Definition: coordsystem.h:77
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Export_Basic uiString toUiString(ViewStyle)
Interface class for Notifier. See comments there.
Definition: callback.h:161
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
const Coord & refCoord() const
Definition: coordsystem.h:158
void setIsFeet(bool isfeet)
Definition: coordsystem.h:116
#define mDefaultFactoryInstantiation(baseclss, clss, keywrd, usernm)
Definition: factory.h:289
Definition: uistring.h:89
A cartesian coordinate in 2D space.
Definition: coord.h:25
Geographical coordinates in Decimal Degrees but with conv to deg, min, sec.
Definition: latlong.h:27
double lngdist_
Definition: coordsystem.h:171
Definition: coordsystem.h:31
virtual uiString description() const
Definition: coordsystem.h:144
virtual bool isOK() const
Definition: coordsystem.h:119
Coord refcoord_
Definition: coordsystem.h:168
bool geographicTransformOK() const
Definition: coordsystem.h:117
virtual bool isOK() const
Definition: coordsystem.h:153
virtual bool isOrthogonal() const
Definition: coordsystem.h:120
Definition: coordsystem.h:22
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
virtual BufferString summary() const
Definition: coordsystem.h:113
virtual bool isOrthogonal() const
Definition: coordsystem.h:154
virtual bool isMeter() const
Definition: coordsystem.h:156
#define mDefineFactoryInClass(T, funcname)
Definition: factory.h:426
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
const LatLong & refLatLong() const
Definition: coordsystem.h:159
virtual bool isFeet() const
Definition: coordsystem.h:121
virtual bool isMeter() const
Definition: coordsystem.h:79
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
T convert(Type inptyp, T val, Type outtyp)
Definition: angles.h:76
Definition: coordsystem.h:102
virtual bool isMeter() const
Definition: coordsystem.h:122
void setIsFeet(bool isfeet)
Definition: coordsystem.h:149
Definition: uistring.h:218
bool isfeet_
Definition: coordsystem.h:167
Definition: coordsystem.h:135
Export_Basic const char * toString(ViewStyle)
virtual bool isFeet() const
Definition: coordsystem.h:155
virtual uiString description() const
Definition: coordsystem.h:111