OpendTect  7.0
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | List of all members
PickRetriever Class Referenceabstract
Inheritance diagram for PickRetriever:
[legend]

Public Member Functions

virtual bool enable (const TypeSet< SceneID > *allowedsc)=0
 
virtual NotifierAccessfinished ()=0
 
virtual Pos::GeomID getGeomID () const =0
 
virtual const TypeSet< VisID > & getPickedObjIDs () const =0
 
virtual const Coord3getPos () const =0
 
virtual SceneID getSceneID () const =0
 
virtual int getTrcNr () const =0
 
virtual const ZAxisTransformgetZAxisTransform () const =0
 
virtual void reset ()=0
 
virtual bool success () const =0
 
virtual SceneID unTransformedSceneID () const =0
 
virtual bool waiting () const =0
 
- 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 PickRetrievergetInstance ()
 
static void setInstance (PickRetriever *)
 
- 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 *)
 

Public Attributes

OD::ButtonState buttonstate_
 

Protected Member Functions

 PickRetriever ()
 
virtual ~PickRetriever ()
 
- 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 &)
 

Static Protected Attributes

static RefMan< PickRetrieverinstance_
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

Interface to when an application wants a pick somewere in a 3D environment. There should normally only be one instance in memory, and that should be accessed via PickRetriever::getInstance().

<>

Constructor & Destructor Documentation

◆ PickRetriever()

PickRetriever::PickRetriever ( )
protected

◆ ~PickRetriever()

virtual PickRetriever::~PickRetriever ( )
protectedvirtual

Member Function Documentation

◆ enable()

virtual bool PickRetriever::enable ( const TypeSet< SceneID > *  allowedsc)
pure virtual

Sets the object in a state where it's retrieving picks.

Note
if allowedsc is empty or null, picks are allowed in all scenes.

Implemented in uiVisPickRetriever.

◆ finished()

virtual NotifierAccess* PickRetriever::finished ( )
pure virtual

Triggers when it does not look for pick any longer. The outcome can be retrieved bu success(), getPos() and getSceneID().

Implemented in uiVisPickRetriever.

◆ getGeomID()

virtual Pos::GeomID PickRetriever::getGeomID ( ) const
pure virtual

Implemented in uiVisPickRetriever.

◆ getInstance()

static PickRetriever* PickRetriever::getInstance ( )
static

Main access function.

◆ getPickedObjIDs()

virtual const TypeSet<VisID>& PickRetriever::getPickedObjIDs ( ) const
pure virtual

Implemented in uiVisPickRetriever.

◆ getPos()

virtual const Coord3& PickRetriever::getPos ( ) const
pure virtual

Implemented in uiVisPickRetriever.

◆ getSceneID()

virtual SceneID PickRetriever::getSceneID ( ) const
pure virtual

Implemented in uiVisPickRetriever.

◆ getTrcNr()

virtual int PickRetriever::getTrcNr ( ) const
pure virtual

Implemented in uiVisPickRetriever.

◆ getZAxisTransform()

virtual const ZAxisTransform* PickRetriever::getZAxisTransform ( ) const
pure virtual

Implemented in uiVisPickRetriever.

◆ reset()

virtual void PickRetriever::reset ( )
pure virtual

Implemented in uiVisPickRetriever.

◆ setInstance()

static void PickRetriever::setInstance ( PickRetriever )
static

Should normally only be called from application initiation.

◆ success()

virtual bool PickRetriever::success ( ) const
pure virtual

Implemented in uiVisPickRetriever.

◆ unTransformedSceneID()

virtual SceneID PickRetriever::unTransformedSceneID ( ) const
pure virtual

Implemented in uiVisPickRetriever.

◆ waiting()

virtual bool PickRetriever::waiting ( ) const
pure virtual

Implemented in uiVisPickRetriever.

Member Data Documentation

◆ buttonstate_

OD::ButtonState PickRetriever::buttonstate_

◆ instance_

RefMan<PickRetriever> PickRetriever::instance_
staticprotected

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