OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
TriangulatedGridder2D Class Reference

Uses Delaunay triangulation to find a points neighbors and does inverse distance between the neighbors. More...

Inheritance diagram for TriangulatedGridder2D:
[legend]

Public Member Functions

 mDefaultFactoryInstantiation (Gridder2D, TriangulatedGridder2D,"Triangulated", tr("Triangulation"))
 
 TriangulatedGridder2D ()
 
 TriangulatedGridder2D (const TriangulatedGridder2D &)
 
 ~TriangulatedGridder2D ()
 
Gridder2Dclone () const
 
void setGridArea (const Interval< float > &, const Interval< float > &)
 
bool allPointsAreRelevant () const
 
bool getWeights (const Coord &, TypeSet< double > &weights, TypeSet< int > &relevantpoints) const
 
- Public Member Functions inherited from Gridder2D
 mDefineFactoryInClass (Gridder2D, factory)
 
virtual ~Gridder2D ()
 
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
 
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 areWeightsValuesDependent () const
 

Protected Member Functions

bool pointsChangedCB (CallBacker *)
 
- Protected Member Functions inherited from Gridder2D
 Gridder2D ()
 
 Gridder2D (const Gridder2D &)
 
virtual void valuesChangedCB (CallBacker *)
 
float getDetrendedValue (int idx) const
 
bool isAtInputPos (const Coord &, int &idx) const
 

Protected Attributes

DAGTriangleTreetriangles_
 
Triangle2DInterpolatorinterpolator_
 
Interval< float > xrg_
 
Interval< float > yrg_
 
Coord center_
 
- Protected Attributes inherited from Gridder2D
const TypeSet< float > * values_
 
const TypeSet< Coord > * points_
 
PolyTrendtrend_
 
TypeSet< int > usedpoints_
 

Private Member Functions

 mODTextTranslationClass (TriangulatedGridder2D)
 

Detailed Description

Uses Delaunay triangulation to find a points neighbors and does inverse distance between the neighbors.

Constructor & Destructor Documentation

TriangulatedGridder2D::TriangulatedGridder2D ( )
TriangulatedGridder2D::TriangulatedGridder2D ( const TriangulatedGridder2D )
TriangulatedGridder2D::~TriangulatedGridder2D ( )

Member Function Documentation

bool TriangulatedGridder2D::allPointsAreRelevant ( ) const
virtual

Implements Gridder2D.

Gridder2D* TriangulatedGridder2D::clone ( ) const
virtual

Implements Gridder2D.

bool TriangulatedGridder2D::getWeights ( const Coord ,
TypeSet< double > &  weights,
TypeSet< int > &  relevantpoints 
) const
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

Implements Gridder2D.

TriangulatedGridder2D::mDefaultFactoryInstantiation ( Gridder2D  ,
TriangulatedGridder2D  ,
"Triangulated"  ,
tr("Triangulation")   
)
TriangulatedGridder2D::mODTextTranslationClass ( TriangulatedGridder2D  )
private
bool TriangulatedGridder2D::pointsChangedCB ( CallBacker )
protectedvirtual

Reimplemented from Gridder2D.

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

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 from Gridder2D.

Member Data Documentation

Coord TriangulatedGridder2D::center_
protected
Triangle2DInterpolator* TriangulatedGridder2D::interpolator_
protected
DAGTriangleTree* TriangulatedGridder2D::triangles_
protected
Interval<float> TriangulatedGridder2D::xrg_
protected
Interval<float> TriangulatedGridder2D::yrg_
protected

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