OpendTect-6_4  6.4
uistatsdisplay.h
Go to the documentation of this file.
1 #ifndef uistatsdisplay_h
2 #define uistatsdisplay_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Satyaki Maitra / Bert
9  Date: Aug 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uigroup.h"
17 #include "datapack.h"
18 class uiHistogramDisplay;
19 class uiGenInput;
20 class uiLabel;
21 template <class T> class Array2D;
22 namespace Stats { template <class T> class ParallelCalc; }
23 
24 
25 mExpClass(uiTools) uiStatsDisplay : public uiGroup
27 public:
28 
29  struct Setup
30  {
32  : withplot_(true)
33  , withname_(true)
34  , withtext_(true)
35  , vertaxis_(true)
36  , countinplot_(false) {}
37 
38  mDefSetupMemb(bool,withplot)
39  mDefSetupMemb(bool,withname)
40  mDefSetupMemb(bool,withtext)
41  mDefSetupMemb(bool,vertaxis)
42  mDefSetupMemb(bool,countinplot)
43  };
44  uiStatsDisplay(uiParent*,const Setup&);
45 
46  bool setDataPackID(DataPack::ID,DataPackMgr::ID,
47  int version=0);
48  void setData(const float*,int sz);
49  void setData(const Array2D<float>*);
50  void setDataName(const char*);
51 
52  uiHistogramDisplay* funcDisp() { return histgramdisp_; }
53  void setMarkValue(float,bool forx);
54 
55  void putN();
56 
57 protected:
58 
65 
66  const Setup setup_;
67 
68  void setData(const Stats::ParallelCalc<float>&);
69 };
70 
71 
72 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
uiGenInput * avgstdfld_
Definition: uistatsdisplay.h:63
Definition: uistatsdisplay.h:25
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiGenInput * minmaxfld_
Definition: uistatsdisplay.h:62
int ID
Each Mgr has its own ID.
Definition: datapack.h:147
Definition: uiparent.h:26
int ID
Definition: datapack.h:38
uiLabel * namefld_
Definition: uistatsdisplay.h:60
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
uiHistogramDisplay * histgramdisp_
Definition: uistatsdisplay.h:59
General Input Element.
Definition: uigeninput.h:58
uiGenInput * countfld_
Definition: uistatsdisplay.h:61
Setup()
Definition: uistatsdisplay.h:31
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
Definition: uihistogramdisplay.h:26
Definition: uistatsdisplay.h:29
uiGenInput * medrmsfld_
Definition: uistatsdisplay.h:64
Definition: uilabel.h:24
uiHistogramDisplay * funcDisp()
Definition: uistatsdisplay.h:52
Statistics.
Definition: array2dinterpol.h:28
const Setup setup_
Definition: uistatsdisplay.h:66

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