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

Slice containing attribute values. More...

Inheritance diagram for Attrib::Slice:
[legend]

Public Member Functions

 Slice (int nrows, int ncols, float udfval=0)
 
void setUndefValue (float udfval, bool initdata=false)
 
float undefValue () const
 
- Public Member Functions inherited from Array2DImpl< float >
 Array2DImpl (const Array2D< float > &)
 
 Array2DImpl (const Array2DImpl< float > &)
 
 Array2DImpl (const Array2DInfo &)
 
 Array2DImpl (int sz0, int sz1)
 
 ~Array2DImpl ()
 
bool canSetInfo () const override
 
bool canSetStorage () const override
 
void copyFrom (const Array2D< float > &)
 
float get (int, int) const override
 
const float ** get2DData () const override
 
float ** get2DData () override
 
const Array2DInfoinfo () const override
 
bool isOK () const override
 
Array2DImpl< float > & operator= (const Array2D< float > &ai)
 
Array2DImpl< float > & operator= (const Array2DImpl< float > &ai)
 
void set (int, int, float) override
 
bool setInfo (const ArrayNDInfo &) override
 
bool setSize (int, int)
 
bool setStorage (ValueSeries< float > *) override
 
- Public Member Functions inherited from Array2D< float >
float getND (const int *pos) const override
 
virtual void set (int, int, float)=0
 
void setND (const int *pos, float v) override
 
- Public Member Functions inherited from ArrayND< float >
virtual ~ArrayND ()
 
virtual bool canChangeNrDims () const
 
virtual float * get1D (const int *)
 
virtual const float * get1D (const int *) const
 
virtual int get1DDim () const
 
virtual void getAll (float *ptr) const
 
virtual void getAll (ValueSeries< float > &vs) const
 
float * getData ()
 
const float * getData () const
 
int getSize (int dim) const
 
ValueSeries< float > * getStorage ()
 
const ValueSeries< float > * getStorage () const
 
virtual bool isEmpty () const
 
virtual bool isSettable () const
 
int nrDims () const
 
virtual void setAll (float)
 
virtual bool setStorage (ValueSeries< float > *s)
 
std::uint64_t totalSize () const
 
bool validPos (int *pos) 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
 

Protected Member Functions

 ~Slice ()
 
- Protected Member Functions inherited from Array2DImpl< float >
const float * getData_ () const override
 
const ValueSeries< float > * getStorage_ () const override
 
std::int64_t getStorageSize () const override
 
void updateCachePointers ()
 
void updateStorage ()
 
- Protected Member Functions inherited from ArrayImplBase< T >
 ArrayImplBase ()
 
 ~ArrayImplBase ()
 
bool getDataFrom (const ArrayND< T > &templ)
 
bool setStorageInternal (ValueSeries< T > *)
 
bool setStorageNoResize (ValueSeries< T > *)
 
bool storageOK () const
 
bool updateStorageSize ()
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Protected Attributes

float udfval_
 
- Protected Attributes inherited from Array2DImpl< float >
Array2DInfoImpl in_
 
float ** ptr2d_
 
- Protected Attributes inherited from ArrayImplBase< T >
T * ptr_ = nullptr
 
ValueSeries< T > * stor_ = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Detailed Description

Slice containing attribute values.

The sliceidx determines the position of the slice in the requested cube, see AttribSliceSet for details.

<>

Constructor & Destructor Documentation

◆ Slice()

Attrib::Slice::Slice ( int  nrows,
int  ncols,
float  udfval = 0 
)

◆ ~Slice()

Attrib::Slice::~Slice ( )
protected

Member Function Documentation

◆ setUndefValue()

void Attrib::Slice::setUndefValue ( float  udfval,
bool  initdata = false 
)

◆ undefValue()

float Attrib::Slice::undefValue ( ) const

Member Data Documentation

◆ udfval_

float Attrib::Slice::udfval_
protected

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