OpendTect-6_4  6.4
uihistogramdisplay.h
Go to the documentation of this file.
1 #ifndef uihistogramdisplay_h
2 #define uihistogramdisplay_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 "uifunctiondisplay.h"
17 #include "datapack.h"
18 
19 class uiTextItem;
20 template <class T> class Array2D;
21 template <class T> class Array3D;
22 namespace Stats { template <class T> class ParallelCalc; }
23 
24 class DataPointSet;
25 
28 public:
29 
31  bool withheader=false);
33 
34  void setEmpty();
35  bool setDataPackID(DataPack::ID,DataPackMgr::ID,
36  int version);
37  void setData(const float*,int sz);
38  void setData(const Array2D<float>*);
39  void setData(const DataPointSet&,int colid=2);
40 
41  void useDrawRange(bool yn);
42  const Interval<float>& getDrawRange() const { return mydrawrg_; }
43  void setDrawRange(const Interval<float>&);
45 
46  void setHistogram(const TypeSet<float>&,
47  Interval<float>,int N=-1);
48 
49  const Stats::ParallelCalc<float>& getStatCalc() { return rc_; }
50  int nrInpVals() const { return nrinpvals_; }
51  int nrClasses() const { return nrclasses_; }
52  void putN();
53 
54 protected:
55 
60  uiTextItem* header_ = nullptr;
61  uiTextItem* nitm_ = nullptr;
63 
68 
69  void updateAndDraw();
70  void updateHistogram();
71 
72 public:
73  void setData(const Array3D<float>*);
74  virtual void drawData();
75 
76 };
77 
78 
79 #endif
#define mExpClass(module)
Definition: commondefs.h:160
const Interval< float > & getDrawRange() const
Definition: uihistogramdisplay.h:42
FixedString Setup()
Definition: keystrs.h:116
int nrclasses_
Definition: uihistogramdisplay.h:58
Set of data points with group selection.
Definition: datapointset.h:48
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
int nrClasses() const
Definition: uihistogramdisplay.h:51
int ID
Each Mgr has its own ID.
Definition: datapack.h:147
int nrinpvals_
Definition: uihistogramdisplay.h:57
Definition: uiparent.h:26
int ID
Definition: datapack.h:38
TypeSet< float > mydisplaydata_
Definition: uihistogramdisplay.h:66
Interval< float > mydrawrg_
Definition: uihistogramdisplay.h:64
bool usemydrawrg_
Definition: uihistogramdisplay.h:65
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
const Stats::ParallelCalc< float > & getStatCalc()
Definition: uihistogramdisplay.h:49
Stats::ParallelCalc< float > & rc_
Definition: uihistogramdisplay.h:56
displays a function of (X,Y) pairs on a canvas - optionally a Y2.
Definition: uifunctiondisplay.h:38
ObjectSet< uiRectItem > baritems_
Definition: uihistogramdisplay.h:62
bool withheader_
Definition: uihistogramdisplay.h:59
Definition: uihistogramdisplay.h:26
TypeSet< float > originaldata_
Definition: uihistogramdisplay.h:67
Statistics.
Definition: array2dinterpol.h:28
Definition: uigraphicsitemimpl.h:273
void setEmpty()
Array3D ( Subclass of ArrayND ) is a three dimensional array.
Definition: arraynd.h:153
int nrInpVals() const
Definition: uihistogramdisplay.h:50
Notifier< uiHistogramDisplay > drawRangeChanged
Definition: uihistogramdisplay.h:44

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