OpendTect  6.6
crssystem.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Raman Singh
8  Date: July 2008
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "crsproj.h"
14 #include "coordsystem.h"
15 
16 
17 namespace Coords
18 {
19 
22 public:
23 
25  "ProjectionBased System",
26  tr("Projection Based System") );
27 
30 
31  virtual CoordSystem* clone() const;
32 
33  virtual uiString description() const
34  { return tr("Geographical Coordinate System"); }
35  virtual BufferString summary() const;
36 
37  virtual bool isOK() const;
38 
39  virtual bool geographicTransformOK() const;
40 
41  virtual bool isOrthogonal() const;
42  virtual bool isProjection() const { return true; }
43  virtual bool isFeet() const;
44  virtual bool isMeter() const;
45 
47  const Projection* getProjection() const;
48 
49 protected:
50 
51  const Projection* proj_;
52 
53 private:
54 
55  virtual LatLong toGeographic(const Coord&,
56  bool wgs84) const;
57  virtual Coord fromGeographic(const LatLong&,
58  bool wgs84) const;
59  virtual bool doUsePar(const IOPar&);
60  virtual void doFillPar(IOPar&) const;
61 
62 };
63 
64 }; //namespace
Coords::ProjectionBasedSystem::setProjection
bool setProjection(AuthorityCode)
Coords::ProjectionBasedSystem::isProjection
virtual bool isProjection() const
Definition: crssystem.h:42
Coords::ProjectionBasedSystem::isFeet
virtual bool isFeet() const
coordsystem.h
Coords::ProjectionBasedSystem::ProjectionBasedSystem
ProjectionBasedSystem()
Coords::ProjectionBasedSystem::toGeographic
virtual LatLong toGeographic(const Coord &, bool wgs84) const
Coords::ProjectionBasedSystem::ProjectionBasedSystem
ProjectionBasedSystem(AuthorityCode)
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Coords::ProjectionBasedSystem::description
virtual uiString description() const
Definition: crssystem.h:33
Coord
A cartesian coordinate in 2D space.
Definition: coord.h:25
Coords::Projection
Definition: crsproj.h:49
Coords::ProjectionBasedSystem::mODTextTranslationClass
mODTextTranslationClass(ProjectionBasedSystem)
Coords::ProjectionBasedSystem::geographicTransformOK
virtual bool geographicTransformOK() const
Coords::ProjectionBasedSystem::isOrthogonal
virtual bool isOrthogonal() const
Coords::CoordSystem
Definition: coordsystem.h:31
Coords::ProjectionBasedSystem::clone
virtual CoordSystem * clone() const
Coords::ProjectionBasedSystem::summary
virtual BufferString summary() const
Coords::ProjectionBasedSystem::fromGeographic
virtual Coord fromGeographic(const LatLong &, bool wgs84) const
Coords::ProjectionBasedSystem::isOK
virtual bool isOK() const
Coords
Definition: coordsystem.h:22
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
Coords::ProjectionBasedSystem::mDefaultFactoryInstantiation
mDefaultFactoryInstantiation(CoordSystem, ProjectionBasedSystem, "ProjectionBased System", tr("Projection Based System"))
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
Coords::ProjectionBasedSystem
Definition: crssystem.h:21
Coords::ProjectionBasedSystem::proj_
const Projection * proj_
Definition: crssystem.h:51
Coords::AuthorityCode
Definition: crsproj.h:26
LatLong
Geographical coordinates in Decimal Degrees but with conv to deg, min, sec.
Definition: latlong.h:27
Coords::ProjectionBasedSystem::doFillPar
virtual void doFillPar(IOPar &) const
Coords::ProjectionBasedSystem::getProjection
const Projection * getProjection() const
Coords::ProjectionBasedSystem::isMeter
virtual bool isMeter() const
Coords::ProjectionBasedSystem::doUsePar
virtual bool doUsePar(const IOPar &)
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
crsproj.h

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021