45 void setNrBins(
int nrbinx,
int nrbiny);
48 void setModifiedColIds(
51 void setDPSChangeable(
bool yn);
52 void setRemSelected(
bool yn);
53 void setCurGroup(
int curgrp);
55 void setCellXSize(
float sz);
56 void setCellYSize(
float sz);
57 void setCellSize(
float sz);
58 int indexSize()
const;
60 void setAreaType(
int areatype);
103 , dps_( uidps.pointSet() )
110 , xpixrg_( x_.axis_->pixRange() )
111 , ypixrg_( y_.axis_->pixRange() )
112 , usedxpixrg_(
Interval<int> (0,0) )
113 , changedps_( false )
114 , removesel_( false )
139 {
return tr(
"Points done");}
212 arrimpl->setSize( nrbinx, nrbiny );
222 for ( ; rid<=stop; rid++ )
245 bool ptselected =
false;
246 bool ptremoved =
false;
252 for (
int selidx=0; selidx<selgrp->
size(); selidx++ )
255 const SelectionArea& selarea =
258 if ( selarea.isInside(pos) )
290 ptremoved ? 0 :
freqdata_->
get(freqx,freqy) + (float)1 );
293 ptremoved ? 0 :
freqdata_->
get(freqx,freqy) + (float)1 );
296 ptremoved ? 0 :
freqdata_->
get(freqx,freqy) + (float)1 );
319 if ( !freqdataimpl )
return;
Class to provide coordinate conversion between a cartesian coordinate system (or any other transforme...
Definition: uiworld2ui.h:55
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
static uiString tr(const char *text, const char *disambiguation=0, int pluralnr=-1)
Definition: paralleltask.h:67
Locks the lock, shutting out access from other threads if needed.
Definition: threadlock.h:85
calculates densities for teh density display of a crossplot
Definition: densitycalc.h:30
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
bool doWork(od_int64 start, od_int64 stop, int)
Definition: densitycalc.h:219
Set of data points with group selection.
Definition: datapointset.h:48
Interval< int > xpixrg_
Definition: densitycalc.h:81
Array2D< float > * freqdata_
Definition: densitycalc.h:78
virtual T get(int p0, int p1) const =0
void setMathObj(Math::Expression *)
Definition: densitycalc.h:147
uiWorld2Ui w2ui_
Definition: densitycalc.h:74
Math::Expression * mathobj_
Definition: densitycalc.h:72
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define mIsZero(x, eps)
Definition: commondefs.h:53
Interval< int > usedxpixrg_
Definition: densitycalc.h:82
bool isSelectionValid(uiDataPointSet::DRowID)
Definition: densitycalc.h:187
#define mCast(tp, v)
Definition: commondefs.h:124
#define od_int64
Definition: plftypes.h:36
DataPointSet & dps_
Definition: densitycalc.h:71
int RowID
Definition: datapointset.h:52
bool isInactive(RowID rid) const
Definition: datapointset.h:174
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: densitycalc.h:138
DensityCalc(uiDataPointSet &, Array2D< float > *data, uiDataPointSetCrossPlotter::AxisData &x, uiDataPointSetCrossPlotter::AxisData &y, const ObjectSet< SelectionGrp > &, const char *header)
Definition: densitycalc.h:96
uiDataPointSetCrossPlotter::AxisData & y_
Definition: densitycalc.h:80
float cellysize_
Definition: densitycalc.h:91
void setInactive(RowID, bool)
Definition: uistring.h:89
const Interval< int > & usedXPixRg() const
Definition: densitycalc.h:178
virtual bool validPos(int, int) const
unsigned short group(RowID) const
void setAreaType(int areatype)
Definition: densitycalc.h:181
virtual void set(int, int, T)=0
Generalization of a task that can be run in parallel.
Definition: paralleltask.h:66
virtual double getValue() const =0
bool isValidIdx(int idx) const
size_type size() const
Definition: objectset.h:50
Array2D< float > * data_
Definition: densitycalc.h:77
virtual int getSize(int dim) const =0
uiDataPointSetCrossPlotter::AxisData & x_
Definition: densitycalc.h:79
#define mNINT32(x)
Definition: commondefs.h:45
Definition: uidatapointsetcrossplot.h:94
DataPointSet::ColID colid_
Definition: uidatapointsetcrossplot.h:106
void setDPSChangeable(bool yn)
Definition: densitycalc.h:154
void setCurGroup(int curgrp)
Definition: densitycalc.h:160
bool getSelectionArea(SelectionArea &, int id) const
uiAxisHandler * axis_
Definition: uiaxisdata.h:53
TRowID tRowID(DRowID did=-99) const
DataPointSet::RowID DRowID
Definition: uidatapointset.h:51
T width(bool allowrev=true) const
Definition: ranges.h:451
void setCellXSize(float sz)
Definition: densitycalc.h:163
Definition: uidpscrossplottools.h:66
virtual void setVariableValue(int, double)
void setWorld2Ui(const uiWorld2Ui &)
Definition: densitycalc.h:144
int getPix(float absval) const
uiWorldPoint transform(uiPoint p) const
void setModifiedColIds(const TypeSet< uiDataPointSet::DColID > &)
Definition: densitycalc.h:150
TypeSet< uiDataPointSet::DColID > modcolidxs_
Definition: densitycalc.h:76
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:131
#define mDefEps
Definition: commondefs.h:58
virtual void setAll(T)
Definition: arraynd.h:386
void setSelected(RowID, int selgrp)
Interval< int > ypixrg_
Definition: densitycalc.h:83
float cellxsize_
Definition: densitycalc.h:90
IdxPair used for its row() and col().
Definition: rowcol.h:25
Parsed Math expression.
Definition: mathexpression.h:32
int areatype_
Definition: densitycalc.h:92
size_type size() const
Definition: typeset.h:254
bool removesel_
Definition: densitycalc.h:86
void include(const T &, bool allowrev=true)
Definition: ranges.h:531
int areaType() const
Definition: densitycalc.h:184
uiDataPointSet & uidps_
Definition: densitycalc.h:70
int getSelectionGroupIdx(int selaareaid) const
void setRemSelected(bool yn)
Definition: densitycalc.h:157
void setCellYSize(float sz)
Definition: densitycalc.h:166
int nrdone_
Definition: densitycalc.h:89
Edit DataPointSet.
Definition: uidatapointset.h:44
Threads::Lock lock_
Definition: densitycalc.h:84
TypeSet< RowCol > selrowcols_
Definition: densitycalc.h:75
bool includes(const X &, bool allowrev) const
Definition: ranges.h:482
int indexsz_
Definition: densitycalc.h:88
bool changedps_
Definition: densitycalc.h:85
const TypeSet< RowCol > & selRCs() const
Definition: densitycalc.h:175
T start
Definition: ranges.h:92
int curgrp_
Definition: densitycalc.h:87
void getFreqData(Array2D< float > &) const
Definition: densitycalc.h:316
#define mClass(module)
Definition: commondefs.h:164
virtual const Array2DInfo & info() const =0
int indexSize() const
Definition: densitycalc.h:172
const ObjectSet< SelectionGrp > & selgrpset_
Definition: densitycalc.h:73
od_int64 nrDone() const
May be -1, i.e. class does not report nrdone.
Definition: densitycalc.h:135
int size() const
Definition: datapointset.h:159
TColID tColID(DColID did=-99) const
void setNrBins(int nrbinx, int nrbiny)
Definition: densitycalc.h:205
void setCellSize(float sz)
Definition: densitycalc.h:169
od_int64 nrIterations() const
Definition: densitycalc.h:141
float getValue(DColID did, DRowID rid, bool userunits) const
Definition: uidatapointset.h:264