OpendTect  6.6
Public Member Functions | Protected Attributes | List of all members
Strat::LayerSequence Class Reference

A sequence of layers. More...

Public Member Functions

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

Protected Attributes

ObjectSet< Layerlayers_
 
PropertyRefSelection props_
 
float z0_
 

Detailed Description

A sequence of layers.

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

<>

Constructor & Destructor Documentation

◆ LayerSequence() [1/2]

Strat::LayerSequence::LayerSequence ( const PropertyRefSelection prs = 0)

◆ LayerSequence() [2/2]

Strat::LayerSequence::LayerSequence ( const LayerSequence ls)
inline

◆ ~LayerSequence()

virtual Strat::LayerSequence::~LayerSequence ( )
virtual

Member Function Documentation

◆ depthOf()

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

will return 0 if lvl not found

◆ depthPositionOf()

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

◆ getLayersFor() [1/2]

void Strat::LayerSequence::getLayersFor ( const UnitRef ,
ObjectSet< const Layer > &   
) const

◆ getLayersFor() [2/2]

void Strat::LayerSequence::getLayersFor ( const UnitRef ur,
ObjectSet< Layer > &  lys 
)
inline

◆ getSequencePart()

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

◆ indexOf()

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

may return -1 for not found

◆ isEmpty()

bool Strat::LayerSequence::isEmpty ( ) const
inline

◆ layerIdxAtZ()

int Strat::LayerSequence::layerIdxAtZ ( float  ) const

returns -1 if outside

◆ layers() [1/2]

ObjectSet<Layer>& Strat::LayerSequence::layers ( )
inline

◆ layers() [2/2]

const ObjectSet<Layer>& Strat::LayerSequence::layers ( ) const
inline

◆ nearestLayerIdxAtZ()

int Strat::LayerSequence::nearestLayerIdxAtZ ( float  z) const

returns -1 only if empty

◆ operator=()

LayerSequence& Strat::LayerSequence::operator= ( const LayerSequence )

◆ positionOf()

int Strat::LayerSequence::positionOf ( const Level ) const

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

◆ prepareUse()

void Strat::LayerSequence::prepareUse ( ) const

needed after changes

◆ propertyRefs() [1/2]

PropertyRefSelection& Strat::LayerSequence::propertyRefs ( )
inline

◆ propertyRefs() [2/2]

const PropertyRefSelection& Strat::LayerSequence::propertyRefs ( ) const
inline

◆ refTree()

const RefTree& Strat::LayerSequence::refTree ( ) const

◆ setEmpty()

void Strat::LayerSequence::setEmpty ( )
inline

◆ setStartDepth()

void Strat::LayerSequence::setStartDepth ( float  z)
inline

◆ setXPos()

void Strat::LayerSequence::setXPos ( float  )

◆ size()

int Strat::LayerSequence::size ( ) const
inline

◆ startDepth()

float Strat::LayerSequence::startDepth ( ) const
inline

◆ zRange()

Interval<float> Strat::LayerSequence::zRange ( ) const

Member Data Documentation

◆ layers_

ObjectSet<Layer> Strat::LayerSequence::layers_
protected

◆ props_

PropertyRefSelection Strat::LayerSequence::props_
protected

◆ z0_

float Strat::LayerSequence::z0_
protected

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