OpendTect  7.0
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
ContinuousCurvatureArray2DInterpol Class Reference
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. More...
 
bool setArray (ArrayAccess &, TaskRunner *) override
 Set AFTER all settings. More...
 
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. More...
 
void setTrendOrder (PolyTrend::Order ord)
 
bool trimArray (int step, Array2D< char > &edgesmask)
 
uiString uiMessage () const override
 will be message() again in 7.x More...
 
- Public Member Functions inherited from ParallelTask
virtual ~ParallelTask ()
 
void doParallel (bool yn)
 
bool execute () override
 
virtual bool executeParallel (bool parallel)
 
std::int64_t nrDone () const override
 May be -1, i.e. class does not report nrdone. More...
 
- Public Member Functions inherited from ReportingTask
virtual ~ReportingTask ()
 
void getProgress (const ReportingTask &)
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual void controlWork (Control)
 
virtual void enableWorkControl (bool=true)
 Must be called before execute() More...
 
virtual uiRetVal errorWithDetails () const
 
virtual Control getState () const
 
bool workControlEnabled () const
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
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. More...
 
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. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 
- 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_typename () const override
 
NamedObjectoperator= (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
 will be nrDoneText() in 7.x More...
 
- 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)
 
 ParallelTask (const ParallelTask &)
 
void addToNrDone (std::int64_t increment)
 
std::int64_t calculateThreadSize (std::int64_t totalnr, int nrthreads, int thread) const
 
virtual int minThreadSize () const
 
void quickAddToNrDone (std::int64_t loopidx)
 
void resetNrDone ()
 
virtual bool stopAllOnFailure () const
 
- Protected Member Functions inherited from ReportingTask
 ReportingTask (const char *nm=nullptr)
 
void incrementProgress ()
 
ProgressMeterprogressMeter () const
 
void reportProgressFinished ()
 
void reportProgressStarted ()
 
void resetProgress ()
 
void setProgressMeter (ProgressMeter *) override
 Must be called before execute() More...
 
void updateProgressMeter (bool forced=false, std::int64_t *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< BriggsDatabriggs_
 
double coeff_ [2][12]
 
double convergelimit_
 
bool * curdefined_
 
TypeSet< int > factors_
 
ArrPtrMan< float > griddata_
 
ArrPtrMan< char > gridstatus_
 
ArrPtrMan< HorizonDatahordata_
 
int nfact_
 
bool * nodestofill_
 
int nrdata_
 
int offset_ [25][12]
 
double planec0_
 
double planec1_
 
double planec2_
 
float radius_
 
double tension_
 
int totalnr_
 
double zmean_
 
double zscale_
 

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 Task
static uiString stdNrDoneText ()
 
static uiString uiStdNrDoneText ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Public Attributes inherited from ReportingTask
Notifier< ReportingTaskprogressUpdated
 
- Protected Attributes inherited from Array2DInterpol
Array2D< float > * arr_
 
ArrayAccessarrsetter_
 
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::CalcSetupstatsetup_
 
PolyTrendtrend_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

<>

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  ,
od_int64  ,
int   
)
overrideprotected

◆ 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 ParallelTask.

◆ uiNrDoneText()

uiString ContinuousCurvatureArray2DInterpol::uiNrDoneText ( ) const
inlineoverrideprotectedvirtual

will be nrDoneText() in 7.x

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 Function 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_
private

◆ curdefined_

bool* ContinuousCurvatureArray2DInterpol::curdefined_
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_
private

◆ nodestofill_

bool* ContinuousCurvatureArray2DInterpol::nodestofill_
private

◆ nrdata_

int ContinuousCurvatureArray2DInterpol::nrdata_
private

◆ offset_

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

◆ planec0_

double ContinuousCurvatureArray2DInterpol::planec0_
private

◆ planec1_

double ContinuousCurvatureArray2DInterpol::planec1_
private

◆ planec2_

double ContinuousCurvatureArray2DInterpol::planec2_
private

◆ radius_

float ContinuousCurvatureArray2DInterpol::radius_
private

◆ tension_

double ContinuousCurvatureArray2DInterpol::tension_
private

◆ totalnr_

int ContinuousCurvatureArray2DInterpol::totalnr_
private

◆ zmean_

double ContinuousCurvatureArray2DInterpol::zmean_
private

◆ zscale_

double ContinuousCurvatureArray2DInterpol::zscale_
private

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