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

A sequence of layers. More...

Inheritance diagram for Strat::LayerSequence:
[legend]

Public Member Functions

 LayerSequence (const LayerSequence &)
 
 LayerSequence (const PropertyRefSelection *=nullptr)
 
virtual ~LayerSequence ()
 
float depthOf (const Level &, float notfoundval=0.f) const
 will return 0 if lvl not found More...
 
float depthPositionOf (const Level &, float notfoundval=0.f) 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 &)
 
float overburdenVelocity () const
 
int positionOf (const Level &) const
 
void prepareUse () const
 needed after changes More...
 
PropertyRefSelectionpropertyRefs ()
 
const PropertyRefSelectionpropertyRefs () const
 
Interval< float > propRange (int) const
 
const RefTreerefTree () const
 
void setEmpty ()
 
void setOverburdenVelocity (float vel)
 
void setStartDepth (float z)
 
void setStartDepthAndAdjust (float z)
 
void setStartDepthOnly (float z)
 
void setXPos (float)
 
int size () const
 
float startDepth () const
 
Interval< float > zRange () const
 

Protected Member Functions

void adjustLayers (float startz)
 

Protected Attributes

ObjectSet< Layerlayers_
 
PropertyRefSelection props_
 
float z0_ = 0.f
 

Detailed Description

A sequence of layers.

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

<>

Constructor & Destructor Documentation

◆ LayerSequence() [1/2]

Strat::LayerSequence::LayerSequence ( const PropertyRefSelection = nullptr)

◆ LayerSequence() [2/2]

Strat::LayerSequence::LayerSequence ( const LayerSequence )

◆ ~LayerSequence()

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

Member Function Documentation

◆ adjustLayers()

void Strat::LayerSequence::adjustLayers ( float  startz)
protected

◆ depthOf()

float Strat::LayerSequence::depthOf ( const Level ,
float  notfoundval = 0.f 
) const

will return 0 if lvl not found

◆ depthPositionOf()

float Strat::LayerSequence::depthPositionOf ( const Level ,
float  notfoundval = 0.f 
) 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

◆ 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 )

◆ overburdenVelocity()

float Strat::LayerSequence::overburdenVelocity ( ) const

◆ 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

◆ propRange()

Interval<float> Strat::LayerSequence::propRange ( int  ) const

◆ refTree()

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

◆ setEmpty()

void Strat::LayerSequence::setEmpty ( )

◆ setOverburdenVelocity()

void Strat::LayerSequence::setOverburdenVelocity ( float  vel)

◆ setStartDepth()

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

◆ setStartDepthAndAdjust()

void Strat::LayerSequence::setStartDepthAndAdjust ( float  z)

◆ setStartDepthOnly()

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

◆ setXPos()

void Strat::LayerSequence::setXPos ( float  )

◆ size()

int Strat::LayerSequence::size ( ) const

◆ 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_ = 0.f
protected

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