OpendTect  7.0
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 init ()
 
void setDimMap (int localdim, int remotedim)
 
bool setPos (int dim, int pos)
 

Protected Member Functions

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

Protected Attributes

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

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

◆ ~ArrayNDSliceBase()

virtual ArrayNDSliceBase::~ArrayNDSliceBase ( )
virtual

◆ ArrayNDSliceBase()

ArrayNDSliceBase::ArrayNDSliceBase ( ArrayNDInfo ,
const ArrayNDInfo  
)
protected

Member Function Documentation

◆ getDimSize()

int ArrayNDSliceBase::getDimSize ( int  dim) const

◆ getPos()

int ArrayNDSliceBase::getPos ( int  dim) const

◆ getSourcePos()

void ArrayNDSliceBase::getSourcePos ( const int *  localpos,
int *  sourcepos 
) const
protected

◆ init()

bool ArrayNDSliceBase::init ( )

◆ setDimMap()

void ArrayNDSliceBase::setDimMap ( int  localdim,
int  remotedim 
)

◆ setPos()

bool ArrayNDSliceBase::setPos ( int  dim,
int  pos 
)

Member Data Documentation

◆ info_

ArrayNDInfo& ArrayNDSliceBase::info_
protected

◆ offset_

std::int64_t ArrayNDSliceBase::offset_
protected

◆ position_

TypeSet<int> ArrayNDSliceBase::position_
protected

◆ sourceinfo_

const ArrayNDInfo& ArrayNDSliceBase::sourceinfo_
protected

◆ vardim_

TypeSet<int> ArrayNDSliceBase::vardim_
protected

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