OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
Coords::CoordSystem Class Referenceabstract
Inheritance diagram for Coords::CoordSystem:
[legend]

Public Types

enum  StringType {
  Default , URN , WKT , JSON ,
  URL
}
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Public Member Functions

virtual CoordSystemclone () const =0
 
virtual Coord convertFrom (const Coord &, const CoordSystem &from) const
 
virtual Coord convertTo (const Coord &, const CoordSystem &to) const
 
virtual uiString description () const =0
 
void fillPar (IOPar &) const
 
virtual Coord fromString (const char *) const
 
virtual bool geographicTransformOK () const =0
 
BufferString getDescString (StringType=Default, bool withsystem=false) const
 
virtual CoordSystemgetGeodeticSystem () const
 
virtual BufferString getUnitName () const
 
virtual BufferString getURNString () const =0
 
virtual bool isFeet () const
 
virtual bool isGeodetic () const
 
virtual bool isMeter () const
 
virtual bool isOK () const =0
 
virtual bool isOrthogonal () const =0
 
virtual bool isProjection () const
 
virtual bool isWGS84 () const
 
bool operator!= (const CoordSystem &) const
 
bool operator== (const CoordSystem &) const
 
virtual BufferString summary () const =0
 
virtual BufferString toString (const Coord &, bool withsystem=false) const
 
virtual uiString toUiString (const Coord &) const
 
bool usePar (const IOPar &)
 
- Public Member Functions inherited from SharedObject
 SharedObject (const char *nm=nullptr)
 
 SharedObject (const SharedObject &)
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Static Public Member Functions

static Coord convert (const Coord &, const CoordSystem &from, const CoordSystem &to)
 
static RefMan< CoordSystemcreateSystem (const char *str, BufferString &msgs)
 
static RefMan< CoordSystemcreateSystem (const IOPar &)
 Creates subclass with settings. More...
 
static void getSystemNames (bool onlyorthogonal, bool onlyprojection, uiStringSet &, ObjectSet< IOPar > &)
 Creates the subclasses without settings. More...
 
static CoordSystemgetWGS84LLSystem ()
 
static void initRepository (NotifierAccess *=nullptr)
 
static const char * sKeyFactoryName ()
 
static const char * sKeyJSON ()
 
static const char * sKeyUiName ()
 
static const char * sKeyURL ()
 
static const char * sKeyURN ()
 
static const char * sKeyWKT ()
 
static BufferString sWGS84ProjDispString ()
 
- Static Public Member Functions inherited from SharedObject
static Notifier< SharedObject > & instanceCreated ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Protected Member Functions

virtual ~CoordSystem ()
 
virtual void doFillPar (IOPar &) const =0
 
virtual bool doUsePar (const IOPar &)=0
 
virtual Coord fromGeographic (const LatLong &, bool wgs84) const =0
 
virtual LatLong toGeographic (const Coord &, bool wgs84) const =0
 
- Protected Member Functions inherited from SharedObject
virtual ~SharedObject ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Friends

class ::LatLong
 

Additional Inherited Members

- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

Base class for Coord systems, these are all two-dimensional and coordinates can be stored in Coord. They may use any projection, but they must be able to return Geographic coordinates using either the WGS84 datum or its own datum if applicable.

<>

Member Enumeration Documentation

◆ StringType

Enumerator
Default 
URN 
WKT 
JSON 
URL 

Constructor & Destructor Documentation

◆ ~CoordSystem()

virtual Coords::CoordSystem::~CoordSystem ( )
protectedvirtual

Member Function Documentation

◆ clone()

virtual CoordSystem* Coords::CoordSystem::clone ( ) const
pure virtual

◆ convert()

static Coord Coords::CoordSystem::convert ( const Coord ,
const CoordSystem from,
const CoordSystem to 
)
static

◆ convertFrom()

virtual Coord Coords::CoordSystem::convertFrom ( const Coord ,
const CoordSystem from 
) const
virtual

Reimplemented in Coords::ProjectionBasedSystem.

◆ convertTo()

virtual Coord Coords::CoordSystem::convertTo ( const Coord ,
const CoordSystem to 
) const
virtual

Reimplemented in Coords::ProjectionBasedSystem.

◆ createSystem() [1/2]

static RefMan<CoordSystem> Coords::CoordSystem::createSystem ( const char *  str,
BufferString msgs 
)
static

◆ createSystem() [2/2]

static RefMan<CoordSystem> Coords::CoordSystem::createSystem ( const IOPar )
static

Creates subclass with settings.

Gets a list of coord systems and the corresponding IOPars to create them. IOPars become yours!

◆ description()

virtual uiString Coords::CoordSystem::description ( ) const
pure virtual

◆ doFillPar()

virtual void Coords::CoordSystem::doFillPar ( IOPar ) const
protectedpure virtual

◆ doUsePar()

virtual bool Coords::CoordSystem::doUsePar ( const IOPar )
protectedpure virtual

◆ fillPar()

void Coords::CoordSystem::fillPar ( IOPar ) const

◆ fromGeographic()

virtual Coord Coords::CoordSystem::fromGeographic ( const LatLong ,
bool  wgs84 
) const
protectedpure virtual

◆ fromString()

virtual Coord Coords::CoordSystem::fromString ( const char *  ) const
virtual

◆ geographicTransformOK()

virtual bool Coords::CoordSystem::geographicTransformOK ( ) const
pure virtual

◆ getDescString()

BufferString Coords::CoordSystem::getDescString ( StringType  = Default,
bool  withsystem = false 
) const

◆ getGeodeticSystem()

virtual CoordSystem* Coords::CoordSystem::getGeodeticSystem ( ) const
inlinevirtual

Reimplemented in Coords::ProjectionBasedSystem.

◆ getSystemNames()

static void Coords::CoordSystem::getSystemNames ( bool  onlyorthogonal,
bool  onlyprojection,
uiStringSet ,
ObjectSet< IOPar > &   
)
static

Creates the subclasses without settings.

◆ getUnitName()

virtual BufferString Coords::CoordSystem::getUnitName ( ) const
inlinevirtual

Reimplemented in Coords::ProjectionBasedSystem.

◆ getURNString()

virtual BufferString Coords::CoordSystem::getURNString ( ) const
pure virtual

◆ getWGS84LLSystem()

static CoordSystem* Coords::CoordSystem::getWGS84LLSystem ( )
static

◆ initRepository()

static void Coords::CoordSystem::initRepository ( NotifierAccess = nullptr)
static

To be called from initGeneral with a pointer to survey change notifier.

◆ isFeet()

virtual bool Coords::CoordSystem::isFeet ( ) const
inlinevirtual

◆ isGeodetic()

virtual bool Coords::CoordSystem::isGeodetic ( ) const
inlinevirtual

◆ isMeter()

virtual bool Coords::CoordSystem::isMeter ( ) const
inlinevirtual

◆ isOK()

virtual bool Coords::CoordSystem::isOK ( ) const
pure virtual

◆ isOrthogonal()

virtual bool Coords::CoordSystem::isOrthogonal ( ) const
pure virtual

◆ isProjection()

virtual bool Coords::CoordSystem::isProjection ( ) const
inlinevirtual

Reimplemented in Coords::ProjectionBasedSystem.

◆ isWGS84()

virtual bool Coords::CoordSystem::isWGS84 ( ) const
inlinevirtual

Reimplemented in Coords::ProjectionBasedSystem.

◆ operator!=()

bool Coords::CoordSystem::operator!= ( const CoordSystem ) const

◆ operator==()

bool Coords::CoordSystem::operator== ( const CoordSystem ) const

◆ sKeyFactoryName()

static const char* Coords::CoordSystem::sKeyFactoryName ( )
static

◆ sKeyJSON()

static const char* Coords::CoordSystem::sKeyJSON ( )
static

◆ sKeyUiName()

static const char* Coords::CoordSystem::sKeyUiName ( )
static

◆ sKeyURL()

static const char* Coords::CoordSystem::sKeyURL ( )
static

◆ sKeyURN()

static const char* Coords::CoordSystem::sKeyURN ( )
static

◆ sKeyWKT()

static const char* Coords::CoordSystem::sKeyWKT ( )
static

◆ summary()

virtual BufferString Coords::CoordSystem::summary ( ) const
pure virtual

◆ sWGS84ProjDispString()

static BufferString Coords::CoordSystem::sWGS84ProjDispString ( )
static

◆ toGeographic()

virtual LatLong Coords::CoordSystem::toGeographic ( const Coord ,
bool  wgs84 
) const
protectedpure virtual

◆ toString()

virtual BufferString Coords::CoordSystem::toString ( const Coord ,
bool  withsystem = false 
) const
virtual

Returns string. If withsystem is turned on it will start with the factory name of the system, followed by a space.

◆ toUiString()

virtual uiString Coords::CoordSystem::toUiString ( const Coord ) const
virtual

◆ usePar()

bool Coords::CoordSystem::usePar ( const IOPar )

Friends And Related Function Documentation

◆ ::LatLong

friend class ::LatLong
friend

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