OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Friends | List of all members
Coords::CoordSystem Class Referenceabstract
Inheritance diagram for Coords::CoordSystem:
[legend]

Public Member Functions

bool operator== (const CoordSystem &) const
 
static::Factory< CoordSystem > & factory ()
 
virtual uiString factoryDisplayName () const
 
virtual const char * factoryKeyword () const
 
virtual CoordSystemclone () const =0
 
virtual uiString description () const =0
 
virtual BufferString summary () const =0
 
virtual bool isOK () const =0
 
virtual bool geographicTransformOK () const =0
 
Coord convertFrom (const Coord &, const CoordSystem &from) const
 
virtual uiString toUiString (const Coord &) const
 
virtual BufferString toString (const Coord &, bool withsystem=false) const
 
virtual Coord fromString (const char *) const
 
virtual bool isOrthogonal () const =0
 
virtual bool isProjection () const
 
virtual bool isFeet () const
 
virtual bool isMeter () const
 
bool usePar (const IOPar &)
 
void fillPar (IOPar &) const
 

Static Public Member Functions

static void initRepository (NotifierAccess *=0)
 
static void getSystemNames (bool onlyorthogonal, bool onlyprojection, uiStringSet &, ObjectSet< IOPar > &)
 Creates the subclasses without settings. More...
 
static RefMan< CoordSystemcreateSystem (const IOPar &)
 Creates subclass with settings. More...
 
static Coord convert (const Coord &, const CoordSystem &from, const CoordSystem &to)
 
static const char * sKeyFactoryName ()
 
static const char * sKeyUiName ()
 

Protected Member Functions

virtual LatLong toGeographic (const Coord &, bool wgs84) const =0
 
virtual Coord fromGeographic (const LatLong &, bool wgs84) const =0
 
virtual void doFillPar (IOPar &) const =0
 
virtual bool doUsePar (const IOPar &)=0
 

Private Member Functions

 mRefCountImplWithDestructor (CoordSystem, virtual ~CoordSystem(), delete this;)
 
- Private Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Friends

class ::LatLong
 

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 Function Documentation

virtual CoordSystem* Coords::CoordSystem::clone ( ) const
pure virtual
static Coord Coords::CoordSystem::convert ( const Coord ,
const CoordSystem from,
const CoordSystem to 
)
static
Coord Coords::CoordSystem::convertFrom ( const Coord ,
const CoordSystem from 
) const
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!

virtual uiString Coords::CoordSystem::description ( ) const
pure virtual
virtual void Coords::CoordSystem::doFillPar ( IOPar ) const
protectedpure virtual
virtual bool Coords::CoordSystem::doUsePar ( const IOPar )
protectedpure virtual
static ::Factory< CoordSystem >& Coords::CoordSystem::factory ( )
virtual uiString Coords::CoordSystem::factoryDisplayName ( ) const
inlinevirtual
virtual const char* Coords::CoordSystem::factoryKeyword ( ) const
inlinevirtual
void Coords::CoordSystem::fillPar ( IOPar ) const
virtual Coord Coords::CoordSystem::fromGeographic ( const LatLong ,
bool  wgs84 
) const
protectedpure virtual
virtual Coord Coords::CoordSystem::fromString ( const char *  ) const
virtual
virtual bool Coords::CoordSystem::geographicTransformOK ( ) const
pure virtual
static void Coords::CoordSystem::getSystemNames ( bool  onlyorthogonal,
bool  onlyprojection,
uiStringSet ,
ObjectSet< IOPar > &   
)
static

Creates the subclasses without settings.

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

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

virtual bool Coords::CoordSystem::isFeet ( ) const
inlinevirtual
virtual bool Coords::CoordSystem::isMeter ( ) const
inlinevirtual
virtual bool Coords::CoordSystem::isOK ( ) const
pure virtual
virtual bool Coords::CoordSystem::isOrthogonal ( ) const
pure virtual
virtual bool Coords::CoordSystem::isProjection ( ) const
inlinevirtual
Coords::CoordSystem::mRefCountImplWithDestructor ( CoordSystem  ,
virtual ~  CoordSystem(),
delete this;   
)
private
bool Coords::CoordSystem::operator== ( const CoordSystem ) const
static const char* Coords::CoordSystem::sKeyFactoryName ( )
static
static const char* Coords::CoordSystem::sKeyUiName ( )
static
virtual BufferString Coords::CoordSystem::summary ( ) const
pure virtual
virtual LatLong Coords::CoordSystem::toGeographic ( const Coord ,
bool  wgs84 
) const
protectedpure virtual
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.

virtual uiString Coords::CoordSystem::toUiString ( const Coord ) const
virtual
bool Coords::CoordSystem::usePar ( const IOPar )

Friends And Related Function Documentation

friend class ::LatLong
friend

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