Loading [MathJax]/extensions/tex2jax.js
Logo ROOT   6.08/07
Reference Guide
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TGraphEditor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Carsten Hof 28/07/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2002, 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_TGraphEditor
13 #define ROOT_TGraphEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TGraphEditor //
18 // //
19 // Editor for changing Graph attributes. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 class TGraph;
28 class TGButtonGroup;
29 class TGTextEntry;
30 class TGCheckButton;
31 class TGRadioButton;
33 
34 class TGraphEditor : public TGedFrame {
35 
36 protected:
37  char fDrawShape; // Shape of the Graph (simple, smooth, bar)
38  TGTextEntry *fTitle; // Contains the title of the graph
39  Int_t fTitlePrec; // font precision level
40  TGraph *fGraph; // Graph object
41  TGButtonGroup *fgr; // Group the Radiobuttons:
42  TGRadioButton *fShape; // just draw unconnected points
43  TGRadioButton *fShape0; // set smooth graph curve
44  TGRadioButton *fShape1; // set simple poly-line between every graph point
45  TGRadioButton *fShape2; // set graph draw mode to bar chart
46  TGRadioButton *fShape3; // set graph draw mode to fill area
47  TGLayoutHints *fShape1lh; // layout-hints for fShape1
48  TGCheckButton *fMarkerOnOff; // set Marker visible/unvisible
49  TGLineWidthComboBox *fWidthCombo; // Exclusion zone width
50  TGCheckButton *fExSide; // set the exclusion zone side
51 
52  virtual void ConnectSignals2Slots();
53 
54 public:
55  TGraphEditor(const TGWindow *p = 0,
56  Int_t width = 140, Int_t height = 30,
57  UInt_t options = kChildFrame,
59  virtual ~TGraphEditor();
60  virtual void SetModel(TObject* obj);
61 
62  // slots related to graph attributes
63  virtual void DoShape();
64  virtual void DoMarkerOnOff(Bool_t on);
65  virtual void DoTitle(const char *text);
66  virtual void DoGraphLineWidth();
67 
68  ClassDef(TGraphEditor,0) // graph editor
69 };
70 #endif
71 
TGRadioButton * fShape0
Definition: TGraphEditor.h:43
virtual void DoGraphLineWidth()
TGLineWidthComboBox * fWidthCombo
Definition: TGraphEditor.h:49
TGButtonGroup * fgr
Definition: TGraphEditor.h:41
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TGLayoutHints * fShape1lh
Definition: TGraphEditor.h:47
virtual void DoShape()
TGCheckButton * fMarkerOnOff
Definition: TGraphEditor.h:48
virtual ~TGraphEditor()
#define ClassDef(name, id)
Definition: Rtypes.h:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGraph * fGraph
Definition: TGraphEditor.h:40
virtual void ConnectSignals2Slots()
TGraphEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
TGRadioButton * fShape2
Definition: TGraphEditor.h:45
virtual void DoMarkerOnOff(Bool_t on)
TGRadioButton * fShape1
Definition: TGraphEditor.h:44
TGTextEntry * fTitle
Definition: TGraphEditor.h:38
unsigned int UInt_t
Definition: RtypesCore.h:42
TGRadioButton * fShape
Definition: TGraphEditor.h:42
TGRadioButton * fShape3
Definition: TGraphEditor.h:46
Int_t fTitlePrec
Definition: TGraphEditor.h:39
TText * text
virtual void SetModel(TObject *obj)
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void DoTitle(const char *text)
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:53
TGCheckButton * fExSide
Definition: TGraphEditor.h:50