Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TAdvancedGraphicsDialog.h
Go to the documentation of this file.
1// @(#)root/fitpanel:$Id$
2// Author: David Gonzalez Maline 11/12/2008
3
4/*************************************************************************
5 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT__TAdvancedGraphicsDialog__
13#define ROOT__TAdvancedGraphicsDialog__
14
15
16#include "TGFrame.h"
17#include "TGButton.h"
18#include "TGComboBox.h"
19#include "TGLabel.h"
20#include "TGTextEntry.h"
21#include "TGNumberEntry.h"
22#include "TGTab.h"
23#include "TGColorSelect.h"
24
25#include "TBackCompFitter.h"
26#include "TF1.h"
27
34
35 kAGD_PARCOUNTER = 1000
36};
37
39
40private:
41 TGVerticalFrame *fMainFrame; ///< Main Vertical Frame
42 TGTab *fTab; ///< Tab containing the available methods
43
44 TGVerticalFrame *fContourFrame; ///< Contour Frame
45 TGNumberEntry *fContourPoints; ///< Number of points for the graph
46 TGComboBox *fContourPar1; ///< Parameter 1 for Contour
47 TGComboBox *fContourPar2; ///< Parameter 2 for Contour
48 TGNumberEntry *fContourError; ///< Error Level for Contour
49 TGCheckButton *fContourOver; ///< Superimpose the graphics
50 TGColorSelect *fContourColor; ///< Color for the graph
51
52 TGVerticalFrame *fScanFrame; ///< Scan Frame
53 TGNumberEntry *fScanPoints; ///< Number of points for the graph
54 TGComboBox *fScanPar; ///< Parameter for Scan
55 TGNumberEntry *fScanMin; ///< Min Value for Contour
56 TGNumberEntry *fScanMax; ///< Max Value for Contour
57
58 TGVerticalFrame *fConfFrame; ///< Confidence Intervals Frame
59 TGNumberEntry *fConfLevel; ///< Confidence Level
60 TGColorSelect *fConfColor; ///< Color for the graph
61
62 TGTextButton *fDraw; ///< ok button
63 TGTextButton *fClose; ///< cancel button
64
65 TBackCompFitter *fFitter; ///< Fitter.
66
67 void CreateContourFrame();
68 void CreateScanFrame();
69 void CreateConfFrame();
71
72 void DrawContour();
73 void DrawScan();
75
76 void ConnectSlots();
77
80
81public:
83 ~TAdvancedGraphicsDialog() override;
84
85 void DoDraw();
86 void DoChangedScanPar(Int_t selected);
87
88 ClassDefOverride(TAdvancedGraphicsDialog, 0) // Simple input dialog
89};
90
91#endif
92
int main()
Definition Prototype.cxx:12
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
@ kAGD_CONTOURMETHOD
winID h TVirtualViewer3D TVirtualGLPainter p
Allows to create advanced graphics from the last fit made in the fitpanel.
TBackCompFitter * fFitter
Fitter.
~TAdvancedGraphicsDialog() override
Cleanup dialog.
TGVerticalFrame * fContourFrame
Contour Frame.
TGNumberEntry * fScanMax
Max Value for Contour.
void DoDraw()
Calls the corresponding method, depending on the selected tab.
void CreateScanFrame()
Create the frame that contains all the necessary information for the Scan method.
void CreateConfFrame()
Create the frame that contains all the necessary information for the Confidence Level method.
TGComboBox * fContourPar1
Parameter 1 for Contour.
TGComboBox * fScanPar
Parameter for Scan.
void ConnectSlots()
Connect the slots (buttons mainly + specific methods)
TGNumberEntry * fScanPoints
Number of points for the graph.
TGNumberEntry * fContourError
Error Level for Contour.
TGTextButton * fDraw
ok button
TGComboBox * fContourPar2
Parameter 2 for Contour.
TGVerticalFrame * fMainFrame
Main Vertical Frame.
TGColorSelect * fConfColor
Color for the graph.
TGVerticalFrame * fScanFrame
Scan Frame.
void CreateContourFrame()
Create the frame that contains all the necessary information for the Contour method.
void DrawContour()
Generates all necessary data for the Contour method from its tab.
TGNumberEntry * fConfLevel
Confidence Level.
TGTextButton * fClose
cancel button
TAdvancedGraphicsDialog(const TAdvancedGraphicsDialog &)
TGTab * fTab
Tab containing the available methods.
TGNumberEntry * fScanMin
Min Value for Contour.
TGVerticalFrame * fConfFrame
Confidence Intervals Frame.
void DoChangedScanPar(Int_t selected)
Changes the Min and Max default values of the scan method, depending on the selected parameter.
TGColorSelect * fContourColor
Color for the graph.
void DrawScan()
Generates all necessary data for the Scan method from its tab.
void DrawConfidenceLevels()
Generates all necessary data for the Scan method from its tab.
TAdvancedGraphicsDialog & operator=(const TAdvancedGraphicsDialog &)
TGCheckButton * fContourOver
Superimpose the graphics.
TGNumberEntry * fContourPoints
Number of points for the graph.
Backward compatible implementation of TVirtualFitter.
Selects different options.
Definition TGButton.h:264
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition TGComboBox.h:47
TGNumberEntry is a number entry input widget with up/down buttons.
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
Definition TGTab.h:46
Yield an action as soon as it is clicked.
Definition TGButton.h:142
Defines transient windows that typically are used for dialogs windows.
Definition TGFrame.h:498
A composite frame that layout their children in vertical way.
Definition TGFrame.h:374
ROOT GUI Window base class.
Definition TGWindow.h:23