OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Gridder2D Class Referenceabstract

Generic interface for 2D gridding. More...

Inheritance diagram for Gridder2D:
[legend]

Public Member Functions

virtual ~Gridder2D ()
 
virtual bool allPointsAreRelevant () const =0
 
virtual bool areWeightsValuesDependent () const
 
virtual Gridder2Dclone () const =0
 
virtual void fillPar (IOPar &) const
 
const TypeSet< Coord > * getPoints () const
 
virtual float getValue (const Coord &, const TypeSet< double > *weights=0, const TypeSet< int > *relevantpoints=0) const
 Does the gridding. More...
 
const TypeSet< float > * getValues () const
 
virtual bool getWeights (const Coord &, TypeSet< double > &weights, TypeSet< int > &relevantpoints) const =0
 
virtual bool isPointUsable (const Coord &cpt, const Coord &dpt) const
 
virtual bool operator== (const Gridder2D &) const
 
virtual void setGridArea (const Interval< float > &, const Interval< float > &)
 
bool setPoints (const TypeSet< Coord > &)
 
bool setPoints (const TypeSet< Coord > &, TaskRunner *)
 
virtual void setTrend (PolyTrend::Order)
 
bool setValues (const TypeSet< float > &)
 
virtual bool usePar (const IOPar &)
 
virtual bool wantsAllPoints () const
 If false, points should be tested with isPointUsable. More...
 

Protected Member Functions

 Gridder2D ()
 
 Gridder2D (const Gridder2D &)
 
float getDetrendedValue (int idx) const
 
bool isAtInputPos (const Coord &, int &idx) const
 
virtual bool pointsChangedCB (CallBacker *)
 
virtual void valuesChangedCB (CallBacker *)
 

Protected Attributes

const TypeSet< Coord > * points_
 
PolyTrendtrend_
 
TypeSet< int > usedpoints_
 
const TypeSet< float > * values_
 

Detailed Description

Generic interface for 2D gridding.

<>

Constructor & Destructor Documentation

◆ ~Gridder2D()

virtual Gridder2D::~Gridder2D ( )
virtual

◆ Gridder2D() [1/2]

Gridder2D::Gridder2D ( )
protected

◆ Gridder2D() [2/2]

Gridder2D::Gridder2D ( const Gridder2D )
protected

Member Function Documentation

◆ allPointsAreRelevant()

virtual bool Gridder2D::allPointsAreRelevant ( ) const
pure virtual

◆ areWeightsValuesDependent()

virtual bool Gridder2D::areWeightsValuesDependent ( ) const
inlinevirtual

Reimplemented in RadialBasisFunctionGridder2D.

◆ clone()

virtual Gridder2D* Gridder2D::clone ( ) const
pure virtual

◆ fillPar()

virtual void Gridder2D::fillPar ( IOPar ) const
virtual

Reimplemented in InverseDistanceGridder2D.

◆ getDetrendedValue()

float Gridder2D::getDetrendedValue ( int  idx) const
protected

◆ getPoints()

const TypeSet<Coord>* Gridder2D::getPoints ( ) const
inline

◆ getValue()

virtual float Gridder2D::getValue ( const Coord ,
const TypeSet< double > *  weights = 0,
const TypeSet< int > *  relevantpoints = 0 
) const
virtual

Does the gridding.

Reimplemented in RadialBasisFunctionGridder2D.

◆ getValues()

const TypeSet<float>* Gridder2D::getValues ( ) const
inline

◆ getWeights()

virtual bool Gridder2D::getWeights ( const Coord ,
TypeSet< double > &  weights,
TypeSet< int > &  relevantpoints 
) const
pure virtual

Only use this if multiple setValues() are called for the same setPoints() The output weights and pointset must then be provided to the getValue function

Implemented in RadialBasisFunctionGridder2D, TriangulatedGridder2D, and InverseDistanceGridder2D.

◆ isAtInputPos()

bool Gridder2D::isAtInputPos ( const Coord ,
int &  idx 
) const
protected

◆ isPointUsable()

virtual bool Gridder2D::isPointUsable ( const Coord cpt,
const Coord dpt 
) const
virtual

Reimplemented in InverseDistanceGridder2D.

◆ operator==()

virtual bool Gridder2D::operator== ( const Gridder2D ) const
virtual

◆ pointsChangedCB()

virtual bool Gridder2D::pointsChangedCB ( CallBacker )
inlineprotectedvirtual

◆ setGridArea()

virtual void Gridder2D::setGridArea ( const Interval< float > &  ,
const Interval< float > &   
)
inlinevirtual

Given that we want to calculate cpt, is data at dpt usable. Tells gridder that you will not call setGridPoint outside these ranges. May speed up calculation.

Reimplemented in TriangulatedGridder2D.

◆ setPoints() [1/2]

bool Gridder2D::setPoints ( const TypeSet< Coord > &  )

◆ setPoints() [2/2]

bool Gridder2D::setPoints ( const TypeSet< Coord > &  ,
TaskRunner  
)

◆ setTrend()

virtual void Gridder2D::setTrend ( PolyTrend::Order  )
virtual

◆ setValues()

bool Gridder2D::setValues ( const TypeSet< float > &  )

◆ usePar()

virtual bool Gridder2D::usePar ( const IOPar )
virtual

Reimplemented in InverseDistanceGridder2D.

◆ valuesChangedCB()

virtual void Gridder2D::valuesChangedCB ( CallBacker )
inlineprotectedvirtual

Reimplemented in RadialBasisFunctionGridder2D.

◆ wantsAllPoints()

virtual bool Gridder2D::wantsAllPoints ( ) const
inlinevirtual

If false, points should be tested with isPointUsable.

Only checks the name and trend. Should be re-implemented in inheriting classed if they have own variables/ settings.

Reimplemented in InverseDistanceGridder2D.

Member Data Documentation

◆ points_

const TypeSet<Coord>* Gridder2D::points_
protected

◆ trend_

PolyTrend* Gridder2D::trend_
protected

◆ usedpoints_

TypeSet<int> Gridder2D::usedpoints_
protected

◆ values_

const TypeSet<float>* Gridder2D::values_
protected

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