OpendTect-6_4  6.4
uimapperrangeeditor.h
Go to the documentation of this file.
1 #ifndef uimapperrangeeditor_h
2 #define uimapperrangeeditor_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Umesh Sinha
9  Date: Dec 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uigroup.h"
17 
18 #include "datapack.h"
19 
20 class uiAxisHandler;
21 class uiHistogramDisplay;
22 class uiLineItem;
23 class uiPixmapItem;
24 class uiTextItem;
25 
26 template <class T> class Array2D;
27 namespace ColTab { class MapperSetup; class Sequence; }
28 
30 {
31 public:
33  bool fixdrawrg=true);
35 
36  int ID() { return id_; }
37  void setID( int id ) { id_ = id; }
38 
39  void setEmpty();
40  bool setDataPackID(DataPack::ID,DataPackMgr::ID,
41  int version=0);
42  void setData(const Array2D<float>*);
43  void setMarkValue(float,bool forx);
44 
45  void setColTabMapperSetup(
46  const ColTab::MapperSetup&);
47  const ColTab::MapperSetup& getColTabMapperSetup() { return *ctmapper_; }
48  void setColTabSeq(const ColTab::Sequence&);
49  const ColTab::Sequence& getColTabSeq() const { return *ctseq_; }
50 
51  uiHistogramDisplay& getDisplay() { return *histogramdisp_; }
52 
55 
56 protected:
57 
59  int id_;
61 
64 
68 
75 
78  int startpix_;
79  int stoppix_;
80 
81  bool mousedown_;
82 
83  void init();
84  void drawAgain();
85  void drawText();
86  void drawLines();
87  void drawPixmaps();
88  bool changeLinePos(bool pressedonly=false);
89 
90  void mousePressed(CallBacker*);
91  void mouseMoved(CallBacker*);
92  void mouseReleased(CallBacker*);
93  void wheelMoved(CallBacker*);
94 
95  void histogramResized(CallBacker*);
96  void histDRChanged(CallBacker*);
97 };
98 
99 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
Interval< float > cliprg_
Definition: uimapperrangeeditor.h:77
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
void setID(int id)
Definition: uimapperrangeeditor.h:37
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
int stoppix_
Definition: uimapperrangeeditor.h:79
uiPixmapItem * rightcoltab_
Definition: uimapperrangeeditor.h:67
Notifier< uiMapperRangeEditor > rangeChanged
Definition: uimapperrangeeditor.h:53
bool init()
Interval< float > datarg_
Definition: uimapperrangeeditor.h:76
int ID
Each Mgr has its own ID.
Definition: datapack.h:147
uiPixmapItem * leftcoltab_
Definition: uimapperrangeeditor.h:65
Handles an axis on a plot.
Definition: uiaxishandler.h:51
uiLineItem * minline_
Definition: uimapperrangeeditor.h:69
bool mousedown_
Definition: uimapperrangeeditor.h:81
Definition: uiparent.h:26
int ID
Definition: datapack.h:38
const ColTab::MapperSetup & getColTabMapperSetup()
Definition: uimapperrangeeditor.h:47
uiLineItem * ctminline_
Definition: uimapperrangeeditor.h:71
uiPixmapItem * centercoltab_
Definition: uimapperrangeeditor.h:66
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
uiLineItem * ctmaxline_
Definition: uimapperrangeeditor.h:72
uiTextItem * minvaltext_
Definition: uimapperrangeeditor.h:73
Definition: uimapperrangeeditor.h:29
const ColTab::Sequence & getColTabSeq() const
Definition: uimapperrangeeditor.h:49
Setup class for colortable Mapper.
Definition: coltabmapper.h:35
uiAxisHandler * xax_
Definition: uimapperrangeeditor.h:60
uiLineItem * maxline_
Definition: uimapperrangeeditor.h:70
Definition: uihistogramdisplay.h:26
int id_
Definition: uimapperrangeeditor.h:59
Notifier< uiMapperRangeEditor > sequenceChanged
Definition: uimapperrangeeditor.h:54
uiTextItem * maxvaltext_
Definition: uimapperrangeeditor.h:74
uiHistogramDisplay & getDisplay()
Definition: uimapperrangeeditor.h:51
Definition: uigraphicsitemimpl.h:172
Color Table
Definition: coltab.h:22
int startpix_
Definition: uimapperrangeeditor.h:78
Definition: uigraphicsitemimpl.h:273
int ID()
Definition: uimapperrangeeditor.h:36
ColTab::Sequence * ctseq_
Definition: uimapperrangeeditor.h:63
ColTab::MapperSetup * ctmapper_
Definition: uimapperrangeeditor.h:62
Definition: uigraphicsitemimpl.h:110
uiHistogramDisplay * histogramdisp_
Definition: uimapperrangeeditor.h:58

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