67 fTitle->SetToolTipText(
"Enter the graph title string");
76 fShape->SetToolTipText(
"The points are not connected by a line");
78 fShape0->SetToolTipText(
"Draw a smooth graph curve");
80 fShape1->SetToolTipText(
"Draw a simple poly-line between the graph points");
82 fShape2->SetToolTipText(
"Draw a bar chart at each graph point");
84 fShape3->SetToolTipText(
"A fill area is drawn");
93 fMarkerOnOff->SetToolTipText(
"Make Marker visible/invisible");
103 fExSide->SetToolTipText(
"Zone is drawing side");
135 fTitle->Connect(
"TextChanged(const char *)",
"TGraphEditor",
this,
"DoTitle(const char *)");
136 fgr->Connect(
"Clicked(Int_t)",
"TGraphEditor",
this,
"DoShape()");
137 fMarkerOnOff->Connect(
"Toggled(Bool_t)",
"TGraphEditor",
this,
"DoMarkerOnOff(Bool_t)");
138 fWidthCombo->Connect(
"Selected(Int_t)",
"TGraphEditor",
this,
"DoGraphLineWidth()");
139 fExSide->Connect(
"Clicked()",
"TGraphEditor",
this,
"DoGraphLineWidth()");
195 if (opt==
"A" || opt==
"AP" || opt==
"PA" || opt ==
"P") {
232 opt =
fGraph->GetDrawOption();
305 if (opt==
"A" || opt==
"AP" || opt==
"PA" || opt ==
"P") {
357 Int_t lineWidth = std::abs(
fGraph->GetLineWidth()%100);
360 fGraph->SetLineWidth(side*(100*width+lineWidth));
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
static Pixel_t GetWhitePixel()
Get white pixel value.
This class describes layout hints used by the layout classes.
The TGLineWidthComboBox user callable and it creates a combobox for selecting the line width.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
A TGTextEntry is a one line text input widget.
ROOT GUI Window base class.
TGedFrame(const TGedFrame &)=delete
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
void SetDrawOption(Option_t *option="") override
Set drawing option for object.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Option_t * GetDrawOption() const override
Get draw options of the selected object.
Bool_t fAvoidSignal
flag for executing slots
TGLayoutHints * fShape1lh
layout-hints for fShape1
virtual void DoMarkerOnOff(Bool_t on)
TGRadioButton * fShape0
set smooth graph curve
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:
void SetModel(TObject *obj) override
TGraphEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
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.
Mother of all ROOT objects.
TString & Replace(Ssiz_t pos, Ssiz_t n, const char *s)
Ssiz_t First(char c) const
Find first occurrence of a character c.
void ToUpper()
Change string to upper case.
TString & Remove(Ssiz_t pos)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const