OpendTect 8.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
PosInfo::CubeData Class Reference

Position info for an entire 3D cube. The LineData's are not sorted. More...

#include <posinfo.h>

Inheritance diagram for PosInfo::CubeData:
[legend]

Public Member Functions

 CubeData ()
 
 CubeData (const BinID &start, const BinID &stop, const BinID &step)
 
 CubeData (const CubeData &)
 
 CubeData (const TrcKeySampling &)
 
 ~CubeData ()
 
BinID binID (const CubeDataPos &) const
 
CubeDataPos cubeDataPos (const BinID &) const
 
void generate (BinID start, BinID stop, BinID step, bool allowreversed=false)
 
bool getCrlRange (StepInterval< int > &, bool sorted=true) const
 Returns whether fully regular.
 
bool getInlRange (StepInterval< int > &, bool sorted=true) const
 Returns whether fully regular.
 
void getRanges (Interval< int > &inl, Interval< int > &crl) const
 
bool haveCrlStepInfo () const
 
bool haveInlStepInfo () const
 
bool includes (const BinID &) const
 
bool includes (int inl, int crl) const
 
int indexOf (const LineData *l) const override
 
virtual int indexOf (int inl, int *newidx=0) const
 newidx only filled if not null and -1 is returned
 
bool isCrlReversed () const
 
bool isFullyRectAndReg () const
 
bool isValid (const BinID &) const
 
bool isValid (const CubeDataPos &) const
 
bool isValid (od_int64 globalidx, const TrcKeySampling &) const
 
void limitTo (const TrcKeySampling &)
 
void merge (const CubeData &, bool incl)
 incl=union, !incl=intersection
 
CubeDataoperator= (const CubeData &cd)
 
bool read (od_istream &, bool asc)
 
bool toNext (CubeDataPos &) const
 
int totalSize () const
 
int totalSizeInside (const TrcKeySampling &hrg) const
 
bool write (od_ostream &, bool asc) const
 
- Public Member Functions inherited from ManagedObjectSet< LineData >
 ManagedObjectSet ()
 
 ManagedObjectSet (const ManagedObjectSet &)=delete
 
 ManagedObjectSet (const ObjectSet< LineData > &)
 
void append (const ManagedObjectSet< LineData > &)=delete
 
void append (const ObjectSet< LineData > &os) override
 
void copy (const ObjectSet< LineData > &os) override
 
ManagedObjectSetoperator= (const ManagedObjectSet &)=delete
 
ManagedObjectSet< LineData > & operator= (const ObjectSet< LineData > &os)
 
- Public Member Functions inherited from ManagedObjectSetBase< T >
void erase () override
 
bool isManaged () const override
 
ManagedObjectSetBase< T > & operator-= (T *) override
 
T * pop () override
 
virtual T * removeAndTake (idx_type, bool kporder=true)
 
void removeRange (idx_type, idx_type) override
 
T * removeSingle (idx_type, bool kporder=true) override
 
T * replace (idx_type, T *) override
 
- Public Member Functions inherited from ObjectSet< T >
 ObjectSet ()
 
 ObjectSet (const ObjectSet &)
 
 ObjectSet (T *)
 
 ObjectSet (T *, T *)
 
 ObjectSet (T *, T *, T *)
 
virtual ~ObjectSet ()
 
ObjectSetadd (T *t)
 
bool addIfNew (T *)
 
void allowNull (bool yn=true)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
ObjectSetclone () const override
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void erase () override
 
T * first ()
 
const T * first () const
 
virtual T * get (const T *) const
 check & unconst
 
virtual T * get (idx_type)
 
virtual 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 (const T *) const
 
virtual void insertAfter (T *newptr, idx_type)
 
virtual void insertAt (T *newptr, idx_type)
 
virtual bool isPresent (const T *) const
 
T * last ()
 
const T * last () const
 
size_type max_size () const
 
od_int64 nrItems () const override
 
bool nullAllowed () const
 
bool operator!= (const ObjectSet &oth) const
 
ObjectSetoperator+= (T *t)
 
ObjectSetoperator= (const ObjectSet &)
 
bool operator== (const ObjectSet &) const
 
const T * operator[] (const T *t) const
 
T * operator[] (idx_type i)
 
const T * operator[] (idx_type i) const
 
void plainErase ()
 
void push (T *t)
 
void reverse () override
 
virtual bool setCapacity (size_type, bool withmargin)
 Allocates mem only, no size() change.
 
void setNullAllowed (bool yn=true)
 
virtual bool setSize (size_type)
 
size_type size () const
 
void swap (idx_type, idx_type)
 
void swap (ObjectSet &oth)
 
void swapItems (od_int64 i1, od_int64 i2) override
 
void useIndexes (const idx_type *)
 
bool validIdx (od_int64) const override
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Protected Member Functions

void copyContents (const CubeData &)
 
- Protected Member Functions inherited from ManagedObjectSetBase< T >
 ManagedObjectSetBase (PtrFunc delfunc)
 
 ~ManagedObjectSetBase ()
 
- Protected Member Functions inherited from ObjectSet< T >
virtual ObjectSetdoAdd (T *)
 

Additional Inherited Members

- Public Types inherited from ManagedObjectSet< LineData >
typedef ObjectSet< LineData >::idx_type idx_type
 
typedef ObjectSet< LineData >::size_type size_type
 
- Public Types inherited from ManagedObjectSetBase< T >
typedef ObjectSet< T >::idx_type idx_type
 
typedef ObjectSet< T >::size_type size_type
 
- Public Types inherited from ObjectSet< T >
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 int size_type
 
typedef T * value_type
 
- Static Public Member Functions inherited from OD::Set
static od_int32 maxIdx32 ()
 
static od_int64 maxIdx64 ()
 
- Protected Types inherited from ManagedObjectSetBase< T >
typedef void(* PtrFunc) (T *ptr)
 
- Protected Types inherited from ObjectSet< T >
typedef VectorAccess< T *, size_typeimpl_type
 
- Protected Attributes inherited from ObjectSet< T >
bool allow0_ = false
 
impl_type vec_
 

Detailed Description

Position info for an entire 3D cube. The LineData's are not sorted.

<>

Constructor & Destructor Documentation

◆ CubeData() [1/4]

PosInfo::CubeData::CubeData ( )

◆ CubeData() [2/4]

PosInfo::CubeData::CubeData ( const BinID & start,
const BinID & stop,
const BinID & step )

◆ CubeData() [3/4]

PosInfo::CubeData::CubeData ( const TrcKeySampling & )

◆ CubeData() [4/4]

PosInfo::CubeData::CubeData ( const CubeData & )

◆ ~CubeData()

PosInfo::CubeData::~CubeData ( )

Member Function Documentation

◆ binID()

BinID PosInfo::CubeData::binID ( const CubeDataPos & ) const

◆ copyContents()

void PosInfo::CubeData::copyContents ( const CubeData & )
protected

◆ cubeDataPos()

CubeDataPos PosInfo::CubeData::cubeDataPos ( const BinID & ) const

◆ generate()

void PosInfo::CubeData::generate ( BinID start,
BinID stop,
BinID step,
bool allowreversed = false )

◆ getCrlRange()

bool PosInfo::CubeData::getCrlRange ( StepInterval< int > & ,
bool sorted = true ) const

Returns whether fully regular.

◆ getInlRange()

bool PosInfo::CubeData::getInlRange ( StepInterval< int > & ,
bool sorted = true ) const

Returns whether fully regular.

◆ getRanges()

void PosInfo::CubeData::getRanges ( Interval< int > & inl,
Interval< int > & crl ) const

◆ haveCrlStepInfo()

bool PosInfo::CubeData::haveCrlStepInfo ( ) const

◆ haveInlStepInfo()

bool PosInfo::CubeData::haveInlStepInfo ( ) const
inline

◆ includes() [1/2]

bool PosInfo::CubeData::includes ( const BinID & ) const

◆ includes() [2/2]

bool PosInfo::CubeData::includes ( int inl,
int crl ) const

◆ indexOf() [1/2]

int PosInfo::CubeData::indexOf ( const LineData * l) const
inlineoverride

◆ indexOf() [2/2]

virtual int PosInfo::CubeData::indexOf ( int inl,
int * newidx = 0 ) const
virtual

newidx only filled if not null and -1 is returned

Reimplemented in PosInfo::SortedCubeData.

◆ isCrlReversed()

bool PosInfo::CubeData::isCrlReversed ( ) const

◆ isFullyRectAndReg()

bool PosInfo::CubeData::isFullyRectAndReg ( ) const

◆ isValid() [1/3]

bool PosInfo::CubeData::isValid ( const BinID & ) const

◆ isValid() [2/3]

bool PosInfo::CubeData::isValid ( const CubeDataPos & ) const

◆ isValid() [3/3]

bool PosInfo::CubeData::isValid ( od_int64 globalidx,
const TrcKeySampling &  ) const

◆ limitTo()

void PosInfo::CubeData::limitTo ( const TrcKeySampling & )

◆ merge()

void PosInfo::CubeData::merge ( const CubeData & ,
bool incl )

incl=union, !incl=intersection

◆ operator=()

CubeData & PosInfo::CubeData::operator= ( const CubeData & cd)

◆ read()

bool PosInfo::CubeData::read ( od_istream & ,
bool asc )

◆ toNext()

bool PosInfo::CubeData::toNext ( CubeDataPos & ) const

◆ totalSize()

int PosInfo::CubeData::totalSize ( ) const

◆ totalSizeInside()

int PosInfo::CubeData::totalSizeInside ( const TrcKeySampling & hrg) const

Only take positions that are inside hrg.

◆ write()

bool PosInfo::CubeData::write ( od_ostream & ,
bool asc ) const

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