Logo ROOT  
Reference Guide
compile.C File Reference

Detailed Description

View in nbviewer Open in SWAN This macro produces the flowchart of TFormula::Compile

void compile(){
TCanvas *c1 = new TCanvas("c1");
c1->Range(0,0,1,1);
TPaveLabel *ptc = new TPaveLabel(0.02,0.42,0.2,0.58,"Compile");
ptc->SetTextSize(0.40);
ptc->SetFillColor(32);
ptc->Draw();
TPaveText *psub = new TPaveText(0.28,0.4,0.65,0.6);
psub->Draw();
TText *t2 = psub->AddText("Substitute some operators");
TText *t3 = psub->AddText("to C++ style");
TPaveLabel *panal = new TPaveLabel(0.73,0.42,0.98,0.58,"Analyze");
panal->SetTextSize(0.40);
panal->SetFillColor(42);
panal->Draw();
TArrow *ar1 = new TArrow(0.2,0.5,0.27,0.5,0.02,"|>");
ar1->SetLineWidth(6);
ar1->SetLineColor(4);
ar1->Draw();
TArrow *ar2 = new TArrow(0.65,0.5,0.72,0.5,0.02,"|>");
ar2->SetLineWidth(6);
ar2->SetLineColor(4);
ar2->Draw();
}
Author
Rene Brun

Definition in file compile.C.

TArrow::Draw
virtual void Draw(Option_t *option="")
Draw this arrow with its current attributes.
Definition: TArrow.cxx:120
TAttText::SetTextSize
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition: TAttText.h:46
TAttLine::SetLineColor
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Definition: TAttLine.h:40
TPaveLabel::Draw
virtual void Draw(Option_t *option="")
Draw this pavelabel with its current attributes.
Definition: TPaveLabel.cxx:77
TPaveText::Draw
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
Definition: TPaveText.cxx:234
TPaveText::AddText
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:183
TPaveLabel
A Pave (see TPave) with a text centered in the Pave.
Definition: TPaveLabel.h:20
TAttLine::SetLineWidth
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
Definition: TAttLine.h:43
TText
Base class for several text objects.
Definition: TText.h:22
TCanvas
The Canvas class.
Definition: TCanvas.h:23
TAttFill::SetFillColor
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition: TAttFill.h:37
TArrow
Draw all kinds of Arrows.
Definition: TArrow.h:29
TPaveText
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:21
c1
return c1
Definition: legend1.C:41