 |
OpendTect
6.6
|
Go to the documentation of this file.
30 : val_(v), pos_(p), count_(cnt) {}
32 {
return pos_ == spd.
pos_; }
73 void init(
int nrsectors,
int nrparts);
76 {
return (*((*
this)[isect]))[ipart]; }
78 {
return (*((*
this)[isect]))[ipart]; }
82 {
return ((*
this)[isect])->size(); }
83 inline float angle(
int isect,
int bound=0)
const;
84 inline float angle(
int isect,
Angle::Type,
int bound=0)
const;
86 int sector(
float ang)
const;
88 int part(
int isect,
float pos)
const;
101 const float angstep = fullc /
size();
103 return centerang + bound * angstep * .5f;
109 const float ang =
angle( isect, bound );
127 const float fsect =
size() * (usrang / 360);
129 if ( sect >=
size() ) sect = 0;
136 const int nrparts =
nrParts( isect );
138 int prt = (int)fpart;
139 if ( prt<0 ) prt = 0;
140 if ( prt>=nrparts ) prt = nrparts-1;
147 init( nrsect, nrparts );
155 for (
int isect=0; isect<nrsect; isect++ )
159 for (
int ipart=0; ipart<nrparts; ipart++ )
void init(int nrsectors, int nrparts)
Definition: statdirdata.h:151
Angle::Type angletype_
Definition: statdirdata.h:68
int count_
nr data pts contributing (for confidence)
Definition: statdirdata.h:36
int nrSectors() const
Definition: statdirdata.h:79
TypeSet< SectorPartData > SectorData
Definition: statdirdata.h:41
float val_
actual angle or a value of interest
Definition: statdirdata.h:35
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:289
@ UsrDeg
Definition: angles.h:26
size_type size() const
Definition: objectset.h:55
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:81
bool isEmpty(const NLAModel *mdl)
Part of a data sector.
Definition: statdirdata.h:26
Definition: statdirdata.h:59
Type
Definition: angles.h:26
Setup setup_
Definition: statdirdata.h:90
Setup()
Definition: statdirdata.h:61
int part(int isect, float pos) const
Definition: statdirdata.h:134
float angle0_
Definition: statdirdata.h:67
void getFullCircle(Type typ, T &t)
Definition: angles.h:33
#define mClass(module)
Definition: commondefs.h:181
SectorPartData & getPartData(int isect, int ipart)
Definition: statdirdata.h:75
int nrParts(int isect) const
Definition: statdirdata.h:81
Interval< float > usrposrg_
Definition: statdirdata.h:66
virtual void erase()
Definition: manobjectset.h:161
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:274
DirectionalData(int nrsectors=0, int nrparts=0)
Definition: statdirdata.h:145
Statistics.
Definition: array2dinterpol.h:27
A circle of data.
Definition: statdirdata.h:55
const SectorPartData & getPartData(int isect, int ipart) const
Definition: statdirdata.h:77
float pos_
0=center 1=on circle = maximum value
Definition: statdirdata.h:34
int sector(float ang) const
Definition: statdirdata.h:120
T convert(Type inptyp, T val, Type outtyp)
Definition: angles.h:75
#define mNINT32(x)
Definition: commondefs.h:58
float angle(int isect, int bound=0) const
Definition: statdirdata.h:95
SectorPartData(float v=0, float p=0.5, int cnt=0)
Definition: statdirdata.h:29
Sets of (small) copyable elements.
Definition: commontypes.h:29
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021