OpendTect  6.6
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
Pick::Set Class Reference

Set of picks with something in common. More...

Inheritance diagram for Pick::Set:
[legend]

Classes

struct  Disp
 

Public Types

typedef idx_type LocID
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Public Types inherited from TypeSet< Location >
typedef OD::ValVec< Location, int >::idx_type idx_type
 
typedef OD::ValVec< Location, int >::size_type size_type
 
- Public Types inherited from OD::ValVec< T, IT >
typedef impl_type::const_iterator const_iterator
 
typedef const value_typeconst_reference
 
typedef size_type difference_type
 
typedef size_type idx_type
 
typedef impl_type::iterator iterator
 
typedef T object_type
 
typedef value_typereference
 
typedef IT size_type
 
typedef T value_type
 

Public Member Functions

 Set (const char *nm=0)
 
 Set (const Set &)
 
 ~Set ()
 
void addStartIdx (int locidx)
 
void appendWithUndo (const Pick::Location &)
 
void bulkAppendWithUndo (const TypeSet< Pick::Location > &, const TypeSet< int > &indexes)
 
void bulkRemoveWithUndo (const TypeSet< Pick::Location > &, const TypeSet< int > &indexes)
 
void fillDisplayPars (IOPar &) const
 
void fillPar (IOPar &) const
 
LocID find (const TrcKey &) const
 
Locationget (LocID)
 
const Locationget (LocID) const
 
void getBoundingBox (TrcKeyZSampling &) const
 
void getLocations (ObjectSet< const Location > &, int idx=0) const
 
void getLocations (ObjectSet< Location > &, int idx=0)
 
void getPolygon (ODPolygon< double > &, int idx=0) const
 
void getStartStopIdx (int setidx, int &start, int &stop) const
 
Pos::SurvID getSurvID () const
 pre-6.0.1 sets will return the survID of first loc More...
 
float getXYArea (int idx=0) const
 Only for closed polygons. Returns in m^2. More...
 
void insertWithUndo (LocID, const Pick::Location &)
 
bool is2D () const
 default is 3D More...
 
bool isPolygon () const
 
bool isReadOnly () const
 
bool isSizeLargerThanThreshold () const
 
void moveWithUndo (LocID, const Pick::Location &, const Pick::Location &)
 
LocID nearestLocation (const Coord &) const
 
LocID nearestLocation (const Coord3 &, bool ignorez=false) const
 
int nrSets () const
 
Setoperator= (const Set &)
 
void removeSingleWithUndo (LocID)
 
void setReadOnly (bool yn)
 
void setStartIdx (int setidx, int locidx)
 
const TypeSet< int > & startIndexs () const
 
bool useDisplayPars (const IOPar &)
 
bool usePar (const IOPar &)
 
bool writeDisplayPars () const
 
- 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
 
- 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 &)
 
virtual const name_typename () const
 
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 TypeSet< Location >
 TypeSet ()
 
 TypeSet (const Location *t, size_type nr)
 
 TypeSet (const TypeSet &oth)
 
 TypeSet (Location typ)
 
 TypeSet (size_type nr, Location typ)
 
virtual TypeSetclone () const
 
- Public Member Functions inherited from OD::ValVec< T, IT >
virtual ~ValVec ()
 
ValVecadd (const T &)
 
virtual bool addIfNew (const T &)
 
virtual bool append (const T *, size_type)
 
virtual bool append (const ValVec &)
 
virtual T * arr ()
 3rd party access More...
 
virtual const T * arr () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
virtual ValVeccopy (const T *, size_type)
 
virtual ValVeccopy (const ValVec &)
 
size_type count (const T &) const
 
virtual void createDifference (const ValVec &, bool must_preserve_order=false)
 Removes all items present in other set. More...
 
virtual void createIntersection (const ValVec &)
 Only keeps common items. More...
 
virtual void createUnion (const ValVec &)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
virtual void erase ()
 
T & first ()
 
const T & first () const
 
T & get (idx_type)
 
const T & get (idx_type) const
 
virtual size_type getCapacity () const
 
idx_type getIdx (const_iterator it) const
 
idx_type getIdx (iterator it) const
 
virtual idx_type indexOf (T, bool forward=true, idx_type start=-1) const
 
virtual void insert (idx_type, const T &)
 
bool isPresent (const T &) const
 
T & last ()
 
const T & last () const
 
size_type max_size () const
 
virtual void move (idx_type from, idx_type to)
 
virtual int64_t nrItems () const
 
bool operator!= (const ValVec &oth) const
 
ValVecoperator+= (const T &t)
 
ValVecoperator-= (const T &t)
 
ValVecoperator= (const ValVec &oth)
 
bool operator== (const ValVec &) const
 
T & operator[] (idx_type i)
 
const T & operator[] (idx_type i) const
 
pop ()
 
bool push (const T &)
 
virtual void removeRange (idx_type from, idx_type to)
 
virtual void removeSingle (idx_type, bool preserver_order=true)
 
void replace (T, T)
 
virtual void reverse ()
 
void setAll (T)
 
virtual bool setCapacity (size_type sz, bool withmargin)
 
virtual bool setSize (size_type sz, T val=T())
 
size_type size () const
 
void swap (IT, IT)
 
void swap (ValVec &oth)
 
virtual void swapItems (int64_t i1, int64_t i2)
 
virtual void useIndexes (const idx_type *)
 
virtual bool validIdx (int64_t) const
 
std::vector< T > & vec ()
 
const std::vector< T > & vec () const
 
- Public Member Functions inherited from OD::Set
bool isEmpty () const
 
void setEmpty ()
 

Static Public Member Functions

static int getSizeThreshold ()
 
static const char * sKeyConnect ()
 
static const char * sKeyFill ()
 
static const char * sKeyFillColor ()
 
static const char * sKeyMarkerType ()
 
static const char * sKeyThresholdSize ()
 
static const char * sKeyUseThreshold ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Static Public Member Functions inherited from OD::Set
static int maxIdx32 ()
 
static int64_t maxIdx64 ()
 

Public Attributes

Disp disp_
 
IOParpars_
 

Private Types

enum  EventType { Insert , PolygonClose , Remove , Move }
 

Private Member Functions

void addBulkUndoEvent (EventType, const TypeSet< int > &, const TypeSet< Pick::Location > &)
 
void addUndoEvent (EventType, LocID, const Pick::Location &)
 

Private Attributes

bool readonly_
 
TypeSet< int > startidxs_
 

Additional Inherited Members

- Protected Types inherited from OD::ValVec< T, IT >
typedef VectorAccess< T, IT > impl_type
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 
- Protected Member Functions inherited from OD::ValVec< T, IT >
 ValVec ()
 
 ValVec (const T *, size_type nr)
 
 ValVec (const ValVec &)
 
 ValVec (size_type nr, T typ)
 
T * gtArr () const
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 
- Protected Attributes inherited from OD::ValVec< T, IT >
impl_type vec_
 

Detailed Description

Set of picks with something in common.

<>

Member Typedef Documentation

◆ LocID

Member Enumeration Documentation

◆ EventType

enum Pick::Set::EventType
private
Enumerator
Insert 
PolygonClose 
Remove 
Move 

Constructor & Destructor Documentation

◆ Set() [1/2]

Pick::Set::Set ( const char *  nm = 0)

◆ Set() [2/2]

Pick::Set::Set ( const Set )

◆ ~Set()

Pick::Set::~Set ( )
virtual

Reimplemented from OD::Set.

Member Function Documentation

◆ addBulkUndoEvent()

void Pick::Set::addBulkUndoEvent ( EventType  ,
const TypeSet< int > &  ,
const TypeSet< Pick::Location > &   
)
private

◆ addStartIdx()

void Pick::Set::addStartIdx ( int  locidx)

◆ addUndoEvent()

void Pick::Set::addUndoEvent ( EventType  ,
LocID  ,
const Pick::Location  
)
private

◆ appendWithUndo()

void Pick::Set::appendWithUndo ( const Pick::Location )

◆ bulkAppendWithUndo()

void Pick::Set::bulkAppendWithUndo ( const TypeSet< Pick::Location > &  ,
const TypeSet< int > &  indexes 
)

◆ bulkRemoveWithUndo()

void Pick::Set::bulkRemoveWithUndo ( const TypeSet< Pick::Location > &  ,
const TypeSet< int > &  indexes 
)

◆ fillDisplayPars()

void Pick::Set::fillDisplayPars ( IOPar ) const

◆ fillPar()

void Pick::Set::fillPar ( IOPar ) const

◆ find()

LocID Pick::Set::find ( const TrcKey ) const

◆ get() [1/2]

Location& Pick::Set::get ( LocID  )

◆ get() [2/2]

const Location& Pick::Set::get ( LocID  ) const

◆ getBoundingBox()

void Pick::Set::getBoundingBox ( TrcKeyZSampling ) const

◆ getLocations() [1/2]

void Pick::Set::getLocations ( ObjectSet< const Location > &  ,
int  idx = 0 
) const

◆ getLocations() [2/2]

void Pick::Set::getLocations ( ObjectSet< Location > &  ,
int  idx = 0 
)

◆ getPolygon()

void Pick::Set::getPolygon ( ODPolygon< double > &  ,
int  idx = 0 
) const

◆ getSizeThreshold()

static int Pick::Set::getSizeThreshold ( )
static

◆ getStartStopIdx()

void Pick::Set::getStartStopIdx ( int  setidx,
int &  start,
int &  stop 
) const

◆ getSurvID()

Pos::SurvID Pick::Set::getSurvID ( ) const

pre-6.0.1 sets will return the survID of first loc

◆ getXYArea()

float Pick::Set::getXYArea ( int  idx = 0) const

Only for closed polygons. Returns in m^2.

◆ insertWithUndo()

void Pick::Set::insertWithUndo ( LocID  ,
const Pick::Location  
)

◆ is2D()

bool Pick::Set::is2D ( ) const

default is 3D

◆ isPolygon()

bool Pick::Set::isPolygon ( ) const

◆ isReadOnly()

bool Pick::Set::isReadOnly ( ) const
inline

◆ isSizeLargerThanThreshold()

bool Pick::Set::isSizeLargerThanThreshold ( ) const

◆ moveWithUndo()

void Pick::Set::moveWithUndo ( LocID  ,
const Pick::Location ,
const Pick::Location  
)

◆ nearestLocation() [1/2]

LocID Pick::Set::nearestLocation ( const Coord ) const

◆ nearestLocation() [2/2]

LocID Pick::Set::nearestLocation ( const Coord3 ,
bool  ignorez = false 
) const

◆ nrSets()

int Pick::Set::nrSets ( ) const
inline

◆ operator=()

Set& Pick::Set::operator= ( const Set )

◆ removeSingleWithUndo()

void Pick::Set::removeSingleWithUndo ( LocID  )

◆ setReadOnly()

void Pick::Set::setReadOnly ( bool  yn)
inline

◆ setStartIdx()

void Pick::Set::setStartIdx ( int  setidx,
int  locidx 
)

◆ sKeyConnect()

static const char* Pick::Set::sKeyConnect ( )
inlinestatic

◆ sKeyFill()

static const char* Pick::Set::sKeyFill ( )
inlinestatic

◆ sKeyFillColor()

static const char* Pick::Set::sKeyFillColor ( )
inlinestatic

◆ sKeyMarkerType()

static const char* Pick::Set::sKeyMarkerType ( )
inlinestatic

◆ sKeyThresholdSize()

static const char* Pick::Set::sKeyThresholdSize ( )
inlinestatic

◆ sKeyUseThreshold()

static const char* Pick::Set::sKeyUseThreshold ( )
inlinestatic

◆ startIndexs()

const TypeSet<int>& Pick::Set::startIndexs ( ) const
inline

◆ useDisplayPars()

bool Pick::Set::useDisplayPars ( const IOPar )

◆ usePar()

bool Pick::Set::usePar ( const IOPar )

◆ writeDisplayPars()

bool Pick::Set::writeDisplayPars ( ) const

Member Data Documentation

◆ disp_

Disp Pick::Set::disp_

◆ pars_

IOPar& Pick::Set::pars_

◆ readonly_

bool Pick::Set::readonly_
private

◆ startidxs_

TypeSet<int> Pick::Set::startidxs_
private

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