14 const char *symbol1[] = {
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
15 "Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
"0",
"1",
"2",
"3",
"4",
"5",
16 "6",
"7",
"8",
"9",
".",
",",
"+",
"-",
"*",
"/",
"=",
"(",
")",
"{",
"}",
"END"};
18 const char *symbol2[] = {
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
19 "m",
"n",
"o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"w",
"x",
20 "y",
"z",
":",
";",
"@",
"\\",
"_",
"|",
"%",
"@'",
"<",
">",
21 "[",
"]",
"\42",
"@\43",
"@\136",
"@\77",
"@\41",
"@&",
"$",
"@\176",
" ",
"END"};
23 const char *symbol3[] = {
"\241",
"\242",
"\243",
"\244",
"\245",
"\246",
"\247",
"\250",
"\251",
"\252",
24 "\253",
"\254",
"\255",
"\256",
"\257",
"\260",
"\261",
"\262",
"\263",
"\264",
25 "\265",
"\266",
"\267",
"\270",
"\271",
"\272",
"\273",
"\274",
"\275",
"\276",
26 "\277",
"\300",
"\301",
"\302",
"\303",
"\304",
"\305",
"\306",
"\307",
"\310",
27 "\311",
"\312",
"\313",
"\314",
"\315",
"\316",
"\317",
"END"};
29 const char *symbol4[] = {
"\321",
"\322",
"\323",
"\324",
"\325",
"\326",
"\327",
"\330",
"\331",
"\332",
30 "\333",
"\334",
"\335",
"\336",
"\337",
"\340",
"\341",
"\342",
"\343",
"\344",
31 "\345",
"\346",
"\347",
"\340",
"\351",
"\352",
"\353",
"\354",
"\355",
"\356",
32 "\357",
"\360",
"\361",
"\362",
"\363",
"\364",
"\365",
"\366",
"\367",
"\370",
33 "\371",
"\372",
"\373",
"\374",
"\375",
"\376",
"\377",
"END"};
35 const char *symbol5[] = {
"\177",
"\200",
"\201",
"\202",
"\203",
"\204",
"\205",
"\206",
"\207",
36 "\210",
"\211",
"\212",
"\213",
"\214",
"\215",
"\216",
"\217",
"\220",
37 "\221",
"\222",
"\223",
"\224",
"\225",
"\226",
"\227",
"\230",
"\231",
38 "\232",
"\233",
"\234",
"\235",
"\236",
"\237",
"\240",
"END"};
43 Int_t h = w * yrange / xrange;
46 c1->Range(0, 0, xrange, yrange);
53 table(0.5, 0.5 * xrange - 0.5, yrange, t, symbol1, 0);
54 table(0.5 * xrange + 0.5, xrange - 0.5, yrange, t, symbol2, 0);
55 TText tlabel(0, 0,
"a");
56 tlabel.SetTextFont(72);
57 tlabel.SetTextSize(0.018);
58 tlabel.SetTextAlign(22);
59 tlabel.DrawText(0.5 * xrange, 1.3,
"Input characters are standard keyboard characters");
62 c1->Print(
"pstable1.ps");
65 c2->Range(0, 0, xrange, yrange);
67 table(0.5, 0.5 * xrange - 0.5, yrange, t, symbol3, 1);
68 table(0.5 * xrange + 0.5, xrange - 0.5, yrange, t, symbol4, 1);
69 tlabel.DrawText(0.5 * xrange, 1.3,
"Input characters using backslash and octal numbers");
72 c2->Print(
"pstable2.ps");
75 c3->Range(0, 0, xrange, yrange);
77 table(0.5, 0.5 * xrange - 0.5, yrange, t, symbol5, 1);
78 tlabel.DrawText(0.5 * xrange, 1.3,
"Input characters using backslash and octal numbers");
81 c3->Print(
"pstable3.ps");
87 for (i = 0; i < 1000; i++) {
88 if (!strcmp(symbol[i],
"END"))
103 line.DrawLine(x1, y1, x1, y2);
104 line.DrawLine(x1, y1, x2, y1);
105 line.DrawLine(x1, y2, x2, y2);
106 line.DrawLine(x2, y1, x2, y2);
107 line.DrawLine(x1, y2 - 1, x2, y2 - 1);
108 line.DrawLine(x1 + dx, y1, x1 + dx, y2);
109 line.DrawLine(x1 + 2 * dx, y1, x1 + 2 * dx, y2);
110 line.DrawLine(x1 + 3 * dx, y1, x1 + 3 * dx, y2);
111 line.DrawLine(x1 + 4 * dx, y1, x1 + 4 * dx, y2);
112 TText tit(0, 0,
"a");
113 tit.SetTextSize(0.015);
115 tit.SetTextAlign(22);
116 tit.DrawText(xc0, y2 - 0.6,
"Input");
117 tit.DrawText(xc1, y2 - 0.6,
"Roman");
118 tit.DrawText(xc2, y2 - 0.6,
"Greek");
119 tit.DrawText(xc3, y2 - 0.6,
"Special");
120 tit.DrawText(xc4, y2 - 0.6,
"Zapf");
122 for (i = 0; i <
n; i++) {
124 unsigned char value = *symbol[i];
127 strcpy(
text, symbol[i]);
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
Use the TLine constructor to create a simple line.
virtual TText * DrawText(Double_t x, Double_t y, const char *text)