OpendTect-6_4  6.4
Classes | 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 Member Functions

 Set (const char *nm=0)
 
 Set (const Set &)
 
 ~Set ()
 
Setoperator= (const Set &)
 
bool is2D () const
 default is 3D More...
 
Pos::SurvID getSurvID () const
 pre-6.0.1 sets will return the survID of first loc More...
 
bool isPolygon () const
 
void getPolygon (ODPolygon< double > &, int idx=0) const
 
void getLocations (ObjectSet< Location > &, int idx=0)
 
void getLocations (ObjectSet< const Location > &, int idx=0) const
 
float getXYArea (int idx=0) const
 Only for closed polygons. Returns in m^2. More...
 
size_type find (const TrcKey &) const
 
size_type nearestLocation (const Coord &) const
 
size_type nearestLocation (const Coord3 &, bool ignorez=false) const
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
void fillDisplayPars (IOPar &) const
 
bool useDisplayPars (const IOPar &)
 
bool writeDisplayPars () const
 
void removeSingleWithUndo (size_type idx)
 
void insertWithUndo (size_type, const Pick::Location &)
 
void appendWithUndo (const Pick::Location &)
 
void moveWithUndo (size_type, const Pick::Location &, const Pick::Location &)
 
Locationget (size_type idx)
 
const Locationget (size_type idx) const
 
void setReadOnly (bool yn)
 
bool isReadOnly () const
 
void addStartIdx (int locidx)
 
void setStartIdx (int setidx, int locidx)
 
int nrSets () const
 
void getStartStopIdx (int setidx, int &start, int &stop) const
 
const TypeSet< int > & startIndexs () const
 
bool isSizeLargerThanThreshold () const
 
- 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::Stringname () const
 
virtual const OD::StringannotName () 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...
 
- Public Member Functions inherited from TypeSet< Location >
 TypeSet ()
 
 TypeSet (int nr, Location typ)
 
 TypeSet (const Location *t, int nr)
 
 TypeSet (const TypeSet< Location > &t)
 
- Public Member Functions inherited from TypeSetBase< Location, int >
virtual ~TypeSetBase ()
 
TypeSetBase< Location, int > & operator= (const TypeSetBase< Location, int > &ts)
 
size_type size () const
 
virtual int64_t nrItems () const
 
virtual bool setSize (size_type, Location val=Location())
 
virtual bool setCapacity (size_type sz, bool withmargin)
 
virtual size_type getCapacity () const
 
void setAll (Location)
 
void replace (Location, Location)
 
Location & operator[] (size_type)
 
const Location & operator[] (size_type) const
 
Location & first ()
 
const Location & first () const
 
Location & last ()
 
const Location & last () const
 
virtual bool validIdx (int64_t) const
 
virtual size_type indexOf (Location, bool forward=true, size_type start=-1) const
 
bool isPresent (const Location &) const
 
size_type count (const Location &) const
 
TypeSetBase< Location, int > & add (const Location &)
 
virtual void insert (size_type, const Location &)
 
bool push (const Location &)
 
Location pop ()
 
TypeSetBase< Location, int > & operator+= (const Location &t)
 
virtual bool append (const Location *, size_type)
 
virtual bool append (const TypeSetBase< Location, int > &)
 
virtual bool addIfNew (const Location &)
 
virtual TypeSetBase< Location, int > & copy (const Location *, size_type)
 
virtual TypeSetBase< Location, int > & copy (const TypeSetBase< Location, int > &)
 
virtual void createUnion (const TypeSetBase< Location, int > &)
 
virtual void createIntersection (const TypeSetBase< Location, int > &)
 Only keeps common items. More...
 
virtual void createDifference (const TypeSetBase< Location, int > &, bool must_preserve_order=false)
 Removes all items present in other set. More...
 
virtual void swap (int64_t, int64_t)
 
virtual void move (size_type from, size_type to)
 
virtual void getReOrdered (const size_type *, TypeSetBase< Location, int > &)
 Fills as per the given array of indexes. More...
 
virtual void reverse ()
 
virtual void erase ()
 
virtual void removeSingle (size_type, bool preserver_order=true)
 
TypeSetBase< Location, int > & operator-= (const Location &)
 
virtual void removeRange (size_type from, size_type to)
 
virtual Location * arr ()
 3rd party access More...
 
virtual const Location * arr () const
 
std::vector< Location > & vec ()
 
const std::vector< Location > & vec () const
 
- Public Member Functions inherited from OD::Set
bool isEmpty () const
 
void setEmpty ()
 

Static Public Member Functions

static const char * sKeyMarkerType ()
 
static const char * sKeyThresholdSize ()
 
static const char * sKeyUseThreshold ()
 
static int getSizeThreshold ()
 

Public Attributes

Disp disp_
 
IOParpars_
 

Private Types

enum  EventType { Insert, PolygonClose, Remove, Move }
 

Private Member Functions

void addUndoEvent (EventType, size_type, const Pick::Location &)
 

Private Attributes

TypeSet< int > startidxs_
 
bool readonly_
 

Additional Inherited Members

- Public Types inherited from TypeSetBase< Location, int >
typedef int size_type
 
typedef Location object_type
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 
- Protected Member Functions inherited from TypeSetBase< Location, int >
 TypeSetBase ()
 
 TypeSetBase (size_type nr, Location typ)
 
 TypeSetBase (const Location *, size_type nr)
 
 TypeSetBase (const TypeSetBase< Location, size_type > &)
 
virtual Location * gtArr () const
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 
- Protected Attributes inherited from TypeSetBase< Location, int >
VectorAccess< Location, int > vec_
 

Detailed Description

Set of picks with something in common.

Member Enumeration Documentation

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

Constructor & Destructor Documentation

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

Reimplemented from OD::Set.

Member Function Documentation

void Pick::Set::addStartIdx ( int  locidx)
void Pick::Set::addUndoEvent ( EventType  ,
size_type  ,
const Pick::Location  
)
private
void Pick::Set::appendWithUndo ( const Pick::Location )
void Pick::Set::fillDisplayPars ( IOPar ) const
void Pick::Set::fillPar ( IOPar ) const
size_type Pick::Set::find ( const TrcKey ) const
Location& Pick::Set::get ( size_type  idx)
inline
const Location& Pick::Set::get ( size_type  idx) const
inline
void Pick::Set::getLocations ( ObjectSet< Location > &  ,
int  idx = 0 
)
void Pick::Set::getLocations ( ObjectSet< const Location > &  ,
int  idx = 0 
) const
void Pick::Set::getPolygon ( ODPolygon< double > &  ,
int  idx = 0 
) const
static int Pick::Set::getSizeThreshold ( )
static
void Pick::Set::getStartStopIdx ( int  setidx,
int &  start,
int &  stop 
) const
Pos::SurvID Pick::Set::getSurvID ( ) const

pre-6.0.1 sets will return the survID of first loc

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

Only for closed polygons. Returns in m^2.

void Pick::Set::insertWithUndo ( size_type  ,
const Pick::Location  
)
bool Pick::Set::is2D ( ) const

default is 3D

bool Pick::Set::isPolygon ( ) const
bool Pick::Set::isReadOnly ( ) const
inline
bool Pick::Set::isSizeLargerThanThreshold ( ) const
void Pick::Set::moveWithUndo ( size_type  ,
const Pick::Location ,
const Pick::Location  
)
size_type Pick::Set::nearestLocation ( const Coord ) const
size_type Pick::Set::nearestLocation ( const Coord3 ,
bool  ignorez = false 
) const
int Pick::Set::nrSets ( ) const
inline
Set& Pick::Set::operator= ( const Set )
void Pick::Set::removeSingleWithUndo ( size_type  idx)
void Pick::Set::setReadOnly ( bool  yn)
inline
void Pick::Set::setStartIdx ( int  setidx,
int  locidx 
)
static const char* Pick::Set::sKeyMarkerType ( )
inlinestatic
static const char* Pick::Set::sKeyThresholdSize ( )
inlinestatic
static const char* Pick::Set::sKeyUseThreshold ( )
inlinestatic
const TypeSet<int>& Pick::Set::startIndexs ( ) const
inline
bool Pick::Set::useDisplayPars ( const IOPar )
bool Pick::Set::usePar ( const IOPar )
bool Pick::Set::writeDisplayPars ( ) const

Member Data Documentation

Disp Pick::Set::disp_
IOPar& Pick::Set::pars_
bool Pick::Set::readonly_
private
TypeSet<int> Pick::Set::startidxs_
private

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