OpendTect  6.6
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Pick::Location Class Reference

Pick location in space,. More...

Public Member Functions

 Location (const Coord &, float z=0)
 
 Location (const Coord3 &)
 
 Location (const Coord3 &pos, const Coord3 &dir)
 
 Location (const Coord3 &pos, const Sphere &dir)
 
 Location (const Location &)
 
 Location (double x=0, double y=0, double z=0)
 
 ~Location ()
 
const BinIDbinID () const
 
float crlDip () const
 
const Spheredir () const
 
bool fromString (const char *)
 
Pos::GeomID geomID () const
 
bool getKeyedText (const char *key, BufferString &) const
 
bool getText (const char *key, BufferString &) const
 
bool hasDir () const
 
bool hasPos () const
 
bool hasText () const
 
bool hasTextKey (const char *key) const
 
bool hasTrcKey () const
 
float inlDip () const
 
bool is2D () const
 
Pos::LineID lineNr () const
 
bool operator!= (const Location &oth) const
 
void operator= (const Location &)
 
bool operator== (const Location &oth) const
 
const Coord3pos () const
 
void removeTextKey (const char *key)
 
LocationsetBinID (const BinID &, bool updcoord=false)
 
void setDip (float, float)
 
LocationsetDir (const Coord &)
 
LocationsetDir (const Sphere &)
 
LocationsetGeomID (Pos::GeomID)
 
void setKeyedText (const char *key, const char *txt)
 
LocationsetLineNr (Pos::LineID)
 
LocationsetPos (const Coord &c)
 
LocationsetPos (const Coord &c, float zval)
 
LocationsetPos (const Coord3 &c)
 
LocationsetPos (double x, double y, double zval)
 
LocationsetSurvID (Pos::SurvID, bool updfromcoord=true)
 
LocationsetText (const char *)
 make sure it's compatible with the keying system More...
 
void setText (const char *key, const char *txt)
 
LocationsetTrcKey (const TrcKey &)
 
LocationsetTrcNr (Pos::LineID)
 
template<class FT >
LocationsetZ (FT zval)
 
Pos::SurvID survID () const
 
const BufferStringtext () const
 
void toString (BufferString &, bool forexport=false, const Coords::CoordSystem *crs=0) const
 
const TrcKeytrcKey () const
 
Pos::TraceID trcNr () const
 
void unSetText (const char *key)
 
float z () const
 

Public Attributes

Sphere dir_
 
Coord3 pos_
 
BufferStringtext_
 
TrcKey trckey_
 

Protected Member Functions

bool fndKeyTxt (const char *, BufferString *) const
 

Detailed Description

Pick location in space,.

A pick location always has a position in X, Y and Z ('pos()'). If asked, you'll always get the corresponding TrcKey. But, the TrcKey may not be stored as such. If this matters, try hasTrcKey(). If there is no available TrcKey, then it will be generated from the default survey geometry.

A Location has an optional text. This has to be used as a keyed storage like: key1'xx'key2'yy If no text is available, you'll get an empty string.

A Location also has an optional direction: phi is defined as the direction's counter-clockwise angle from the x-axis in the x-y plane. theta is defined as the directions angle from the upward pointing z axis (i.e. opposite to survey-z-axis). Theta and the radius are defined after the SI().zFactor is applied to the z-coordinate. If no direction is available, you'll get nullSphere().

<>

Constructor & Destructor Documentation

◆ Location() [1/6]

Pick::Location::Location ( double  x = 0,
double  y = 0,
double  z = 0 
)

◆ Location() [2/6]

Pick::Location::Location ( const Coord ,
float  z = 0 
)

◆ Location() [3/6]

Pick::Location::Location ( const Coord3 )

◆ Location() [4/6]

Pick::Location::Location ( const Coord3 pos,
const Coord3 dir 
)

◆ Location() [5/6]

Pick::Location::Location ( const Coord3 pos,
const Sphere dir 
)

◆ Location() [6/6]

Pick::Location::Location ( const Location )

◆ ~Location()

Pick::Location::~Location ( )

Member Function Documentation

◆ binID()

const BinID& Pick::Location::binID ( ) const

◆ crlDip()

float Pick::Location::crlDip ( ) const

◆ dir()

const Sphere& Pick::Location::dir ( ) const

◆ fndKeyTxt()

bool Pick::Location::fndKeyTxt ( const char *  ,
BufferString  
) const
protected

◆ fromString()

bool Pick::Location::fromString ( const char *  )

◆ geomID()

Pos::GeomID Pick::Location::geomID ( ) const

◆ getKeyedText()

bool Pick::Location::getKeyedText ( const char *  key,
BufferString  
) const

◆ getText()

bool Pick::Location::getText ( const char *  key,
BufferString  
) const

◆ hasDir()

bool Pick::Location::hasDir ( ) const
inline

◆ hasPos()

bool Pick::Location::hasPos ( ) const
inline

◆ hasText()

bool Pick::Location::hasText ( ) const

◆ hasTextKey()

bool Pick::Location::hasTextKey ( const char *  key) const

◆ hasTrcKey()

bool Pick::Location::hasTrcKey ( ) const

◆ inlDip()

float Pick::Location::inlDip ( ) const

◆ is2D()

bool Pick::Location::is2D ( ) const

◆ lineNr()

Pos::LineID Pick::Location::lineNr ( ) const

◆ operator!=()

bool Pick::Location::operator!= ( const Location oth) const
inline

◆ operator=()

void Pick::Location::operator= ( const Location )

◆ operator==()

bool Pick::Location::operator== ( const Location oth) const
inline

◆ pos()

const Coord3& Pick::Location::pos ( ) const
inline

◆ removeTextKey()

void Pick::Location::removeTextKey ( const char *  key)

◆ setBinID()

Location& Pick::Location::setBinID ( const BinID ,
bool  updcoord = false 
)

◆ setDip()

void Pick::Location::setDip ( float  ,
float   
)

◆ setDir() [1/2]

Location& Pick::Location::setDir ( const Coord )

◆ setDir() [2/2]

Location& Pick::Location::setDir ( const Sphere )

◆ setGeomID()

Location& Pick::Location::setGeomID ( Pos::GeomID  )

◆ setKeyedText()

void Pick::Location::setKeyedText ( const char *  key,
const char *  txt 
)

◆ setLineNr()

Location& Pick::Location::setLineNr ( Pos::LineID  )

◆ setPos() [1/4]

Location& Pick::Location::setPos ( const Coord c)
inline

◆ setPos() [2/4]

Location& Pick::Location::setPos ( const Coord c,
float  zval 
)
inline

◆ setPos() [3/4]

Location& Pick::Location::setPos ( const Coord3 c)
inline

◆ setPos() [4/4]

Location& Pick::Location::setPos ( double  x,
double  y,
double  zval 
)
inline

◆ setSurvID()

Location& Pick::Location::setSurvID ( Pos::SurvID  ,
bool  updfromcoord = true 
)

◆ setText() [1/2]

Location& Pick::Location::setText ( const char *  )

make sure it's compatible with the keying system

◆ setText() [2/2]

void Pick::Location::setText ( const char *  key,
const char *  txt 
)

◆ setTrcKey()

Location& Pick::Location::setTrcKey ( const TrcKey )

◆ setTrcNr()

Location& Pick::Location::setTrcNr ( Pos::LineID  )

◆ setZ()

template<class FT >
Location& Pick::Location::setZ ( FT  zval)
inline

◆ survID()

Pos::SurvID Pick::Location::survID ( ) const

◆ text()

const BufferString& Pick::Location::text ( ) const

◆ toString()

void Pick::Location::toString ( BufferString ,
bool  forexport = false,
const Coords::CoordSystem crs = 0 
) const

◆ trcKey()

const TrcKey& Pick::Location::trcKey ( ) const

◆ trcNr()

Pos::TraceID Pick::Location::trcNr ( ) const

◆ unSetText()

void Pick::Location::unSetText ( const char *  key)

◆ z()

float Pick::Location::z ( ) const
inline

Member Data Documentation

◆ dir_

Sphere Pick::Location::dir_

◆ pos_

Coord3 Pick::Location::pos_

◆ text_

BufferString* Pick::Location::text_

◆ trckey_

TrcKey Pick::Location::trckey_

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