1 #ifndef array2dbitmap_h 2 #define array2dbitmap_h 14 #include "generalmod.h" 15 #include "generalmod.h" 22 #define A2DBitMapImpl Array2DImpl<char> 33 , clipratio_(0.025,0.025)
34 , midvalue_(
mUdf(
float) )
44 static char cNoFill();
58 : data_(d) { collectData(); }
64 virtual float midVal()
const;
113 A2DBitMapPosSetup(
const Array2DInfo&,
float* dim0pos=0);
115 virtual ~A2DBitMapPosSetup();
117 void setDim0Positions(
float* dim0positions);
119 void setDim1Positions(
float,
float);
126 {
return dim ? szdim1_ : szdim0_; }
129 { (dim ? dim1rg_ : dim0rg_) = r; }
131 {
return dim ? dim1rg_ : dim0rg_; }
134 void setBitMapSizes(
int,
int)
const;
135 inline int nrXPix()
const {
return nrxpix_; }
136 inline int nrYPix()
const {
return nrypix_; }
137 void setPixSizes(
int,
int);
142 {
return dim ? pixperdim1_ : pixperdim0_; }
144 {
return (pos - (dim ? dim1rg_ : dim0rg_).start)
145 * getPixPerDim( dim ); }
147 int getPix(
int dim,
float)
const;
149 bool isInside(
int dim,
float)
const;
187 int bitmapSize(
int dim)
const;
191 {
if ( bitmap_ ) initBitMap( *bitmap_ ); }
192 void setPixSizes(
int,
int);
196 A2DBitMapGenPars&
pars() {
return pars_; }
197 const A2DBitMapGenPars&
pars()
const {
return pars_; }
228 virtual void doFill() = 0;
const Array2D< float > & data_
Definition: array2dbitmap.h:71
int szdim0_
Definition: array2dbitmap.h:156
#define mExpClass(module)
Definition: commondefs.h:160
int nrypix_
Definition: array2dbitmap.h:165
virtual ~A2DBitMapGenerator()
Definition: array2dbitmap.h:182
const A2DBitMapInpData & data_
Definition: array2dbitmap.h:211
const float * dim0pos_
Definition: array2dbitmap.h:219
Interval< float > dim1rg_
Definition: array2dbitmap.h:222
float getPixPerDim(int dim) const
Definition: array2dbitmap.h:141
int szdim0_
Definition: array2dbitmap.h:217
int nrxpix_
Definition: array2dbitmap.h:164
const A2DBitMapGenPars & pars() const
Definition: array2dbitmap.h:197
const Interval< float > & dimRange(int dim) const
Definition: array2dbitmap.h:130
float pixperdim1_
Definition: array2dbitmap.h:169
#define mStruct(module)
Definition: commondefs.h:165
int nrYPix() const
Definition: array2dbitmap.h:136
A2DBitMapGenPars & pars_
Definition: array2dbitmap.h:213
const A2DBitMap & bitmap() const
Definition: array2dbitmap.h:186
Interval< float > scalerg_
Definition: array2dbitmap.h:225
A2DBitMap & bitmap()
Definition: array2dbitmap.h:185
int availableYPix() const
Definition: array2dbitmap.h:139
float dim0MedianDist() const
Definition: array2dbitmap.h:132
Interval< float > dim0rg_
Definition: array2dbitmap.h:159
virtual ~A2DBitMapInpData()
Definition: array2dbitmap.h:59
int availableXPix() const
Definition: array2dbitmap.h:138
A2DBitMapInpData(const Array2D< float > &d)
Definition: array2dbitmap.h:57
A2DBitMap * bitmap_
Definition: array2dbitmap.h:214
float dim1perpix_
Definition: array2dbitmap.h:224
float pixperdim0_
Definition: array2dbitmap.h:168
Array2D Bitmap generation setup.
Definition: array2dbitmap.h:109
void setDimRange(int dim, const Interval< float > &r)
'zooming'
Definition: array2dbitmap.h:128
const A2DBitMapInpData & data() const
Definition: array2dbitmap.h:198
Interval< float > dim1rg_
Definition: array2dbitmap.h:160
void initBitMap()
Definition: array2dbitmap.h:190
A2DBitMapGenPars & pars()
Definition: array2dbitmap.h:196
const float * dim0Positions() const
Definition: array2dbitmap.h:121
int szdim1_
Definition: array2dbitmap.h:218
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
float dim0perpix_
Definition: array2dbitmap.h:223
int dimSize(int dim) const
Definition: array2dbitmap.h:125
const A2DBitMapPosSetup & setup_
Definition: array2dbitmap.h:212
int availablenrxpix_
Definition: array2dbitmap.h:166
const Interval< float > getScaleRange() const
Definition: array2dbitmap.h:201
Contains the information about the size of Array2D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:95
Array2D< char > A2DBitMap
Definition: array2dbitmap.h:21
float getPixOffs(int dim, float pos) const
Definition: array2dbitmap.h:143
Array2D<float>& + statistics.
Definition: array2dbitmap.h:53
float * dim0pos_
Definition: array2dbitmap.h:154
float scalewidth_
Definition: array2dbitmap.h:226
float dim0mediandist_
Definition: array2dbitmap.h:161
Interval< float > dim0rg_
Definition: array2dbitmap.h:221
const Array2D< float > & data() const
Definition: array2dbitmap.h:61
Interval< float > dim1pos_
Definition: array2dbitmap.h:155
DataClipper clipper_
Definition: array2dbitmap.h:69
const Interval< float > & dim1Positions() const
Definition: array2dbitmap.h:123
int szdim1_
Definition: array2dbitmap.h:157
const A2DBitMapPosSetup & setup() const
Definition: array2dbitmap.h:199
int nrXPix() const
Definition: array2dbitmap.h:135
int availablenrypix_
Definition: array2dbitmap.h:167
Interval< float > dim1pos_
Definition: array2dbitmap.h:220
Generates Array2D bitmap from Array2D<float>.
Definition: array2dbitmap.h:178
A DataClipper gets a bunch of data and determines at what value to clip if a certain clip percentage ...
Definition: dataclipper.h:73