ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
compile.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_graphics
3 /// This macro produces the flowchart of TFormula::Compile
4 ///
5 /// \macro_image
6 /// \macro_code
7 ///
8 /// \author Rene Brun
9 
10 void compile(){
11  TCanvas *c1 = new TCanvas("c1");
12  c1->Range(0,0,1,1);
13  TPaveLabel *ptc = new TPaveLabel(0.02,0.42,0.2,0.58,"Compile");
14  ptc->SetTextSize(0.40);
15  ptc->SetFillColor(32);
16  ptc->Draw();
17  TPaveText *psub = new TPaveText(0.28,0.4,0.65,0.6);
18  psub->Draw();
19  TText *t2 = psub->AddText("Substitute some operators");
20  TText *t3 = psub->AddText("to C++ style");
21  TPaveLabel *panal = new TPaveLabel(0.73,0.42,0.98,0.58,"Analyze");
22  panal->SetTextSize(0.40);
23  panal->SetFillColor(42);
24  panal->Draw();
25  TArrow *ar1 = new TArrow(0.2,0.5,0.27,0.5,0.02,"|>");
26  ar1->SetLineWidth(6);
27  ar1->SetLineColor(4);
28  ar1->Draw();
29  TArrow *ar2 = new TArrow(0.65,0.5,0.72,0.5,0.02,"|>");
30  ar2->SetLineWidth(6);
31  ar2->SetLineColor(4);
32  ar2->Draw();
33 }
virtual void SetLineWidth(Width_t lwidth)
Definition: TAttLine.h:57
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
Definition: TPaveText.cxx:211
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
Definition: TPaveText.cxx:160
virtual void Draw(Option_t *option="")
Draw this arrow with its current attributes.
Definition: TArrow.cxx:121
Base class for several text objects.
Definition: TText.h:42
A Pave (see TPave) with a text centered in the Pave.
Definition: TPaveLabel.h:32
virtual void SetLineColor(Color_t lcolor)
Definition: TAttLine.h:54
virtual void SetFillColor(Color_t fcolor)
Definition: TAttFill.h:50
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
Definition: TPad.cxx:4623
The Canvas class.
Definition: TCanvas.h:48
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:35
virtual void Draw(Option_t *option="")
Draw this pavelabel with its current attributes.
Definition: TPaveLabel.cxx:77
virtual void SetTextSize(Float_t tsize=1)
Definition: TAttText.h:60
Draw all kinds of Arrows.
Definition: TArrow.h:35