OpendTect  7.0
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Attrib::SliceSet Class Reference

Set of attrib slices. More...

Inheritance diagram for Attrib::SliceSet:
[legend]

Public Member Functions

 SliceSet ()
 
Array3D< float > * createArray (int inldim=0, int crlcim=1, int depthdim=2) const
 
void getIdx (int dimnr, int inl, int crl, float z, int &) const
 
void getIdxs (int inl, int crl, float z, int &, int &, int &) const
 
float getValue (int inl, int crl, float z) const
 
- Public Member Functions inherited from ObjectSet< Slice >
 ObjectSet ()
 
 ObjectSet (const ObjectSet &)
 
 ObjectSet (Slice *)
 
 ObjectSet (Slice *, Slice *)
 
 ObjectSet (Slice *, Slice *, Slice *)
 
virtual ~ObjectSet ()
 
ObjectSetadd (Slice *t)
 
bool addIfNew (Slice *)
 
void allowNull (bool yn=true)
 
virtual void append (const ObjectSet &)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
ObjectSetclone () const override
 
virtual void copy (const ObjectSet &)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void erase () override
 
Slice * first ()
 
const Slice * first () const
 
virtual Slice * get (const Slice *) const
 check & unconst More...
 
virtual Slice * get (idx_type)
 
virtual const Slice * get (idx_type) const
 
idx_type getIdx (const_iterator it) const
 
idx_type getIdx (iterator it) const
 
virtual idx_type indexOf (const Slice *) const
 
virtual void insertAfter (Slice *newptr, idx_type)
 
virtual void insertAt (Slice *newptr, idx_type)
 
virtual bool isManaged () const
 
virtual bool isPresent (const Slice *) const
 
Slice * last ()
 
const Slice * last () const
 
size_type max_size () const
 
std::int64_t nrItems () const override
 
bool nullAllowed () const
 
bool operator!= (const ObjectSet &oth) const
 
ObjectSetoperator+= (Slice *t)
 
virtual ObjectSetoperator-= (Slice *)
 
ObjectSetoperator= (const ObjectSet &)
 
bool operator== (const ObjectSet &) const
 
const Slice * operator[] (const Slice *t) const
 
Slice * operator[] (idx_type i)
 
const Slice * operator[] (idx_type i) const
 
void plainErase ()
 
virtual Slice * pop ()
 
void push (Slice *t)
 
virtual void removeRange (idx_type from, idx_type to)
 
virtual Slice * removeSingle (idx_type, bool keep_order=true)
 
virtual Slice * replace (idx_type, Slice *)
 
void reverse () override
 
void setNullAllowed (bool yn=true)
 
size_type size () const
 
void swap (idx_type, idx_type)
 
void swap (ObjectSet &oth)
 
void swapItems (std::int64_t i1, std::int64_t i2) override
 
void useIndexes (const idx_type *)
 
bool validIdx (std::int64_t) const override
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 
- 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
 

Public Attributes

TrcKeyZSampling::Dir direction_
 
TrcKeyZSampling sampling_
 

Protected Member Functions

 ~SliceSet ()
 
- Protected Member Functions inherited from ObjectSet< Slice >
virtual ObjectSetdoAdd (Slice *)
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Additional Inherited Members

- Public Types inherited from ObjectSet< Slice >
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 Slice object_type
 
typedef value_typereference
 
typedef int size_type
 
typedef Slice * value_type
 
- Static Public Member Functions inherited from OD::Set
static std::int32_t maxIdx32 ()
 
static std::int64_t maxIdx64 ()
 
- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 
- Protected Types inherited from ObjectSet< Slice >
typedef VectorAccess< Slice *, size_typeimpl_type
 
- Protected Attributes inherited from ObjectSet< Slice >
bool allow0_
 
impl_type vec_
 

Detailed Description

Set of attrib slices.

The two array2d directions shall be filled following the TrcKeyZSampling convention. The slices will be in order of increasing inl, crl or Z.

Slices can be null!

<>

Constructor & Destructor Documentation

◆ SliceSet()

Attrib::SliceSet::SliceSet ( )

◆ ~SliceSet()

Attrib::SliceSet::~SliceSet ( )
protected

Member Function Documentation

◆ createArray()

Array3D<float>* Attrib::SliceSet::createArray ( int  inldim = 0,
int  crlcim = 1,
int  depthdim = 2 
) const

Makes an array where the dims are as specified

◆ getIdx()

void Attrib::SliceSet::getIdx ( int  dimnr,
int  inl,
int  crl,
float  z,
int &   
) const

◆ getIdxs()

void Attrib::SliceSet::getIdxs ( int  inl,
int  crl,
float  z,
int &  ,
int &  ,
int &   
) const

◆ getValue()

float Attrib::SliceSet::getValue ( int  inl,
int  crl,
float  z 
) const

Member Data Documentation

◆ direction_

TrcKeyZSampling::Dir Attrib::SliceSet::direction_

◆ sampling_

TrcKeyZSampling Attrib::SliceSet::sampling_

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