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

calculates densities for teh density display of a crossplot More...

Inheritance diagram for DensityCalc:
[legend]

Public Member Functions

 DensityCalc (uiDataPointSet &, Array2D< float > *data, uiDataPointSetCrossPlotter::AxisData &x, uiDataPointSetCrossPlotter::AxisData &y, const ObjectSet< SelectionGrp > &, const char *header)
 
od_int64 nrDone () const
 May be -1, i.e. class does not report nrdone. More...
 
uiString uiNrDoneText () const
 will be nrDoneText() in 7.x More...
 
od_int64 nrIterations () const
 
bool doWork (od_int64 start, od_int64 stop, int)
 
bool isSelectionValid (uiDataPointSet::DRowID)
 
void setNrBins (int nrbinx, int nrbiny)
 
void setWorld2Ui (const uiWorld2Ui &)
 
void setMathObj (Math::Expression *)
 
void setModifiedColIds (const TypeSet< uiDataPointSet::DColID > &)
 
void setDPSChangeable (bool yn)
 
void setRemSelected (bool yn)
 
void setCurGroup (int curgrp)
 
void setCellXSize (float sz)
 
void setCellYSize (float sz)
 
void setCellSize (float sz)
 
int indexSize () const
 
void setAreaType (int areatype)
 
int areaType () const
 
void getFreqData (Array2D< float > &) const
 
const TypeSet< RowCol > & selRCs () const
 
const Interval< int > & usedXPixRg () const
 
- Public Member Functions inherited from ParallelTask
virtual ~ParallelTask ()
 
bool execute ()
 
virtual bool executeParallel (bool parallel)
 
void setProgressMeter (ProgressMeter *)
 Must be called before execute() More...
 
int64_t totalNr () const
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual uiString uiMessage () const
 will be message() again in 7.x More...
 
virtual void enableWorkControl (bool=true)
 Must be called before execute() More...
 
bool workControlEnabled () const
 
virtual void controlWork (Control)
 
virtual Control getState () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Protected Attributes

uiDataPointSetuidps_
 
DataPointSetdps_
 
Math::Expressionmathobj_
 
const ObjectSet< SelectionGrp > & selgrpset_
 
uiWorld2Ui w2ui_
 
TypeSet< RowColselrowcols_
 
TypeSet< uiDataPointSet::DColIDmodcolidxs_
 
Array2D< float > * data_
 
Array2D< float > * freqdata_
 
uiDataPointSetCrossPlotter::AxisDatax_
 
uiDataPointSetCrossPlotter::AxisDatay_
 
Interval< int > xpixrg_
 
Interval< int > usedxpixrg_
 
Interval< int > ypixrg_
 
Threads::Lock lock_
 
bool changedps_
 
bool removesel_
 
int curgrp_
 
int indexsz_
 
int nrdone_
 
float cellxsize_
 
float cellysize_
 
int areatype_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Private Member Functions

 mODTextTranslationClass (DensityCalc)
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run, Pause, Stop }
 
- 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 ()
 
- Protected Member Functions inherited from ParallelTask
virtual int maxNrThreads () const
 
virtual int minThreadSize () const
 
virtual bool stopAllOnFailure () const
 
 ParallelTask (const char *nm=0)
 
 ParallelTask (const ParallelTask &)
 
int64_t calculateThreadSize (int64_t totalnr, int nrthreads, int thread) const
 
void addToNrDone (int64_t increment)
 
void quickAddToNrDone (int64_t loopidx)
 
void resetNrDone ()
 
- Protected Member Functions inherited from Task
 Task (const char *nm=0)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Detailed Description

calculates densities for teh density display of a crossplot

Constructor & Destructor Documentation

DensityCalc::DensityCalc ( uiDataPointSet uidps,
Array2D< float > *  data,
uiDataPointSetCrossPlotter::AxisData x,
uiDataPointSetCrossPlotter::AxisData y,
const ObjectSet< SelectionGrp > &  grps,
const char *  header 
)

Member Function Documentation

int DensityCalc::areaType ( ) const
inline
bool DensityCalc::doWork ( od_int64  start,
od_int64  stop,
int   
)
void DensityCalc::getFreqData ( Array2D< float > &  freqdata) const
int DensityCalc::indexSize ( ) const
inline
bool DensityCalc::isSelectionValid ( uiDataPointSet::DRowID  rid)
DensityCalc::mODTextTranslationClass ( DensityCalc  )
private
od_int64 DensityCalc::nrDone ( ) const
inlinevirtual

May be -1, i.e. class does not report nrdone.

Reimplemented from ParallelTask.

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

Implements ParallelTask.

const TypeSet< RowCol > & DensityCalc::selRCs ( ) const
inline
void DensityCalc::setAreaType ( int  areatype)
inline
void DensityCalc::setCellSize ( float  sz)
inline
void DensityCalc::setCellXSize ( float  sz)
inline
void DensityCalc::setCellYSize ( float  sz)
inline
void DensityCalc::setCurGroup ( int  curgrp)
inline
void DensityCalc::setDPSChangeable ( bool  yn)
inline
void DensityCalc::setMathObj ( Math::Expression mobj)
inline
void DensityCalc::setModifiedColIds ( const TypeSet< uiDataPointSet::DColID > &  ids)
inline
void DensityCalc::setNrBins ( int  nrbinx,
int  nrbiny 
)
void DensityCalc::setRemSelected ( bool  yn)
inline
void DensityCalc::setWorld2Ui ( const uiWorld2Ui w2ui)
inline
uiString DensityCalc::uiNrDoneText ( ) const
inlinevirtual

will be nrDoneText() in 7.x

Reimplemented from Task.

const Interval< int > & DensityCalc::usedXPixRg ( ) const
inline

Member Data Documentation

int DensityCalc::areatype_
protected
float DensityCalc::cellxsize_
protected
float DensityCalc::cellysize_
protected
bool DensityCalc::changedps_
protected
int DensityCalc::curgrp_
protected
Array2D<float>* DensityCalc::data_
protected
DataPointSet& DensityCalc::dps_
protected
Array2D<float>* DensityCalc::freqdata_
protected
int DensityCalc::indexsz_
protected
Threads::Lock DensityCalc::lock_
protected
Math::Expression* DensityCalc::mathobj_
protected
TypeSet<uiDataPointSet::DColID> DensityCalc::modcolidxs_
protected
int DensityCalc::nrdone_
protected
bool DensityCalc::removesel_
protected
const ObjectSet<SelectionGrp>& DensityCalc::selgrpset_
protected
TypeSet<RowCol> DensityCalc::selrowcols_
protected
uiDataPointSet& DensityCalc::uidps_
protected
Interval<int> DensityCalc::usedxpixrg_
protected
uiWorld2Ui DensityCalc::w2ui_
protected
uiDataPointSetCrossPlotter::AxisData& DensityCalc::x_
protected
Interval<int> DensityCalc::xpixrg_
protected
uiDataPointSetCrossPlotter::AxisData& DensityCalc::y_
protected
Interval<int> DensityCalc::ypixrg_
protected

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