OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ArrayNDSliceBase Class Reference

Base class of Array1DSlice and Array2DSlice. Access-tool to another ArrayND with higher dimensionality. More...

Inheritance diagram for ArrayNDSliceBase:
[legend]

Public Member Functions

virtual ~ArrayNDSliceBase ()
 
int getDimSize (int dim) const
 
int getPos (int dim) const
 
bool setPos (int dim, int pos)
 
bool init ()
 
void setDimMap (int localdim, int remotedim)
 

Protected Member Functions

 ArrayNDSliceBase (ArrayNDInfo *, const ArrayNDInfo &)
 
void getSourcePos (const int *localpos, int *sourcepos) const
 

Protected Attributes

ArrayNDInfoinfo_
 
const ArrayNDInfosourceinfo_
 
TypeSet< int > vardim_
 
TypeSet< int > position_
 
int64_t offset_
 

Detailed Description

Base class of Array1DSlice and Array2DSlice. Access-tool to another ArrayND with higher dimensionality.

ArrayXDSlice is an ArrayND that is an access-tool to another ArrayND with higher dimensionality. It can be used to get Array1D through a Array3D cube. Use setPos(int,int) to set the fixed positions and leave out the positions that should vary. When all positions are set, call init().

To unset a position, set it to -1. If positions are unset, init has to be called prior to dataaccesing functions.

Constructor & Destructor Documentation

virtual ArrayNDSliceBase::~ArrayNDSliceBase ( )
virtual
ArrayNDSliceBase::ArrayNDSliceBase ( ArrayNDInfo ,
const ArrayNDInfo  
)
protected

Member Function Documentation

int ArrayNDSliceBase::getDimSize ( int  dim) const
int ArrayNDSliceBase::getPos ( int  dim) const
void ArrayNDSliceBase::getSourcePos ( const int *  localpos,
int *  sourcepos 
) const
protected
bool ArrayNDSliceBase::init ( )
void ArrayNDSliceBase::setDimMap ( int  localdim,
int  remotedim 
)
bool ArrayNDSliceBase::setPos ( int  dim,
int  pos 
)

Member Data Documentation

ArrayNDInfo& ArrayNDSliceBase::info_
protected
int64_t ArrayNDSliceBase::offset_
protected
TypeSet<int> ArrayNDSliceBase::position_
protected
const ArrayNDInfo& ArrayNDSliceBase::sourceinfo_
protected
TypeSet<int> ArrayNDSliceBase::vardim_
protected

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