OpendTect-6_4  6.4
uibitmapdisplay.h
Go to the documentation of this file.
1 #ifndef uibitmapdisplay_h
2 #define uibitmapdisplay_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 "uiflatviewmod.h"
15 #include "uigeom.h"
16 #include "callback.h"
17 #include "datapack.h"
18 
19 class uiBitMapDisplayTask;
20 class uiDynamicImageItem;
21 class uiGraphicsItem;
22 class DataPackMgr;
23 class FlatDataPack;
24 class Task;
25 
26 namespace FlatView { class Appearance; }
27 
28 
33 mExpClass(uiFlatView) uiBitMapDisplay : public CallBacker
34 {
35 public:
37  bool withalpha=true);
38  ~uiBitMapDisplay();
39 
40  void update();
41  //When inputs or settings have changed
42 
43  uiGraphicsItem* getDisplay();
44  void removeDisplay();
45 
46  void setOverlap(float v) { overlap_ = v; }
54  float getOverlap() const { return overlap_; }
55 
56  Interval<float> getDataRange(bool iswva) const;
57  const uiWorldRect& boundingBox() const;
58  void setBoundingBox(const uiWorldRect&);
59  void setDataPack(const FlatDataPack*,bool wva);
61 
62 private:
63 
64  void reGenerateCB(CallBacker*);
65  void dynamicTaskFinishCB(CallBacker*);
66 
67  Task* createDynamicTask(bool issnapshot);
68 
69  bool isVisible(bool wva) const;
70  StepInterval<double> getDataPackRange(bool wva,bool x1) const;
71  uiWorldRect getBoundingBox(bool wva) const;
72 
77  float overlap_;
79  bool withalpha_;
80 
82  uiBitMapDisplayTask* basetask_;
83 
85 };
86 
87 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
CallBack finishedcb_
Definition: uibitmapdisplay.h:84
float overlap_
Definition: uibitmapdisplay.h:77
Manages DataPacks.
Definition: datapack.h:141
float getOverlap() const
Definition: uibitmapdisplay.h:54
uiDynamicImageItem * display_
Definition: uibitmapdisplay.h:81
uiBitMapDisplayTask * basetask_
Definition: uibitmapdisplay.h:82
uiWorldRect boundingbox_
Definition: uibitmapdisplay.h:76
int workqueueid_
Definition: uibitmapdisplay.h:78
Notifier< uiBitMapDisplay > rangeUpdated
Definition: uibitmapdisplay.h:60
Takes the flat-data from a FlatViewer and puts it into a uiGraphicsItem.
Definition: uibitmapdisplay.h:33
ConstDataPackRef< FlatDataPack > wvapack_
Definition: uibitmapdisplay.h:74
ConstDataPackRef< FlatDataPack > vdpack_
Definition: uibitmapdisplay.h:75
bool withalpha_
Definition: uibitmapdisplay.h:79
DataPack for flat data.
Definition: datapackbase.h:64
Flatviewer appearance.
Definition: flatview.h:270
FlatView::Appearance & appearance_
Definition: uibitmapdisplay.h:73
void setOverlap(float v)
Definition: uibitmapdisplay.h:46
Definition: bitmap2rgb.h:18
CallBacks object-oriented (object + method).
Definition: callback.h:57
Generalization of something (e.g. a computation) that needs to be done in multiple steps...
Definition: task.h:28
Definition: uigraphicsitemimpl.h:147

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