15 #include "generalmod.h" 27 namespace Pos {
class Filter;
class Provider; }
61 Pos() : offsx_(0), offsy_(0), z_(0), nr_(0) {}
63 : binid_(bid), nr_(0), z_(_z)
64 , offsx_(0), offsy_(0) {}
65 Pos(
const Coord&,
float z);
69 {
return binid_==pos.binid_ && offsx_ ==pos.offsx_
70 && offsy_==pos.offsy_ && z_==pos.z_; }
73 float z()
const {
return z_; }
76 { binid_ = bid; offsx_ = offsy_ = 0; }
77 void set(
const Coord&);
85 {
return inx ? offsx_ : offsy_; }
87 { (inx ? offsx_ : offsy_) = o; }
89 { offsx_ = ox; offsy_ = oy; }
94 void setOffs(
const Coord&);
106 : grp_(1) { setSel(
false); }
109 : pos_(p), grp_((short)grp)
113 {
return pos_==dr.
pos_ && grp_==dr.
grp_ 114 && data_==dr.
data_; }
118 unsigned short group()
const;
119 bool isSel()
const {
return grp_ > 0; }
122 {
if ( (grp_ >= 0) != yn ) grp_ = -grp_; }
123 void setGroup(
unsigned short grp);
134 bool is2d,
bool minimal=
false);
137 bool is2d,
bool minimal=
false);
144 bool is2D()
const {
return is2d_; }
146 bool isEmpty()
const {
return bvsidxs_.isEmpty(); }
152 const char* colName(ColID)
const;
155 ColID
indexOf(
const char*)
const;
156 bool validColID(ColID)
const;
159 int size()
const {
return bvsidxs_.size(); }
160 BinID binID(RowID)
const;
161 Coord coord(RowID)
const;
162 float z(RowID)
const;
163 int trcNr(RowID)
const;
165 Pos pos(RowID)
const;
167 float value(ColID,RowID)
const;
168 bool setValue(ColID,RowID,
float);
169 float* getValues(RowID);
170 const float* getValues(RowID)
const;
171 unsigned short group(RowID)
const;
172 bool isSelected(RowID)
const;
173 int selGroup(RowID)
const;
174 bool isInactive( RowID rid )
const {
return group(rid) == 0;}
176 void setGroup(RowID,
unsigned short);
177 void setSelected(RowID,
int selgrp);
178 void setInactive(RowID,
bool);
180 int nrActive()
const;
181 void purgeInactive();
182 void purgeSelected(
bool selected_rows=
true);
185 RowID
find(
const Pos&,
float horradius,
float deltaz)
const;
186 RowID findFirst(
const Coord&)
const;
187 RowID findFirst(
const BinID&)
const;
202 bool allow_udf_values=
true,
205 void randomSubselect(
int maxsz);
208 {
return idx+nrfixedcols_; }
230 void addCol(
const char* nm,
const char* ref=0,
236 float nrKBytes()
const;
237 void dumpInfo(
IOPar&)
const;
271 virtual uiString uiNrDoneText()
const;
276 virtual od_int64 nrIterations()
const;
#define mExpClass(module)
Definition: commondefs.h:160
float binIDOffSet(bool inx) const
Definition: datapointset.h:84
DataPointSet & dps_
Definition: datapointset.h:279
const BinID & binID() const
Definition: datapointset.h:115
FixedString Filter()
Definition: keystrs.h:67
Provides a series of positions; can also be used for subselection.
Definition: posprovider.h:33
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
Set of data points with group selection.
Definition: datapointset.h:48
void setBinIDOffsets(float ox, float oy)
Definition: datapointset.h:88
bool isMinimal() const
Definition: datapointset.h:145
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
const SeisDataPack & sdp_
Definition: datapointset.h:280
const TrcKeyZSampling * sampling_
Definition: datapointset.h:286
bool isEmpty() const
Definition: datapointset.h:146
float z() const
Definition: datapointset.h:73
DataPack for volume data. Should be renamed to VolumeDataPack later.
Definition: datapackbase.h:200
void setBinIDOffset(bool inx, float o)
Definition: datapointset.h:86
#define od_int64
Definition: plftypes.h:36
int RowID
Definition: datapointset.h:52
bool isInactive(RowID rid) const
Definition: datapointset.h:174
int ColID
Definition: datapointset.h:53
const int nrfixedcols_
Definition: datapointset.h:253
Coord coord() const
Definition: datapointset.h:116
Fills DataPointSet with data from a VolumeDataPack.
Definition: datapointset.h:262
Definition: uistring.h:89
A cartesian coordinate in 2D space.
Definition: coord.h:25
Set of BufferString objects.
Definition: bufstringset.h:28
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
int component_
Definition: datapointset.h:281
position in IdxPairValueSet; an iterator.
Definition: posidxpairvalset.h:96
const BinIDValueSet & bivSet() const
Definition: datapointset.h:190
DataColDef & colDef(ColID i)
Definition: datapointset.h:221
DataPack for point data.
Definition: datapackbase.h:36
Generalization of a task that can be run in parallel.
Definition: paralleltask.h:66
bool hasstorage_
Definition: datapointset.h:285
PosVecDataSet & data_
Definition: datapointset.h:242
bool minimal_
Definition: datapointset.h:245
float z_
Definition: datapointset.h:81
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
int firstcol_
Definition: datapointset.h:282
Class that can execute a task.
Definition: task.h:169
PosVecDataSet & dataSet()
Definition: datapointset.h:196
bool simpleCoords() const
If true, coords are always SI().tranform(b)
Definition: datapointset.h:235
bool hastrcdata_
Definition: datapointset.h:284
int nrFixedCols() const
Definition: datapointset.h:151
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
static const int groupcol_
Definition: datapointset.h:252
const BinID & binID() const
Definition: datapointset.h:71
TypeSet< BinIDValueSet::SPos > bvsidxs_
Definition: datapointset.h:243
Position.
Definition: commontypes.h:42
const T * find(const ObjectSet< T > &os, const S &val)
Get const object in set.
Definition: objectset.h:183
A cartesian coordinate in 3D space.
Definition: coord.h:72
const DataColDef & colDef(ColID i) const
Definition: datapointset.h:154
void dataChanged()
Definition: datapointset.h:211
short grp_
Definition: datapointset.h:129
Data point with group. Group 0 means 'inactive', it can never be selected.
Definition: datapointset.h:102
Pos()
Definition: datapointset.h:61
int bivSetIdx(ColID idx) const
Definition: datapointset.h:207
DataRow()
Definition: datapointset.h:105
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Pos pos_
Definition: datapointset.h:127
void setSel(bool yn)
Definition: datapointset.h:121
const TypeSet< float > & data() const
Definition: datapointset.h:117
BinID binid_
Definition: datapointset.h:80
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
int nr_
unused if not 2D
Definition: datapointset.h:82
bool is2d_
Definition: datapointset.h:244
Column definition in tabular data sets.
Definition: datacoldef.h:29
float offsy_
Definition: datapointset.h:93
bool isInactive() const
Definition: datapointset.h:120
DataRow(const Pos &p, unsigned short grp=1, bool issel=false)
Definition: datapointset.h:107
BinIDValueSet::SPos bvsPos(RowID rid) const
Definition: datapointset.h:222
TypeSet< float > data_
Definition: datapointset.h:128
int size() const
Definition: datapointset.h:159
Data set consisting of data vectors.
Definition: posvecdataset.h:30
Unit of Measure.
Definition: unitofmeasure.h:35
bool is2D() const
Definition: datapointset.h:144
const PosVecDataSet & dataSet() const
Definition: datapointset.h:189
bool isSel() const
Definition: datapointset.h:119
Pos(const BinID &bid, float _z)
Definition: datapointset.h:62