Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TGedFrame.h"
17
18class TGraph;
19class TGButtonGroup;
20class TGTextEntry;
21class TGCheckButton;
22class TGRadioButton;
24
25class TGraphEditor : public TGedFrame {
26
27protected:
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
42
43 virtual void ConnectSignals2Slots();
44
45public:
46 TGraphEditor(const TGWindow *p = nullptr,
47 Int_t width = 140, Int_t height = 30,
48 UInt_t options = kChildFrame,
50 virtual ~TGraphEditor();
51 virtual void SetModel(TObject* obj);
52
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();
58
59 ClassDef(TGraphEditor,0) // graph editor
60};
61#endif
62
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:337
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char text
Organizes TGButton widgets in a group.
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:158
Selects different options.
Definition TGButton.h:321
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.
virtual void SetModel(TObject *obj)
TGLayoutHints * fShape1lh
layout-hints for fShape1
virtual void DoMarkerOnOff(Bool_t on)
TGRadioButton * fShape0
set smooth graph curve
virtual ~TGraphEditor()
virtual void DoShape()
TGraph * fGraph
Graph object.
virtual void DoGraphLineWidth()
TGRadioButton * fShape
just draw unconnected points
TGCheckButton * fMarkerOnOff
set Marker visible/unvisible
char fDrawShape
Shape of the Graph (simple, smooth, bar)
virtual void ConnectSignals2Slots()
TGButtonGroup * fgr
Group the Radiobuttons:
Int_t fTitlePrec
font precision level
virtual void DoTitle(const char *text)
TGRadioButton * fShape2
set graph draw mode to bar chart
TGCheckButton * fExSide
set the exclusion zone side
TGRadioButton * fShape3
set graph draw mode to fill area
TGLineWidthComboBox * fWidthCombo
Exclusion zone width.
TGRadioButton * fShape1
set simple poly-line between every graph point
TGTextEntry * fTitle
Contains the title of the graph.
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:41