OpendTect 8.0
Loading...
Searching...
No Matches
ContinuousCurvatureArray2DInterpol Class Reference

#include <contcurvinterpol.h>

Inheritance diagram for ContinuousCurvatureArray2DInterpol:
[legend]

Classes

struct  BriggsData
 
struct  HorizonData
 

Public Member Functions

 ContinuousCurvatureArray2DInterpol ()
 
 ~ContinuousCurvatureArray2DInterpol ()
 
bool fillPar (IOPar &) const override
 
bool setArray (Array2D< float > &, TaskRunner *) override
 Set AFTER all settings.
 
bool setArray (ArrayAccess &, TaskRunner *) override
 Set AFTER all settings.
 
bool usePar (const IOPar &) override
 
- Public Member Functions inherited from Array2DInterpol
virtual ~Array2DInterpol ()
 
virtual bool canUseArrayAccess () const
 
void doPolygonCrop ()
 
FillType getFillType () const
 
float getMaxHoleSize () const
 
virtual uiString infoMsg () const
 
bool isClassification () const
 
virtual bool nothingToFill () const
 
void setClassification (bool)
 
void setColStep (float r)
 
void setFillType (FillType)
 
void setMask (const Array2D< bool > *, OD::PtrPolicy=OD::UsePtr)
 
void setMaxHoleSize (float)
 
void setOrigin (const RowCol &)
 
void setRowStep (float r)
 
void setSampling (const TrcKeySampling &)
 Set both steps and the origin.
 
void setTrendOrder (PolyTrend::Order ord)
 
bool trimArray (int step, Array2D< char > &edgesmask)
 
uiString uiMessage () const override
 
- Public Member Functions inherited from ParallelTask
virtual ~ParallelTask ()
 
void doParallel (bool yn)
 
bool execute () override
 
virtual bool executeParallel (bool parallel)
 
od_int64 nrDone () const override
 May be -1, i.e. class does not report nrdone.
 
od_int64 totalNr () const override
 
- Public Member Functions inherited from ReportingTask
 ReportingTask (const ReportingTask &)=delete
 
virtual ~ReportingTask ()
 
void getProgress (const ReportingTask &)
 
ReportingTask & operator= (const ReportingTask &)=delete
 
void setSimpleMeter (bool yn, int repperc)
 
int simpleMeterStep () const
 
bool useSimpleMeter () const
 
- Public Member Functions inherited from Task
 Task (const Task &)=delete
 
virtual ~Task ()
 
virtual void controlWork (Control)
 
virtual void enableWorkControl (bool=true)
 Must be called before execute()
 
virtual uiRetVal errorWithDetails () const
 
virtual Control getState () const
 
Task & operator= (const Task &)=delete
 
bool shouldContinue_ ()
 
bool workControlEnabled () const
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=nullptr)
 
 NamedCallBacker (const NamedCallBacker &)=delete
 
 ~NamedCallBacker ()
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
NamedCallBacker & operator= (const NamedCallBacker &)=delete
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object.
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use.
 
CallBacker & operator= (const CallBacker &)=delete
 
void stopReceivingNotifications () const
 
virtual CallBacker * trueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_type & name () const override
 
NamedObject & operator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Protected Member Functions

bool doPrepare (int) override
 
bool doWork (od_int64, od_int64, int) override
 
virtual bool initFromArray (TaskRunner *)
 
int maxNrThreads () const override
 
od_int64 nrIterations () const override
 
od_int64 totalNr () const override
 
uiString uiNrDoneText () const override
 
- Protected Member Functions inherited from Array2DInterpol
 Array2DInterpol ()
 
void excludeBigHoles (const bool *isdef, bool *shouldinterpol) const
 
void floodFillArrFrom (int seed, const bool *isdef, bool *shouldinterpol) const
 
void getNodesToFill (const bool *isdef, bool *shouldinterpol, TaskRunner *) const
 
bool isDefined (int idx) const
 
virtual void setFrom (od_int64 target, const od_int64 *sources, const float *weights, int nrsrc)
 
- Protected Member Functions inherited from ParallelTask
 ParallelTask (const char *nm=0)
 
void addToNrDone (od_int64 increment)
 
od_int64 calculateThreadSize (od_int64 totalnr, int nrthreads, int thread) const
 
virtual int minThreadSize () const
 
void quickAddToNrDone (od_int64 loopidx)
 
void resetNrDone ()
 
virtual bool stopAllOnFailure () const
 
- Protected Member Functions inherited from ReportingTask
 ReportingTask (const char *nm=nullptr)
 
void incrementProgress ()
 
ProgressMeter * progressMeter () const
 
void reportProgressFinished ()
 
void reportProgressStarted ()
 
void resetProgress ()
 
void setProgressMeter (ProgressMeter *) override
 Must be called before execute()
 
void updateProgressMeter (bool forced=false, od_int64 *totalnr=0)
 
void updateReportedName ()
 
- Protected Member Functions inherited from Task
 Task (const char *nm=nullptr)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Private Member Functions

int calcGcdEuclid ()
 
int calcPrimeFactors (int)
 
int doFiniteDifference (int)
 
void fillInForecast (int, int)
 
bool fillInputData ()
 
void finalizeGrid ()
 
void findNearestPoint (int)
 
int getNextGridSize (int curgridsize)
 
void InterpolatingFault (const TypeSet< HorizonData > &, int)
 
void recoverPlanarTrend ()
 
bool removePlanarTrend ()
 
bool rescaleZValues ()
 
bool setCoefficients ()
 
bool updateArray2D ()
 
void updateEdgeConditions (int)
 
void updateGridConditions (int)
 
void updateGridIndex (int)
 
int verifyGridSize (int)
 

Static Private Member Functions

static const char * sKeyConvergence ()
 
static const char * sKeySearchRadius ()
 
static const char * sKeyTension ()
 

Private Attributes

ArrPtrMan< BriggsData > briggs_
 
double coeff_ [2][12]
 
double convergelimit_ = .0f
 
bool * curdefined_ = nullptr
 
TypeSet< int > factors_
 
ArrPtrMan< float > griddata_
 
ArrPtrMan< char > gridstatus_
 
ArrPtrMan< HorizonData > hordata_
 
int nfact_ = 0
 
bool * nodestofill_ = nullptr
 
int nrdata_ = 0
 
int offset_ [25][12]
 
double planec0_ = .0f
 
double planec1_ = .0f
 
double planec2_ = .0f
 
float radius_ = .0f
 
double tension_ = .25f
 
int totalnr_
 
double zmean_ = .0f
 
double zscale_ = .0f
 

Friends

class GridInitializer
 
class HorizonDataComparer
 

Additional Inherited Members

- Public Types inherited from Array2DInterpol
enum  FillType { HolesOnly , ConvexHull , Full , Polygon }
 
- Public Types inherited from Task
enum  Control { Run , Pause , Stop }
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Static Public Member Functions inherited from Array2DInterpol
static const char * sKeyColStep ()
 
static const char * sKeyCropPolygon ()
 
static const char * sKeyFillType ()
 
static const char * sKeyMaxHoleSz ()
 
static const char * sKeyNrCells ()
 
static const char * sKeyNrCols ()
 
static const char * sKeyNrRows ()
 
static const char * sKeyOrigin ()
 
static const char * sKeyPolyNode ()
 
static const char * sKeyPolyNrofNodes ()
 
static const char * sKeyRowStep ()
 
- Static Public Member Functions inherited from ParallelTask
static uiString sPosFinished ()
 
static uiString sTrcFinished ()
 
- Static Public Member Functions inherited from ReportingTask
static PtrMan< ProgressMeter > getTextProgressMeter (od_ostream &, const IOPar *iop=nullptr)
 
static bool needSimpleLogging (const IOPar &)
 
static const char * sKeySimpleLogging ()
 
static const char * sKeySimpleLoggingStep ()
 
- Static Public Member Functions inherited from Task
static uiString uiStdNrDoneText ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Public Attributes inherited from ReportingTask
Notifier< ReportingTask > progressUpdated
 
- Protected Attributes inherited from Array2DInterpol
Array2D< float > * arr_
 
ArrayAccess * arrsetter_
 
float colstep_
 
bool croppoly_
 
FillType filltype_
 
bool isclassification_
 
const Array2D< bool > * mask_
 
bool maskismine_
 
float maxholesize_
 
int nrcells_
 
int nrcols_
 
int nrrows_
 
RowCol origin_
 
ODPolygon< double > * poly_
 
float rowstep_
 
Stats::CalcSetup * statsetup_
 
PolyTrend * trend_
 
- Protected Attributes inherited from Task
Control control_ = Task::Run
 
Threads::ConditionVar * workcontrolcondvar_ = nullptr
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBacker > delnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Constructor & Destructor Documentation

◆ ContinuousCurvatureArray2DInterpol()

ContinuousCurvatureArray2DInterpol::ContinuousCurvatureArray2DInterpol ( )

◆ ~ContinuousCurvatureArray2DInterpol()

ContinuousCurvatureArray2DInterpol::~ContinuousCurvatureArray2DInterpol ( )

Member Function Documentation

◆ calcGcdEuclid()

int ContinuousCurvatureArray2DInterpol::calcGcdEuclid ( )
private

◆ calcPrimeFactors()

int ContinuousCurvatureArray2DInterpol::calcPrimeFactors ( int )
private

◆ doFiniteDifference()

int ContinuousCurvatureArray2DInterpol::doFiniteDifference ( int )
private

◆ doPrepare()

bool ContinuousCurvatureArray2DInterpol::doPrepare ( int nrthreads)
overrideprotectedvirtual

Called once, before any doWork is called.

Reimplemented from Array2DInterpol.

◆ doWork()

bool ContinuousCurvatureArray2DInterpol::doWork ( od_int64 start,
od_int64 stop,
int threadidx )
overrideprotectedvirtual

The functions that does the job. The function will be called with all intervals from 0 to ParallelTask::nrIterations()-1. The function must be designed to be able to run in parallel.

Parameters
startfirst index
stoplast index
threadidxgives an identifier (between 0 and nr of threads -1) that is unique to each call to doWork.

Implements ParallelTask.

◆ fillInForecast()

void ContinuousCurvatureArray2DInterpol::fillInForecast ( int ,
int  )
private

◆ fillInputData()

bool ContinuousCurvatureArray2DInterpol::fillInputData ( )
private

◆ fillPar()

bool ContinuousCurvatureArray2DInterpol::fillPar ( IOPar & ) const
overridevirtual

Reimplemented from Array2DInterpol.

Reimplemented in ContinuousCurvatureHor3DGridder.

◆ finalizeGrid()

void ContinuousCurvatureArray2DInterpol::finalizeGrid ( )
private

◆ findNearestPoint()

void ContinuousCurvatureArray2DInterpol::findNearestPoint ( int )
private

◆ getNextGridSize()

int ContinuousCurvatureArray2DInterpol::getNextGridSize ( int curgridsize)
private

◆ initFromArray()

virtual bool ContinuousCurvatureArray2DInterpol::initFromArray ( TaskRunner * )
protectedvirtual

◆ InterpolatingFault()

void ContinuousCurvatureArray2DInterpol::InterpolatingFault ( const TypeSet< HorizonData > & ,
int  )
private

◆ maxNrThreads()

int ContinuousCurvatureArray2DInterpol::maxNrThreads ( ) const
inlineoverrideprotectedvirtual

Reimplemented from ParallelTask.

◆ nrIterations()

od_int64 ContinuousCurvatureArray2DInterpol::nrIterations ( ) const
inlineoverrideprotectedvirtual
Returns
the number of times the process should be run.

Implements ParallelTask.

◆ recoverPlanarTrend()

void ContinuousCurvatureArray2DInterpol::recoverPlanarTrend ( )
private

◆ removePlanarTrend()

bool ContinuousCurvatureArray2DInterpol::removePlanarTrend ( )
private

◆ rescaleZValues()

bool ContinuousCurvatureArray2DInterpol::rescaleZValues ( )
private

◆ setArray() [1/2]

bool ContinuousCurvatureArray2DInterpol::setArray ( Array2D< float > & ,
TaskRunner *  )
overridevirtual

Set AFTER all settings.

Reimplemented from Array2DInterpol.

◆ setArray() [2/2]

bool ContinuousCurvatureArray2DInterpol::setArray ( ArrayAccess & ,
TaskRunner *  )
overridevirtual

Set AFTER all settings.

Trend is active only when setTrendOrder is called

Reimplemented from Array2DInterpol.

◆ setCoefficients()

bool ContinuousCurvatureArray2DInterpol::setCoefficients ( )
private

◆ sKeyConvergence()

static const char * ContinuousCurvatureArray2DInterpol::sKeyConvergence ( )
staticprivate

◆ sKeySearchRadius()

static const char * ContinuousCurvatureArray2DInterpol::sKeySearchRadius ( )
staticprivate

◆ sKeyTension()

static const char * ContinuousCurvatureArray2DInterpol::sKeyTension ( )
staticprivate

◆ totalNr()

od_int64 ContinuousCurvatureArray2DInterpol::totalNr ( ) const
inlineoverrideprotectedvirtual

Reimplemented from Task.

◆ uiNrDoneText()

uiString ContinuousCurvatureArray2DInterpol::uiNrDoneText ( ) const
inlineoverrideprotectedvirtual

Reimplemented from Task.

◆ updateArray2D()

bool ContinuousCurvatureArray2DInterpol::updateArray2D ( )
private

◆ updateEdgeConditions()

void ContinuousCurvatureArray2DInterpol::updateEdgeConditions ( int )
private

◆ updateGridConditions()

void ContinuousCurvatureArray2DInterpol::updateGridConditions ( int )
private

◆ updateGridIndex()

void ContinuousCurvatureArray2DInterpol::updateGridIndex ( int )
private

◆ usePar()

bool ContinuousCurvatureArray2DInterpol::usePar ( const IOPar & )
overridevirtual

Reimplemented from Array2DInterpol.

Reimplemented in ContinuousCurvatureHor3DGridder.

◆ verifyGridSize()

int ContinuousCurvatureArray2DInterpol::verifyGridSize ( int )
private

Friends And Related Symbol Documentation

◆ GridInitializer

friend class GridInitializer
friend

◆ HorizonDataComparer

friend class HorizonDataComparer
friend

Member Data Documentation

◆ briggs_

ArrPtrMan<BriggsData> ContinuousCurvatureArray2DInterpol::briggs_
private

◆ coeff_

double ContinuousCurvatureArray2DInterpol::coeff_[2][12]
private

◆ convergelimit_

double ContinuousCurvatureArray2DInterpol::convergelimit_ = .0f
private

◆ curdefined_

bool* ContinuousCurvatureArray2DInterpol::curdefined_ = nullptr
private

◆ factors_

TypeSet<int> ContinuousCurvatureArray2DInterpol::factors_
private

◆ griddata_

ArrPtrMan<float> ContinuousCurvatureArray2DInterpol::griddata_
private

◆ gridstatus_

ArrPtrMan<char> ContinuousCurvatureArray2DInterpol::gridstatus_
private

◆ hordata_

ArrPtrMan<HorizonData> ContinuousCurvatureArray2DInterpol::hordata_
private

◆ nfact_

int ContinuousCurvatureArray2DInterpol::nfact_ = 0
private

◆ nodestofill_

bool* ContinuousCurvatureArray2DInterpol::nodestofill_ = nullptr
private

◆ nrdata_

int ContinuousCurvatureArray2DInterpol::nrdata_ = 0
private

◆ offset_

int ContinuousCurvatureArray2DInterpol::offset_[25][12]
private

◆ planec0_

double ContinuousCurvatureArray2DInterpol::planec0_ = .0f
private

◆ planec1_

double ContinuousCurvatureArray2DInterpol::planec1_ = .0f
private

◆ planec2_

double ContinuousCurvatureArray2DInterpol::planec2_ = .0f
private

◆ radius_

float ContinuousCurvatureArray2DInterpol::radius_ = .0f
private

◆ tension_

double ContinuousCurvatureArray2DInterpol::tension_ = .25f
private

◆ totalnr_

int ContinuousCurvatureArray2DInterpol::totalnr_
private

◆ zmean_

double ContinuousCurvatureArray2DInterpol::zmean_ = .0f
private

◆ zscale_

double ContinuousCurvatureArray2DInterpol::zscale_ = .0f
private

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