ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rootenv.C
Go to the documentation of this file.
1 {
2 gROOT->Reset();
3 c1 = new TCanvas("c1","ROOT Environment Canvas",720,840);
4 c1->Range(0,-0.25,19,29);
5 TPaveLabel title(3,27.1,15,28.7,"ROOT Environment and Tools");
9 title.Draw();
10 
11 //
12 TArrow ardash(2,15,2,3.5,0.015,"|>");
15 ardash.Draw();
16 TLine l1(2.5,4.5,15.5,4.5);
17 l1.Draw();
18 l1.DrawLine(4.5,15,4.5,11);
19 l1.DrawLine(13,10,13,15.5);
20 l1.DrawLine(14,10,13,10);
21 l1.DrawLine(14,15.5,13,15.5);
22 TArrow ar(9,23,9,21.6,0.015,"|>");
23 ar.SetFillColor(1);
24 //
25 TPavesText UserChtml(0.5,0.5,4.5,3,5,"tr");
26 UserChtml.AddText("Files with hyperlinks");
27 TText *t1=UserChtml.AddText("*User.C.html");
28 TText *t2=UserChtml.AddText("*User.mac.html");
29 t1->SetTextColor(4);
30 t2->SetTextColor(4);
31 UserChtml.Draw();
32 ar.DrawArrow(2.5,4.5,2.5,3.5,0.015,"|>");
33 //
34 TPavesText UserTree(7,0.5,11,3,5,"tr");
35 UserTree.AddText("Dictionary");
36 UserTree.AddText("Inheritance graphs");
37 TText *t3=UserTree.AddText("*User_Tree.ps");
38 t3->SetTextColor(4);
39 UserTree.Draw();
40 ar.DrawArrow(9,5.5,9,3.5,0.015,"|>");
41 //
42 TPavesText Userhtml(13.5,0.5,17.5,3,5,"tr");
43 Userhtml.AddText("Class Description");
44 Userhtml.AddText("with references");
45 TText *t4=Userhtml.AddText("*User.html");
46 t4->SetTextColor(4);
47 Userhtml.Draw();
48 ar.DrawArrow(15.5,4.5,15.5,3.5,0.015,"|>");
49 //
50 TPavesText Macros(0.5,8,3.5,11,5,"tr");
51 Macros.AddText("Macros");
52 Macros.AddText("Log files");
53 TText *t5=Macros.AddText("*User.mac");
54 TText *t5a=Macros.AddText("*User.log");
55 t5->SetTextColor(4);
56 t5a->SetTextColor(4);
57 Macros.Draw();
58 //
59 TPavesText UserC(1,15,5,18,5,"tr");
60 UserC.AddText("C++ application");
61 UserC.AddText("source code");
62 TText *t6=UserC.AddText("*User.C");
63 t6->SetTextColor(4);
64 UserC.Draw();
65 ar.DrawArrow(4.5,11,5.8,11,0.015,"|>");
66 //
67 TPavesText Userh(6,23,12,26,5,"tr");
68 Userh.AddText("C++ header files");
69 TText *t7=Userh.AddText("*User.h");
70 t7->SetTextColor(4);
72 Userh.Draw();
73 ar.DrawArrow(9,23,9,21.6,0.015,"|>");
74 //
75 TPavesText UserUI(6.5,14,11.5,17,5,"tr");
76 UserUI.AddText("C++ code for");
77 UserUI.AddText("User Interface and I/O");
78 TText *t8=UserUI.AddText("*UserUI.C");
79 t8->SetTextColor(4);
80 UserUI.Draw();
81 ar.DrawArrow(9,18.5,9,17.3,0.015,"|>");
82 ar.DrawArrow(9,14,9,12.6,0.015,"|>");
83 //
84 TPavesText Usersl(14,14,17.5,17,5,"tr");
85 Usersl.AddText("User");
86 Usersl.AddText("Libraries");
87 TText *t9=Usersl.AddText("*User.sl");
88 t9->SetTextColor(4);
89 Usersl.Draw();
90 ar.DrawArrow(13,11,12.1,11,0.015,"|>");
91 //
92 TPavesText Rootlib(14,8.5,17.5,11.5,5,"tr");
93 Rootlib.AddText("Root Library");
94 Rootlib.AddText("and Includes");
95 TText *t10=Rootlib.AddText("Root.sl");
96 TText *t11=Rootlib.AddText("Root/include");
97 t10->SetTextColor(4);
98 t11->SetTextColor(4);
99 Rootlib.Draw();
100 //
101 TEllipse dict(9,20,3,1.5);
102 dict.SetFillColor(43);
103 dict.SetFillStyle(1001);
104 dict.SetLineColor(1);
105 dict.SetLineWidth(3);
106 dict.Draw();
107 TText gen(9,20.7,"rootcint");
108 gen.SetTextAlign(22);
109 gen.SetTextSize(0.025);
110 gen.Draw();
111 gen.DrawText(9,19.5,"ROOT compiler");
112 ar.DrawArrow(9,18.5,9,17.3,0.015,"|>");
113 //
114 TEllipse compiler(9,11,3,1.5);
116 compiler.SetFillStyle(1001);
119 compiler.Draw();
120 TText gen2(9,11.4,"C++ compiler");
121 gen2.SetTextAlign(22);
122 gen2.SetTextSize(0.025);
123 gen2.Draw();
124 gen2.DrawText(9,10.3,"and Linker");
125 ar.DrawArrow(9,9.5,9,8.2,0.015,"|>");
126 //
127 TPaveText exe(6,5.5,12,8);
128 exe.SetFillColor(41);
129 exe.AddText("ROOT-based Application");
130 exe.AddText("Interactive or Batch");
131 TText *t12=exe.AddText("User.exe");
132 t12->SetTextColor(2);
133 exe.Draw();
134 
135 c1->Modified();
136 c1->Print("rootenv.ps");
137 }
TPavesText Userh(6, 23, 12, 26, 5,"tr")
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
TPavesText UserC(1, 15, 5, 18, 5,"tr")
virtual void DrawArrow(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Float_t arrowsize=0, Option_t *option="")
Draw this arrow with new coordinates.
Definition: TArrow.cxx:138
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 TLine * DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates.
Definition: TLine.cxx:93
#define gROOT
Definition: TROOT.h:344
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
Definition: TObject.cxx:254
virtual void SetFillStyle(Style_t fstyle)
Definition: TAttFill.h:52
TPavesText UserChtml(0.5, 0.5, 4.5, 3, 5,"tr")
TPavesText Rootlib(14, 8.5, 17.5, 11.5, 5,"tr")
c1
Definition: rootenv.C:3
virtual void Draw(Option_t *option="")
Draw this pavestext with its current attributes.
Definition: TPavesText.cxx:79
virtual void SetTextFont(Font_t tfont=62)
Definition: TAttText.h:59
TPaveText exe(6, 5.5, 12, 8)
virtual void Draw(Option_t *option="")
Draw this arrow with its current attributes.
Definition: TArrow.cxx:121
TLine l1(2.5, 4.5, 15.5, 4.5)
Base class for several text objects.
Definition: TText.h:42
virtual void Draw(Option_t *option="")
Draw this ellipse with its current attributes.
Definition: TEllipse.cxx:167
virtual void SetTextAlign(Short_t align=11)
Definition: TAttText.h:55
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
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
virtual void SetFillColor(Color_t fcolor)
Definition: TAttFill.h:50
TArrow ardash(2, 15, 2, 3.5, 0.015,"|>")
A simple line.
Definition: TLine.h:41
TPavesText UserUI(6.5, 14, 11.5, 17, 5,"tr")
TEllipse dict(9, 20, 3, 1.5)
TEllipse compiler(9, 11, 3, 1.5)
TPavesText UserTree(7, 0.5, 11, 3, 5,"tr")
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
Draw Ellipses.
Definition: TEllipse.h:44
virtual void SetLineStyle(Style_t lstyle)
Definition: TAttLine.h:56
TPavesText Macros(0.5, 8, 3.5, 11, 5,"tr")
TPavesText Userhtml(13.5, 0.5, 17.5, 3, 5,"tr")
TPavesText Usersl(14, 14, 17.5, 17, 5,"tr")
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
Definition: TText.cxx:171
virtual void SetTextColor(Color_t tcolor=1)
Definition: TAttText.h:57
TArrow ar(9, 23, 9, 21.6, 0.015,"|>")
virtual void SetTextSize(Float_t tsize=1)
Definition: TAttText.h:60
Draw all kinds of Arrows.
Definition: TArrow.h:35
A PaveText (see TPaveText) with several stacked paves.
Definition: TPavesText.h:28
TText gen2(9, 11.4,"C++ compiler")
TText gen(9, 20.7,"rootcint")