JG ROOT Tools libraries  version 5.0 - august 2014
RGFitDisplayer.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RGFitDisplayer.hh
3  *
4  * Include file for class RGFitDisplayer
5  */
6 //======================================================================
7 
8 #ifndef RG_FIT_DISPLAYER_HH
9 #define RG_FIT_DISPLAYER_HH
10 
11 #include <TSystem.h>
12 #include <TPad.h>
13 #include <TCanvas.h>
14 #include <TGFrame.h>
15 #include <TGButton.h>
16 #include <TGLabel.h>
17 #include <TRootEmbeddedCanvas.h>
18 
19 #include "RGBaseRequester.hh"
20 #include "RBaseFunctions.hh"
21 
22 //======================================================================
23 /*! \class RGFitDisplayer
24  *
25  * Graphical interface to display fit results from a fitter deriving
26  * from RGFitBase.
27  */
29 {
30  //------------------------------------------------------------
31  /*! \object_doc{RGFitDisplayer} */
33  //------------------------------------------------------------
34 
35  friend class RGFitBase1D;
36 
37  static UInt_t disp_width; ///< Display window width
38  static UInt_t disp_height; ///< Display window height
39 
40  static string export_name; ///< Export name
41  static Int_t export_id; ///< File type
42 
43  protected:
44 
45  TCanvas * canvas_ptr; ///< Pointer to canvas
46 
47  // widgets
48  TRootEmbeddedCanvas * w_canvas; ///< Pointer to ROOT embedded canvas
49 
50  TGVerticalFrame * w_check_frame; ///< Frame for additional check buttons
51  TGCheckButton * w_no_difference; ///< Button for difference plot
52 
53  public:
54  // Constructor
55  RGFitDisplayer ( const TGWindow * parent, const TGWindow * main = NULL );
56  RGFitDisplayer ( const RGFitDisplayer &original );
57 
58  // Destructor
59  virtual ~RGFitDisplayer ( );
60 
61  // Construction de la requete (ajout des widgets spécifiques)
62  // et affichage
63  virtual void Construct ( );
64  virtual void MapRequester ( );
65 
66  /*! Affichage du résultat de fit dans le pad.*/
67  virtual void DrawFitResult ( ) = 0;
68 
69  virtual void ExportPlot ( );
70  virtual void PrintPlot ( );
71 
72  virtual void NoDifferenceToggled ( );
73 
74  virtual void Button ( const Int_t n );
75 
76  //------------------------------------------------------------
77  /*! For ROOT dictionary.*/
78  public:
80 };
81 
82 //======================================================================
83 #endif
TRootEmbeddedCanvas * w_canvas
Pointer to ROOT embedded canvas.
Definition: RGFitDisplayer.hh:48
Definition: RGBaseRequester.hh:91
virtual void MapRequester()
Definition: RGFitDisplayer.cpp:99
virtual void NoDifferenceToggled()
Definition: RGFitDisplayer.cpp:158
virtual void DrawFitResult()=0
static Int_t export_id
File type.
Definition: RGFitDisplayer.hh:41
Definition: RGFitDisplayer.hh:28
Definition: RGFitBase1D.hh:67
virtual void PrintPlot()
Definition: RGFitDisplayer.cpp:146
virtual void ExportPlot()
Definition: RGFitDisplayer.cpp:108
TGVerticalFrame * w_check_frame
Frame for additional check buttons.
Definition: RGFitDisplayer.hh:50
RGFitDisplayer(const TGWindow *parent, const TGWindow *main=NULL)
Definition: RGFitDisplayer.cpp:29
virtual void Construct()
Definition: RGFitDisplayer.cpp:61
ClassDef(RGFitDisplayer, 0)
GObjectV(RGFitDisplayer)
virtual void Button(const Int_t n)
Definition: RGFitDisplayer.cpp:164
static UInt_t disp_width
Display window width.
Definition: RGFitDisplayer.hh:37
TGCheckButton * w_no_difference
Button for difference plot.
Definition: RGFitDisplayer.hh:51
static UInt_t disp_height
Display window height.
Definition: RGFitDisplayer.hh:38
static string export_name
Export name.
Definition: RGFitDisplayer.hh:40
virtual ~RGFitDisplayer()
Definition: RGFitDisplayer.cpp:53
TCanvas * canvas_ptr
Pointer to canvas.
Definition: RGFitDisplayer.hh:45