Logo ROOT   6.07/09
Reference Guide
compile.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_graphics
3 /// \notebook -js
4 /// 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  TCanvas *c1 = new TCanvas("c1");
13  c1->Range(0,0,1,1);
14  TPaveLabel *ptc = new TPaveLabel(0.02,0.42,0.2,0.58,"Compile");
15  ptc->SetTextSize(0.40);
16  ptc->SetFillColor(32);
17  ptc->Draw();
18  TPaveText *psub = new TPaveText(0.28,0.4,0.65,0.6);
19  psub->Draw();
20  TText *t2 = psub->AddText("Substitute some operators");
21  TText *t3 = psub->AddText("to C++ style");
22  TPaveLabel *panal = new TPaveLabel(0.73,0.42,0.98,0.58,"Analyze");
23  panal->SetTextSize(0.40);
24  panal->SetFillColor(42);
25  panal->Draw();
26  TArrow *ar1 = new TArrow(0.2,0.5,0.27,0.5,0.02,"|>");
27  ar1->SetLineWidth(6);
28  ar1->SetLineColor(4);
29  ar1->Draw();
30  TArrow *ar2 = new TArrow(0.65,0.5,0.72,0.5,0.02,"|>");
31  ar2->SetLineWidth(6);
32  ar2->SetLineColor(4);
33  ar2->Draw();
34 }
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
Definition: TAttLine.h:49
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
Definition: TPaveText.cxx:211
return c1
Definition: legend1.C:41
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:122
Base class for several text objects.
Definition: TText.h:33
A Pave (see TPave) with a text centered in the Pave.
Definition: TPaveLabel.h:24
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Definition: TAttLine.h:46
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition: TAttFill.h:42
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:4654
The Canvas class.
Definition: TCanvas.h:41
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:27
virtual void Draw(Option_t *option="")
Draw this pavelabel with its current attributes.
Definition: TPaveLabel.cxx:77
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition: TAttText.h:52
Draw all kinds of Arrows.
Definition: TArrow.h:35