OpendTect  6.3
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
Vel::Picks Class Reference
Inheritance diagram for Vel::Picks:
[legend]

Public Types

enum  PickType {
  RMO, RMS, Delta, Epsilon,
  Eta
}
 

Public Member Functions

 Picks ()
 
 Picks (bool zit)
 
 mDeclareEnumUtils (PickType) PickType pickType() const
 
void setPickType (PickType, bool resetcolor)
 
const char * zDomain () const
 
bool setColor (const Color &, bool savedefault)
 
const ColorgetColor () const
 
bool getDefaultColor (Color &) const
 
Undoundo ()
 
void removeAll (bool undo=true, bool interactionend=true)
 
bool isEmpty () const
 
void setSnappingInterval (const StepInterval< float > &)
 
const StepInterval< float > & getSnappingInterval () const
 
RowCol find (const BinID &, const Pick &) const
 
RowCol set (const BinID &, const Pick &, bool undo=true, bool interactionend=true)
 
void set (const RowCol &, const Pick &, bool undo=true, bool interactionend=true)
 
int get (const BinID &, TypeSet< float > *depths, TypeSet< float > *vals, TypeSet< RowCol > *, TypeSet< EM::ObjectID > *, bool interpolatehors) const
 
void get (const BinID &, TypeSet< Pick > &, bool interpolatehors, bool normalizerefoffset) const
 
bool get (const RowCol &, BinID &, Pick &)
 
void get (const EM::ObjectID &, TypeSet< RowCol > &) const
 
void remove (const RowCol &, bool undo=true, bool interactionend=true)
 
const MultiDimStorage< Pick > & getAll () const
 
bool isChanged () const
 
void resetChangedFlag ()
 
bool store (const IOObj *)
 
const DBKeystorageID () const
 
bool zIsTime () const
 
Smoother1D< float > * getSmoother ()
 
const Smoother1D< float > * getSmoother () const
 
void setSmoother (Smoother1D< float > *)
 Becomes mine. More...
 
const uiString errMsg () const
 
void setAll (float vel, bool undo=true)
 
float refOffset () const
 
void setReferenceOffset (float n)
 
const DBKeygatherID () const
 
void setGatherID (const DBKey &)
 
void addHorizon (const DBKey &, bool addzeroonfail=false)
 
void addHorizon (EM::Horizon3D *)
 
int nrHorizons () const
 
EM::ObjectID getHorizonID (int) const
 
void removeHorizon (EM::ObjectID)
 
EM::Horizon3DgetHorizon (EM::ObjectID)
 
const EM::Horizon3DgetHorizon (EM::ObjectID) const
 
bool interpolateVelocity (EM::ObjectID, float searchradius, BinIDValueSet &) const
 
char getHorizonStatus (const BinID &) 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 detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 

Static Public Member Functions

static const char * sKeyIsTime ()
 
static const IOObjContextgetStorageContext ()
 
static void setContextPickType (IOObjContext &, PickType)
 
static const char * sKeyVelocityPicks ()
 
static const char * sKeyRefOffset ()
 
static const char * sKeyGatherID ()
 
static const char * sKeyNrHorizons ()
 
static const char * sKeyHorizonPrefix ()
 
static const char * sKeyPickType ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Public Attributes

CNotifier< Picks, const BinID & > change
 
CNotifier< Picks, const BinID & > changelate
 

Protected Member Functions

 ~Picks ()
 
void getColorKey (BufferString &) const
 
void removeHorizons ()
 
void fillIOObjPar (IOPar &) const
 
bool useIOObjPar (const IOPar &)
 
float normalizeRMO (float depth, float rmo, float offset) const
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
void horizonChangeCB (CallBacker *)
 
bool load (const IOObj *)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Protected Attributes

float refoffset_
 
DBKey gatherid_
 
StepInterval< float > snapper_
 
DBKey storageid_
 
MultiDimStorage< Pickpicks_
 
Undoundo_
 
uiString errmsg_
 
Smoother1D< float > * smoother_
 
ObjectSet< EM::Horizon3Dhorizons_
 
PickType picktype_
 
Color color_
 
bool changed_
 
bool zit_
 

Friends

class PicksMgr
 

Detailed Description

Holds picks that the user has done, typically in a semblance plot.

Member Enumeration Documentation

Enumerator
RMO 
RMS 
Delta 
Epsilon 
Eta 

Constructor & Destructor Documentation

Vel::Picks::Picks ( )
Vel::Picks::Picks ( bool  zit)
Vel::Picks::~Picks ( )
protected

Member Function Documentation

void Vel::Picks::addHorizon ( const DBKey ,
bool  addzeroonfail = false 
)
void Vel::Picks::addHorizon ( EM::Horizon3D )
const uiString Vel::Picks::errMsg ( ) const
void Vel::Picks::fillIOObjPar ( IOPar ) const
protected
void Vel::Picks::fillPar ( IOPar ) const
protected
RowCol Vel::Picks::find ( const BinID ,
const Pick  
) const
const DBKey& Vel::Picks::gatherID ( ) const
int Vel::Picks::get ( const BinID ,
TypeSet< float > *  depths,
TypeSet< float > *  vals,
TypeSet< RowCol > *  ,
TypeSet< EM::ObjectID > *  ,
bool  interpolatehors 
) const
Returns
number of picks
void Vel::Picks::get ( const BinID ,
TypeSet< Pick > &  ,
bool  interpolatehors,
bool  normalizerefoffset 
) const
Returns
number of picks
bool Vel::Picks::get ( const RowCol ,
BinID ,
Pick  
)
void Vel::Picks::get ( const EM::ObjectID ,
TypeSet< RowCol > &   
) const
const MultiDimStorage<Pick>& Vel::Picks::getAll ( ) const
inline
const Color& Vel::Picks::getColor ( ) const
inline
void Vel::Picks::getColorKey ( BufferString ) const
protected
bool Vel::Picks::getDefaultColor ( Color ) const
EM::Horizon3D* Vel::Picks::getHorizon ( EM::ObjectID  )
const EM::Horizon3D* Vel::Picks::getHorizon ( EM::ObjectID  ) const
EM::ObjectID Vel::Picks::getHorizonID ( int  ) const
char Vel::Picks::getHorizonStatus ( const BinID ) const
Return values
0no defined hors.
1some defined, some undefined.
2all defined.
Smoother1D<float>* Vel::Picks::getSmoother ( )
inline
const Smoother1D<float>* Vel::Picks::getSmoother ( ) const
inline
const StepInterval<float>& Vel::Picks::getSnappingInterval ( ) const
inline
static const IOObjContext& Vel::Picks::getStorageContext ( )
static
void Vel::Picks::horizonChangeCB ( CallBacker )
protected
bool Vel::Picks::interpolateVelocity ( EM::ObjectID  ,
float  searchradius,
BinIDValueSet  
) const

Interpolates vel at all locations in the valset. First value in valset will be horizon depth, second will be velocity.

bool Vel::Picks::isChanged ( ) const
bool Vel::Picks::isEmpty ( ) const
bool Vel::Picks::load ( const IOObj )
protected
Vel::Picks::mDeclareEnumUtils ( PickType  ) const
float Vel::Picks::normalizeRMO ( float  depth,
float  rmo,
float  offset 
) const
protected

Given an rmo at a certain offset, what is the rmo at refoffset_.

int Vel::Picks::nrHorizons ( ) const
float Vel::Picks::refOffset ( ) const
inline
void Vel::Picks::remove ( const RowCol ,
bool  undo = true,
bool  interactionend = true 
)
void Vel::Picks::removeAll ( bool  undo = true,
bool  interactionend = true 
)
void Vel::Picks::removeHorizon ( EM::ObjectID  )
void Vel::Picks::removeHorizons ( )
protected
void Vel::Picks::resetChangedFlag ( )
inline
RowCol Vel::Picks::set ( const BinID ,
const Pick ,
bool  undo = true,
bool  interactionend = true 
)
void Vel::Picks::set ( const RowCol ,
const Pick ,
bool  undo = true,
bool  interactionend = true 
)
void Vel::Picks::setAll ( float  vel,
bool  undo = true 
)
bool Vel::Picks::setColor ( const Color ,
bool  savedefault 
)
Returns
false if savedefault failed.
static void Vel::Picks::setContextPickType ( IOObjContext ,
PickType   
)
static
void Vel::Picks::setGatherID ( const DBKey )
void Vel::Picks::setPickType ( PickType  ,
bool  resetcolor 
)
void Vel::Picks::setReferenceOffset ( float  n)
void Vel::Picks::setSmoother ( Smoother1D< float > *  )

Becomes mine.

void Vel::Picks::setSnappingInterval ( const StepInterval< float > &  )
static const char* Vel::Picks::sKeyGatherID ( )
static
static const char* Vel::Picks::sKeyHorizonPrefix ( )
static
static const char* Vel::Picks::sKeyIsTime ( )
static
static const char* Vel::Picks::sKeyNrHorizons ( )
static
static const char* Vel::Picks::sKeyPickType ( )
static
static const char* Vel::Picks::sKeyRefOffset ( )
static
static const char* Vel::Picks::sKeyVelocityPicks ( )
static
const DBKey& Vel::Picks::storageID ( ) const
bool Vel::Picks::store ( const IOObj )

ioobj is not transferred

Undo& Vel::Picks::undo ( )
bool Vel::Picks::useIOObjPar ( const IOPar )
protected
bool Vel::Picks::usePar ( const IOPar )
protected
const char* Vel::Picks::zDomain ( ) const
bool Vel::Picks::zIsTime ( ) const
inline

Friends And Related Function Documentation

friend class PicksMgr
friend

Member Data Documentation

CNotifier<Picks,const BinID&> Vel::Picks::change
bool Vel::Picks::changed_
protected
CNotifier<Picks,const BinID&> Vel::Picks::changelate

Triggers after pickchange.

Color Vel::Picks::color_
protected
uiString Vel::Picks::errmsg_
protected
DBKey Vel::Picks::gatherid_
protected
ObjectSet<EM::Horizon3D> Vel::Picks::horizons_
protected
MultiDimStorage<Pick> Vel::Picks::picks_
protected
PickType Vel::Picks::picktype_
protected
float Vel::Picks::refoffset_
protected
Smoother1D<float>* Vel::Picks::smoother_
protected
StepInterval<float> Vel::Picks::snapper_
protected
DBKey Vel::Picks::storageid_
protected
Undo* Vel::Picks::undo_
protected
bool Vel::Picks::zit_
protected

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