ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
compile.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_graphics
3
/// \notebook -js
4
/// \preview This macro produces the flowchart of TFormula::Compile.
5
///
6
/// \macro_image
7
/// \macro_code
8
///
9
/// \author Rene Brun
10
11
void
compile()
12
{
13
TCanvas
*
c1
=
new
TCanvas
(
"c1"
);
14
c1
->Range(0, 0, 1, 1);
15
TPaveLabel
*ptc =
new
TPaveLabel
(0.02, 0.42, 0.2, 0.58,
"Compile"
);
16
ptc->
SetTextSize
(0.40);
17
ptc->
SetFillColor
(32);
18
ptc->
Draw
();
19
TPaveText
*psub =
new
TPaveText
(0.28, 0.4, 0.65, 0.6);
20
psub->
Draw
();
21
TText
*t2 = psub->
AddText
(
"Substitute some operators"
);
22
TText
*t3 = psub->
AddText
(
"to C++ style"
);
23
TPaveLabel
*panal =
new
TPaveLabel
(0.73, 0.42, 0.98, 0.58,
"Analyze"
);
24
panal->
SetTextSize
(0.40);
25
panal->
SetFillColor
(42);
26
panal->
Draw
();
27
TArrow
*ar1 =
new
TArrow
(0.2, 0.5, 0.27, 0.5, 0.02,
"|>"
);
28
ar1->
SetLineWidth
(6);
29
ar1->
SetLineColor
(4);
30
ar1->
Draw
();
31
TArrow
*ar2 =
new
TArrow
(0.65, 0.5, 0.72, 0.5, 0.02,
"|>"
);
32
ar2->
SetLineWidth
(6);
33
ar2->
SetLineColor
(4);
34
ar2->
Draw
();
35
}
TArrow
Definition
TArrow.h:29
TArrow::Draw
void Draw(Option_t *option="") override
Default Draw method for all objects.
TAttFill::SetFillColor
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition
TAttFill.h:40
TAttLine::SetLineWidth
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
Definition
TAttLine.h:47
TAttLine::SetLineColor
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Definition
TAttLine.h:44
TAttText::SetTextSize
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition
TAttText.h:53
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TPaveLabel
A Pave (see TPave) with a text centered in the Pave.
Definition
TPaveLabel.h:20
TPaveLabel::Draw
void Draw(Option_t *option="") override
Draw this pavelabel with its current attributes.
Definition
TPaveLabel.cxx:87
TPaveText
Definition
TPaveText.h:21
TPaveText::Draw
void Draw(Option_t *option="") override
Draw this pave with its current attributes.
TPaveText::AddText
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
TText
Definition
TText.h:22
c1
return c1
Definition
legend1.C:41
tutorials
visualisation
graphics
compile.C
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1