OpendTect-6_4  6.4
array2dbitmapimpl.h
Go to the documentation of this file.
1 #ifndef array2dbitmapimpl_h
2 #define array2dbitmapimpl_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H. Bril
8  Date: Sep 2006
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "generalmod.h"
15 #include "array2dbitmap.h"
16 
21 mStruct(General) WVAA2DBitMapGenPars : public A2DBitMapGenPars
22 {
23  WVAA2DBitMapGenPars()
24  : drawwiggles_(true)
25  , drawrefline_(false)
26  , filllow_(false)
27  , fillhigh_(true)
28  , minpixperdim0_(2)
29  , overlap_(0.5)
30  , reflinevalue_(mUdf(float))
31  , x1reversed_(false) { midvalue_ = 0; }
32 
33  bool drawwiggles_;
34  bool drawrefline_;
35  bool filllow_;
36  bool fillhigh_;
37  bool x1reversed_;
38 
39  float overlap_;
40  float reflinevalue_;
43  int minpixperdim0_;
44 
45  static char cRefLineFill(); // => -126
46  static char cWiggFill(); // => -125
47  static char cLowFill(); // => -124
48  static char cHighFill(); // => -123
49 };
50 
51 
57 {
58 public:
59 
61  const A2DBitMapPosSetup&);
62 
63  WVAA2DBitMapGenPars& wvapars() { return gtPars(); }
64  const WVAA2DBitMapGenPars& wvapars() const { return gtPars(); }
65 
66 protected:
67 
68  inline WVAA2DBitMapGenPars& gtPars() const
69  { return (WVAA2DBitMapGenPars&)pars_; }
70 
71  float stripwidth_;
72 
74  const WVAA2DBitMapGenerator&);
77 
78  Interval<int> getDispTrcIdxs() const;
79  float getDim0Offset(float val) const;
80  int dim0SubSampling(int nrdisptrcs) const;
81 
82  void doFill();
83  void drawTrace(int);
84  void drawVal(int,int,float,float,float,float);
85 };
86 
87 
88 namespace Interpolate { template <class T> class Applier2D; }
89 
94 mStruct(General) VDA2DBitMapGenPars : public A2DBitMapGenPars
95 {
96  VDA2DBitMapGenPars()
97  : lininterp_(false) {}
98 
99  bool lininterp_;
100 
101  static char cMinFill(); // => -120
102  static char cMaxFill(); // => 120
103 
104  static float offset(char);
105 };
106 
107 
114 {
115 public:
116 
118  const A2DBitMapPosSetup&);
119 
120  VDA2DBitMapGenPars& vdpars() { return gtPars(); }
121  const VDA2DBitMapGenPars& vdpars() const { return gtPars(); }
122 
123  void linearInterpolate(bool yn)
124  { gtPars().lininterp_ = yn; }
125 
126 protected:
127  od_int64 nrIterations() const;
128  bool doWork(od_int64,od_int64,int);
129 
130  inline VDA2DBitMapGenPars& gtPars() const
131  { return (VDA2DBitMapGenPars&)pars_; }
132 
133  float strippixs_;
134 
136  const VDA2DBitMapGenerator&);
139 
140  void doFill();
141 
142  void drawStrip(int);
143  void drawPixLines(int,const Interval<int>&);
144  void fillInterpPars(Interpolate::Applier2D<float>&,
145  int,int);
146  void drawVal(int,int,float);
147 
149 };
150 
151 
152 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: interpol1d.h:38
VDA2DBitMapGenPars & gtPars() const
Definition: array2dbitmapimpl.h:130
#define mStruct(module)
Definition: commondefs.h:165
const VDA2DBitMapGenPars & vdpars() const
Definition: array2dbitmapimpl.h:121
#define od_int64
Definition: plftypes.h:36
void linearInterpolate(bool yn)
Definition: array2dbitmapimpl.h:123
Array2D Bitmap generation setup.
Definition: array2dbitmap.h:109
Generalization of a task that can be run in parallel.
Definition: paralleltask.h:66
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
WVAA2DBitMapGenPars & wvapars()
Definition: array2dbitmapimpl.h:63
const WVAA2DBitMapGenPars & wvapars() const
Definition: array2dbitmapimpl.h:64
Array2D<float>& + statistics.
Definition: array2dbitmap.h:53
TypeSet< int > stripstodraw_
Definition: array2dbitmapimpl.h:148
float stripwidth_
Definition: array2dbitmapimpl.h:71
VDA2DBitMapGenPars & vdpars()
Definition: array2dbitmapimpl.h:120
specification for a 2D interpolator
Definition: interpol2d.h:45
Variable density A2DBitMap generation parameters.
Definition: array2dbitmapimpl.h:112
WVAA2DBitMapGenPars & gtPars() const
Definition: array2dbitmapimpl.h:68
float strippixs_
Definition: array2dbitmapimpl.h:133
Generates Array2D bitmap from Array2D<float>.
Definition: array2dbitmap.h:178
Common parameters for A2DBitMapGenerators.
Definition: array2dbitmapimpl.h:56

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