OpendTect-6_4  6.4
bitmapmgr.h
Go to the documentation of this file.
1 #ifndef bitmapmgr_h
2 #define bitmapmgr_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: Feb 2007
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "generalmod.h"
15 
16 #include "array2dbitmap.h"
17 #include "datapack.h"
18 #include "geometry.h"
19 
20 namespace FlatView { class Appearance; }
21 class FlatDataPack;
22 
28 {
29 public:
30  BitMapMgr();
31  ~BitMapMgr();
32 
33  void init(const FlatDataPack*,const FlatView::Appearance&,
34  bool wva);
35  void clearAll();
36 
38  const Geom::Size2D<int>&) const;
40 
41  bool generate(const Geom::PosRectangle<double>& wr,
42  const Geom::Size2D<int>& bufwrsz,
43  const Geom::Size2D<int>& availpixels);
45  const A2DBitMap* bitMap() const { return bmp_; }
46  const A2DBitMapGenerator* bitMapGen() const { return gen_; }
47 
48 private:
49 
50  void setup();
51 
59  bool wva_;
60 
63 public:
64  A2DBitMapGenerator* bitMapGen() { return gen_; }
65 };
66 
67 
72 mExpClass(General) BitMapGenTask : public Task
73 {
74 public:
77  const Geom::Size2D<int>& bufwrsz,
78  const Geom::Size2D<int>& pix )
79  : mgr_(mgr), wr_(wr), bufwrsz_(bufwrsz), availpixels_(pix){}
80 
81  bool execute() { return mgr_.generate(wr_,bufwrsz_,availpixels_); }
82 
83 protected:
84 
89 };
90 
91 #endif
#define mExpClass(module)
Definition: commondefs.h:160
A2DBitMap * bmp_
Definition: bitmapmgr.h:55
BitMapMgr & mgr_
Definition: bitmapmgr.h:85
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
const Geom::Size2D< int > & availpixels_
Definition: bitmapmgr.h:88
const A2DBitMapGenerator * bitMapGen() const
Definition: bitmapmgr.h:46
bool init()
Geom::PosRectangle< double > wr_
Definition: bitmapmgr.h:62
Array2D Bitmap generation setup.
Definition: array2dbitmap.h:109
const Geom::Size2D< int > & bufwrsz_
Definition: bitmapmgr.h:87
Bitmap generation Task.
Definition: bitmapmgr.h:72
A2DBitMapGenerator * gen_
Definition: bitmapmgr.h:58
A2DBitMapGenerator * bitMapGen()
Definition: bitmapmgr.h:64
ConstDataPackRef< FlatDataPack > datapack_
Definition: bitmapmgr.h:53
Array2D<float>& + statistics.
Definition: array2dbitmap.h:53
bool execute()
Definition: bitmapmgr.h:81
BitMapGenTask(BitMapMgr &mgr, const Geom::PosRectangle< double > &wr, const Geom::Size2D< int > &bufwrsz, const Geom::Size2D< int > &pix)
Definition: bitmapmgr.h:75
const Geom::PosRectangle< double > & wr_
Definition: bitmapmgr.h:86
bool wva_
Definition: bitmapmgr.h:59
Geom::Size2D< int > sz_
Definition: bitmapmgr.h:61
A2DBitMapPosSetup * pos_
Definition: bitmapmgr.h:56
const A2DBitMap * bitMap() const
Definition: bitmapmgr.h:45
FlatView::Appearance & appearance_
Definition: bitmapmgr.h:54
Manages bitmaps.
Definition: bitmapmgr.h:27
DataPack for flat data.
Definition: datapackbase.h:64
Flatviewer appearance.
Definition: flatview.h:270
A2DBitMapInpData * data_
Definition: bitmapmgr.h:57
Definition: bitmap2rgb.h:18
Generalization of something (e.g. a computation) that needs to be done in multiple steps...
Definition: task.h:28
Threads::Lock lock_
Definition: bitmapmgr.h:52
Generates Array2D bitmap from Array2D<float>.
Definition: array2dbitmap.h:178

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