OpendTect-6_4
6.4
|
Holds survey general information. More...
Public Types | |
enum | Unit { Second, Meter, Feet } |
enum | Pol2D { No2D =0, Both2DAnd3D =1, Only2D =2 } |
Public Member Functions | |
~SurveyInfo () | |
bool | has2D () const |
bool | has3D () const |
StepInterval< int > | inlRange (bool work) const |
StepInterval< int > | crlRange (bool work) const |
const StepInterval< float > & | zRange (bool work) const |
int | inlStep () const |
int | crlStep () const |
float | zStep () const |
float | inlDistance () const |
distance for one increment More... | |
float | crlDistance () const |
float | getArea (const Interval< int > &inl, const Interval< int > &crl) const |
returns m2 More... | |
float | getArea (bool work) const |
returns m2 More... | |
Coord3 | oneStepTranslation (const Coord3 &planenormal) const |
const TrcKeyZSampling & | sampling (bool work) const |
Coord | transform (const BinID &b) const |
BinID | transform (const Coord &) const |
bool | xyInFeet () const |
const char * | getXYUnitString (bool withparens=true) const |
uiString | getUiXYUnitString (bool abbrviated=true, bool withparens=true) const |
const ZDomain::Def & | zDomain () const |
bool | depthsInFeet () const |
float | showZ2UserFactor () const |
bool | zIsTime () const |
Legacy, don't use. Use zDomain().isTime() More... | |
bool | zInMeter () const |
Legacy, don't use. More... | |
bool | zInFeet () const |
const char * | getZUnitString (bool withparens=true) const |
<Legacy, don't use More... | |
const uiString | getUiZUnitString (bool withparens=true) const |
Unit | xyUnit () const |
Legacy, don't use. More... | |
Unit | zUnit () const |
Legacy, don't use. More... | |
Coord | minCoord (bool work) const |
Coord | maxCoord (bool work) const |
bool | isInside (const BinID &, bool work) const |
bool | isReasonable (const BinID &) const |
Checks if in or near survey. More... | |
bool | isReasonable (const Coord &) const |
Checks if in or near survey. More... | |
Interval< int > | reasonableRange (bool inl) const |
int | maxNrTraces (bool work) const |
void | checkInlRange (Interval< int > &, bool work) const |
Makes sure range is inside. More... | |
void | checkCrlRange (Interval< int > &, bool work) const |
Makes sure range is inside. More... | |
void | checkZRange (Interval< float > &, bool work) const |
Makes sure range is inside. More... | |
bool | includes (const BinID &, const float, bool work) const |
Returns true when pos is inside survey-range. More... | |
void | snap (BinID &, const BinID &dir=BinID(0, 0)) const |
dir = 0 : auto; -1 round downward, 1 round upward More... | |
void | snapStep (BinID &, const BinID &dir=BinID(0, 0)) const |
see snap() for direction More... | |
void | snapZ (float &, int direction=0) const |
see snap() for direction More... | |
float | seismicReferenceDatum () const |
void | setSeismicReferenceDatum (float d) |
const IOPar & | pars () const |
void | putZDomain (IOPar &) const |
RefMan< Survey::Geometry3D > | get3DGeometry (bool work) const |
RefMan< Coords::CoordSystem > | getCoordSystem () |
ConstRefMan< Coords::CoordSystem > | getCoordSystem () const |
void | setWorkRange (const TrcKeyZSampling &) |
const Pos::IdxPair2Coord & | binID2Coord () const |
void | get3Pts (Coord c[3], BinID b[2], int &xline) const |
const LatLong2Coord & | latlong2Coord () const |
bool | isClockWise () const |
Don't use. Will be removed. More... | |
bool | isRightHandSystem () const |
float | angleXInl () const |
float | angleXCrl () const |
void | setXYInFeet (bool yn=true) |
void | setDepthInFeet (bool yn=true) |
void | setZUnit (bool istime, bool infeet=false) |
float | zScale () const |
BufferString | getDirName () const |
BufferString | getDataDirName () const |
void | updateDirName () |
May be used after setName() More... | |
Pol2D | survDataType () const |
void | setSurvDataType (Pol2D typ) |
const char * | comment () const |
BufferString | sipName () const |
void | setSipName (BufferString sipnm) |
void | setComment (const char *s) |
SurveyInfo (const SurveyInfo &) | |
SurveyInfo & | operator= (const SurveyInfo &) |
Pos::IdxPair2Coord & | getBinID2Coord () const |
LatLong2Coord & | getLatlong2Coord () const |
IOPar & | getPars () const |
bool | write (const char *basedir=0) const |
Write to .survey file. More... | |
void | savePars (const char *basedir=0) const |
Write to .defs file. More... | |
void | setRange (const TrcKeyZSampling &, bool) |
const char * | set3Pts (const Coord c[3], const BinID b[2], int xline) |
void | gen3Pts () |
bool | setCoordSystem (Coords::CoordSystem *) |
void | readSavedCoordSystem () const |
Useful after loading plugins. More... | |
void | update3DGeometry () |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=0) | |
NamedObject (const NamedObject *linkedto) | |
NamedObject (const NamedObject &) | |
virtual | ~NamedObject () |
void | setLinkedTo (NamedObject *) |
bool | operator== (const NamedObject &oth) const |
virtual const OD::String & | name () const |
virtual const OD::String & | annotName () const |
virtual void | setName (const char *) |
void | setCleanName (const char *) |
cleans string first More... | |
void | deleteNotify (const CallBack &) |
Public 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... | |
Static Public Member Functions | |
static float | defaultXYtoZScale (Unit, Unit) |
static const char * | sKeyInlRange () |
static const char * | sKeyCrlRange () |
static const char * | sKeyXRange () |
static const char * | sKeyYRange () |
static const char * | sKeyZRange () |
static const char * | sKeyXYInFt () |
static const char * | sKeyDpthInFt () |
Not used by SI, just a UI default. More... | |
static const char * | sKeySurvDataType () |
static const char * | sKeySeismicRefDatum () |
static const char * | sKeySetupFileName () |
static const char * | sKeyBasicSurveyName () |
static const EnumDefImpl< Pol2D > & | Pol2DDef () |
static const char ** | Pol2DNames () |
static bool | parseEnumPol2D (const char *, Pol2D &) |
static bool | parseEnum (const char *, Pol2D &) |
static bool | parseEnum (const IOPar &, const char *, Pol2D &) |
static Pol2D | parseEnumPol2D (const char *) |
static const char * | toString (Pol2D) |
static uiString | toUiString (Pol2D) |
static const char * | getPol2DString (Pol2D) |
static SurveyInfo * | read (const char *survdir) |
static SurveyInfo * | read (const char *path, bool pathisfile) |
static const char * | curSurveyName () |
static void | pushSI (SurveyInfo *) |
static SurveyInfo * | popSI () |
static void | deleteInstance () |
Public Attributes | |
Notifier< SurveyInfo > | workRangeChg |
Protected Member Functions | |
SurveyInfo () | |
void | handleLineRead (const BufferString &, const char *) |
bool | wrapUpRead () |
void | writeSpecLines (ascostream &) const |
void | setTr (Pos::IdxPair2Coord::DirTransform &, const char *) |
void | putTr (const Pos::IdxPair2Coord::DirTransform &, ascostream &, const char *) const |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
BufferString | datadir_ |
BufferString | dirname_ |
ZDomain::Def & | zdef_ |
bool | xyinfeet_ |
bool | depthsinfeet_ |
TrcKeyZSampling & | tkzs_ |
TrcKeyZSampling & | wcs_ |
float | seisrefdatum_ |
IOPar & | pars_ |
RefMan< Coords::CoordSystem > | coordsystem_ |
Threads::AtomicPointer< Survey::Geometry3D > | s3dgeom_ |
Threads::AtomicPointer< Survey::Geometry3D > | work_s3dgeom_ |
Pos::IdxPair2Coord | b2c_ |
LatLong2Coord & | ll2c_ |
BinID | set3binids_ [3] |
Coord | set3coords_ [3] |
Pol2D | survdatatype_ |
bool | survdatatypeknown_ |
BufferString | comment_ |
BufferString | sipnm_ |
Protected Attributes inherited from NamedObject | |
BufferString * | name_ |
NamedObject * | linkedto_ |
CallBackSet * | delnotify_ |
Static Protected Attributes | |
static const char * | Pol2DKeys_ [] |
static ConstPtrMan< EnumDefImpl< Pol2D > > | Pol2DDefinition_ |
Static Private Member Functions | |
static void | setSurveyName (const char *) |
static const char * | surveyFileName () |
Private Attributes | |
Pos::IdxPair2Coord::DirTransform | rdxtr_ |
Pos::IdxPair2Coord::DirTransform | rdytr_ |
Friends | |
class | IOMan |
class | uiSurvey |
class | uiSurveyMap |
class | uiSurveyInfoEditor |
const SurveyInfo & | SI () |
Holds survey general information.
The surveyinfo is the primary source for ranges and steps.It also provides the transformation between inline/xline <-> coordinates and lat/long estimates
Note: the Z range step is only a default. It should not be used further because different cubes/lines have different sample rates.
The ranges are defined for two cubes: the entire survey, and a 'working area'. Normally, you'll want to have the working area.
If you are an expert, and you feel you need more 'power', you may want to look at the bottom part of the class too for some more public functions.
enum SurveyInfo::Pol2D |
enum SurveyInfo::Unit |
SurveyInfo::~SurveyInfo | ( | ) |
|
protected |
SurveyInfo::SurveyInfo | ( | const SurveyInfo & | ) |
float SurveyInfo::angleXCrl | ( | ) | const |
It's the angle between the X-axis (East) and a Crossline
float SurveyInfo::angleXInl | ( | ) | const |
It's the angle between the X-axis (East) and an Inline
|
inline |
void SurveyInfo::checkCrlRange | ( | Interval< int > & | , |
bool | work | ||
) | const |
Makes sure range is inside.
void SurveyInfo::checkInlRange | ( | Interval< int > & | , |
bool | work | ||
) | const |
Makes sure range is inside.
void SurveyInfo::checkZRange | ( | Interval< float > & | , |
bool | work | ||
) | const |
Makes sure range is inside.
|
inline |
float SurveyInfo::crlDistance | ( | ) | const |
StepInterval<int> SurveyInfo::crlRange | ( | bool | work | ) | const |
int SurveyInfo::crlStep | ( | ) | const |
|
static |
Gives a ballpark figure of how to scale XY to make it comparable to Z.
|
inlinestatic |
|
inline |
void SurveyInfo::gen3Pts | ( | ) |
RefMan<Survey::Geometry3D> SurveyInfo::get3DGeometry | ( | bool | work | ) | const |
returns m2
float SurveyInfo::getArea | ( | bool | work | ) | const |
returns m2
|
inline |
RefMan<Coords::CoordSystem> SurveyInfo::getCoordSystem | ( | ) |
ConstRefMan<Coords::CoordSystem> SurveyInfo::getCoordSystem | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
uiString SurveyInfo::getUiXYUnitString | ( | bool | abbrviated = true , |
bool | withparens = true |
||
) | const |
|
inline |
const char* SurveyInfo::getXYUnitString | ( | bool | withparens = true | ) | const |
|
inline |
<Legacy, don't use
|
protected |
bool SurveyInfo::has2D | ( | ) | const |
bool SurveyInfo::has3D | ( | ) | const |
bool SurveyInfo::includes | ( | const BinID & | , |
const float | , | ||
bool | work | ||
) | const |
Returns true when pos is inside survey-range.
float SurveyInfo::inlDistance | ( | ) | const |
distance for one increment
StepInterval<int> SurveyInfo::inlRange | ( | bool | work | ) | const |
int SurveyInfo::inlStep | ( | ) | const |
|
inline |
Don't use. Will be removed.
bool SurveyInfo::isInside | ( | const BinID & | , |
bool | work | ||
) | const |
bool SurveyInfo::isReasonable | ( | const BinID & | ) | const |
Checks if in or near survey.
bool SurveyInfo::isReasonable | ( | const Coord & | ) | const |
Checks if in or near survey.
bool SurveyInfo::isRightHandSystem | ( | ) | const |
Orientation is determined by rotating the inline axis to the crossline axis.
|
inline |
Coord SurveyInfo::maxCoord | ( | bool | work | ) | const |
int SurveyInfo::maxNrTraces | ( | bool | work | ) | const |
Coord SurveyInfo::minCoord | ( | bool | work | ) | const |
SurveyInfo& SurveyInfo::operator= | ( | const SurveyInfo & | ) |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
void SurveyInfo::putZDomain | ( | IOPar & | ) | const |
|
static |
|
static |
void SurveyInfo::readSavedCoordSystem | ( | ) | const |
Useful after loading plugins.
Interval<int> SurveyInfo::reasonableRange | ( | bool | inl | ) | const |
|
inline |
void SurveyInfo::savePars | ( | const char * | basedir = 0 | ) | const |
Write to .defs file.
|
inline |
In depth units (m or ft), positive upward from sea level. Always in meters for time surveys
|
inline |
bool SurveyInfo::setCoordSystem | ( | Coords::CoordSystem * | ) |
|
inline |
void SurveyInfo::setRange | ( | const TrcKeyZSampling & | , |
bool | |||
) |
|
inline |
|
inline |
|
inline |
|
staticprivate |
|
protected |
void SurveyInfo::setWorkRange | ( | const TrcKeyZSampling & | ) |
|
inline |
void SurveyInfo::setZUnit | ( | bool | istime, |
bool | infeet = false |
||
) |
|
inline |
|
inline |
|
inlinestatic |
|
static |
|
static |
Not used by SI, just a UI default.
|
static |
|
static |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
dir = 0 : auto; -1 round downward, 1 round upward
see snap() for direction
void SurveyInfo::snapZ | ( | float & | , |
int | direction = 0 |
||
) | const |
see snap() for direction
|
inline |
|
staticprivate |
|
static |
void SurveyInfo::update3DGeometry | ( | ) |
void SurveyInfo::updateDirName | ( | ) |
May be used after setName()
|
protected |
bool SurveyInfo::write | ( | const char * | basedir = 0 | ) | const |
Write to .survey file.
|
protected |
bool SurveyInfo::xyInFeet | ( | ) | const |
Unit SurveyInfo::xyUnit | ( | ) | const |
Legacy, don't use.
const ZDomain::Def& SurveyInfo::zDomain | ( | ) | const |
|
inline |
|
inline |
Legacy, don't use.
const StepInterval<float>& SurveyInfo::zRange | ( | bool | work | ) | const |
float SurveyInfo::zScale | ( | ) | const |
Gives a ballpark figure of how to scale Z to make it comparable to XY.
float SurveyInfo::zStep | ( | ) | const |
Unit SurveyInfo::zUnit | ( | ) | const |
Legacy, don't use.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
private |
|
private |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
Notifier<SurveyInfo> SurveyInfo::workRangeChg |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019