OpendTect-6_4  6.4
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

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

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Generic interface for 2D gridding.

Constructor & Destructor Documentation

virtual Gridder2D::~Gridder2D ( )
virtual
Gridder2D::Gridder2D ( )
protected
Gridder2D::Gridder2D ( const Gridder2D )
protected

Member Function Documentation

virtual bool Gridder2D::allPointsAreRelevant ( ) const
pure virtual
virtual bool Gridder2D::areWeightsValuesDependent ( ) const
inlinevirtual

Reimplemented in RadialBasisFunctionGridder2D.

virtual Gridder2D* Gridder2D::clone ( ) const
pure virtual
virtual void Gridder2D::fillPar ( IOPar ) const
virtual

Reimplemented in InverseDistanceGridder2D.

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

Does the gridding.

Reimplemented in RadialBasisFunctionGridder2D.

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.

bool Gridder2D::isAtInputPos ( const Coord ,
int &  idx 
) const
protected
virtual bool Gridder2D::isPointUsable ( const Coord cpt,
const Coord dpt 
) const
virtual

Reimplemented in InverseDistanceGridder2D.

Gridder2D::mDefineFactoryInClass ( Gridder2D  ,
factory   
)
virtual bool Gridder2D::operator== ( const Gridder2D ) const
virtual
virtual bool Gridder2D::pointsChangedCB ( CallBacker )
inlineprotectedvirtual
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.

bool Gridder2D::setPoints ( const TypeSet< Coord > &  )
bool Gridder2D::setPoints ( const TypeSet< Coord > &  ,
TaskRunner  
)
virtual void Gridder2D::setTrend ( PolyTrend::Order  )
virtual
bool Gridder2D::setValues ( const TypeSet< float > &  )
virtual bool Gridder2D::usePar ( const IOPar )
virtual

Reimplemented in InverseDistanceGridder2D.

virtual void Gridder2D::valuesChangedCB ( CallBacker )
inlineprotectedvirtual

Reimplemented in RadialBasisFunctionGridder2D.

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

const TypeSet<Coord>* Gridder2D::points_
protected
PolyTrend* Gridder2D::trend_
protected
TypeSet<int> Gridder2D::usedpoints_
protected
const TypeSet<float>* Gridder2D::values_
protected

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