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

A sequence of layers. More...

Public Member Functions

 LayerSequence (const PropertyRefSelection *prs=0)
 
 LayerSequence (const LayerSequence &ls)
 
virtual ~LayerSequence ()
 
LayerSequenceoperator= (const LayerSequence &)
 
bool isEmpty () const
 
void setEmpty ()
 
int size () const
 
ObjectSet< Layer > & layers ()
 
const ObjectSet< Layer > & layers () const
 
int layerIdxAtZ (float) const
 returns -1 if outside More...
 
int nearestLayerIdxAtZ (float z) const
 returns -1 only if empty More...
 
float startDepth () const
 
void setStartDepth (float z)
 
Interval< float > zRange () const
 
void setXPos (float)
 
PropertyRefSelectionpropertyRefs ()
 
const PropertyRefSelectionpropertyRefs () const
 
void getLayersFor (const UnitRef *ur, ObjectSet< Layer > &lys)
 
void getLayersFor (const UnitRef *, ObjectSet< const Layer > &) const
 
void getSequencePart (const Interval< float > &depthrg, bool cropfirstlast, LayerSequence &) const
 
const RefTreerefTree () const
 
void prepareUse () const
 needed after changes More...
 
int indexOf (const Level &, int startsearchat=0) const
 may return -1 for not found More...
 
float depthOf (const Level &) const
 will return 0 if lvl not found More...
 
int positionOf (const Level &) const
 
float depthPositionOf (const Level &) const
 

Protected Attributes

ObjectSet< Layerlayers_
 
float z0_
 
PropertyRefSelection props_
 

Detailed Description

A sequence of layers.

You can provide a PropertyRefSelection* to give meaning to the values in the Layers.

Constructor & Destructor Documentation

Strat::LayerSequence::LayerSequence ( const PropertyRefSelection prs = 0)
Strat::LayerSequence::LayerSequence ( const LayerSequence ls)
inline
virtual Strat::LayerSequence::~LayerSequence ( )
virtual

Member Function Documentation

float Strat::LayerSequence::depthOf ( const Level ) const

will return 0 if lvl not found

float Strat::LayerSequence::depthPositionOf ( const Level ) const
void Strat::LayerSequence::getLayersFor ( const UnitRef ur,
ObjectSet< Layer > &  lys 
)
inline
void Strat::LayerSequence::getLayersFor ( const UnitRef ,
ObjectSet< const Layer > &   
) const
void Strat::LayerSequence::getSequencePart ( const Interval< float > &  depthrg,
bool  cropfirstlast,
LayerSequence  
) const

cropfirstlast updates thicknesses of first and last layers to exactly match the window

int Strat::LayerSequence::indexOf ( const Level ,
int  startsearchat = 0 
) const

may return -1 for not found

bool Strat::LayerSequence::isEmpty ( ) const
inline
int Strat::LayerSequence::layerIdxAtZ ( float  ) const

returns -1 if outside

ObjectSet<Layer>& Strat::LayerSequence::layers ( )
inline
const ObjectSet<Layer>& Strat::LayerSequence::layers ( ) const
inline
int Strat::LayerSequence::nearestLayerIdxAtZ ( float  z) const

returns -1 only if empty

LayerSequence& Strat::LayerSequence::operator= ( const LayerSequence )
int Strat::LayerSequence::positionOf ( const Level ) const

may return size() (below last layer) only returns -1 if sequence is empty

void Strat::LayerSequence::prepareUse ( ) const

needed after changes

PropertyRefSelection& Strat::LayerSequence::propertyRefs ( )
inline
const PropertyRefSelection& Strat::LayerSequence::propertyRefs ( ) const
inline
const RefTree& Strat::LayerSequence::refTree ( ) const
void Strat::LayerSequence::setEmpty ( )
inline
void Strat::LayerSequence::setStartDepth ( float  z)
inline
void Strat::LayerSequence::setXPos ( float  )
int Strat::LayerSequence::size ( ) const
inline
float Strat::LayerSequence::startDepth ( ) const
inline
Interval<float> Strat::LayerSequence::zRange ( ) const

Member Data Documentation

ObjectSet<Layer> Strat::LayerSequence::layers_
protected
PropertyRefSelection Strat::LayerSequence::props_
protected
float Strat::LayerSequence::z0_
protected

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