Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Carsten Hof 28/07/04
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 *************************************************************************/
12#ifndef ROOT_TGraphEditor
13#define ROOT_TGraphEditor
16#include "TGedFrame.h"
18class TGraph;
19class TGButtonGroup;
20class TGTextEntry;
21class TGCheckButton;
22class TGRadioButton;
25class TGraphEditor : public TGedFrame {
28 char fDrawShape; ///< Shape of the Graph (simple, smooth, bar)
29 TGTextEntry *fTitle; ///< Contains the title of the graph
30 Int_t fTitlePrec; ///< font precision level
31 TGraph *fGraph; ///< Graph object
32 TGButtonGroup *fgr; ///< Group the Radiobuttons:
33 TGRadioButton *fShape; ///< just draw unconnected points
34 TGRadioButton *fShape0; ///< set smooth graph curve
35 TGRadioButton *fShape1; ///< set simple poly-line between every graph point
36 TGRadioButton *fShape2; ///< set graph draw mode to bar chart
37 TGRadioButton *fShape3; ///< set graph draw mode to fill area
38 TGLayoutHints *fShape1lh; ///< layout-hints for fShape1
39 TGCheckButton *fMarkerOnOff; ///< set Marker visible/unvisible
40 TGLineWidthComboBox *fWidthCombo; ///< Exclusion zone width
41 TGCheckButton *fExSide; ///< set the exclusion zone side
43 virtual void ConnectSignals2Slots();
46 TGraphEditor(const TGWindow *p = 0,
47 Int_t width = 140, Int_t height = 30,
48 UInt_t options = kChildFrame,
50 virtual ~TGraphEditor();
51 virtual void SetModel(TObject* obj);
53 // slots related to graph attributes
54 virtual void DoShape();
55 virtual void DoMarkerOnOff(Bool_t on);
56 virtual void DoTitle(const char *text);
57 virtual void DoGraphLineWidth();
59 ClassDef(TGraphEditor,0) // graph editor
@ kChildFrame
Definition: GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
int Int_t
Definition: RtypesCore.h:45
unsigned int UInt_t
Definition: RtypesCore.h:46
bool Bool_t
Definition: RtypesCore.h:63
#define ClassDef(name, id)
Definition: Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
Organizes TGButton widgets in a group.
Definition: TGButtonGroup.h:21
Selects different options.
Definition: TGButton.h:264
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
This class describes layout hints used by the layout classes.
Definition: TGLayout.h:50
The TGLineWidthComboBox user callable and it creates a combobox for selecting the line width.
Definition: TGComboBox.h:157
Selects different options.
Definition: TGButton.h:322
A TGTextEntry is a one line text input widget.
Definition: TGTextEntry.h:24
ROOT GUI Window base class.
Definition: TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition: TGedFrame.h:27
Implements GUI for graph attributes.
Definition: TGraphEditor.h:25
virtual void SetModel(TObject *obj)
TGLayoutHints * fShape1lh
layout-hints for fShape1
Definition: TGraphEditor.h:38
virtual void DoMarkerOnOff(Bool_t on)
TGRadioButton * fShape0
set smooth graph curve
Definition: TGraphEditor.h:34
virtual ~TGraphEditor()
virtual void DoShape()
TGraph * fGraph
Graph object.
Definition: TGraphEditor.h:31
virtual void DoGraphLineWidth()
TGRadioButton * fShape
just draw unconnected points
Definition: TGraphEditor.h:33
TGCheckButton * fMarkerOnOff
set Marker visible/unvisible
Definition: TGraphEditor.h:39
char fDrawShape
Shape of the Graph (simple, smooth, bar)
Definition: TGraphEditor.h:28
virtual void ConnectSignals2Slots()
TGButtonGroup * fgr
Group the Radiobuttons:
Definition: TGraphEditor.h:32
Int_t fTitlePrec
font precision level
Definition: TGraphEditor.h:30
virtual void DoTitle(const char *text)
TGRadioButton * fShape2
set graph draw mode to bar chart
Definition: TGraphEditor.h:36
TGCheckButton * fExSide
set the exclusion zone side
Definition: TGraphEditor.h:41
TGraphEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
TGRadioButton * fShape3
set graph draw mode to fill area
Definition: TGraphEditor.h:37
TGLineWidthComboBox * fWidthCombo
Exclusion zone width.
Definition: TGraphEditor.h:40
TGRadioButton * fShape1
set simple poly-line between every graph point
Definition: TGraphEditor.h:35
TGTextEntry * fTitle
Contains the title of the graph.
Definition: TGraphEditor.h:29
A TGraph is an object made of two arrays X and Y with npoints each.
Definition: TGraph.h:41
Mother of all ROOT objects.
Definition: TObject.h:37
TText * text