void pstable()
{
const char *symbol1[] =
{"A","B","C","D","E","F","G","H","I","J","K","L","M","N",
"O","P","Q","R","S","T","U","V","W","X","Y","Z",
"0","1","2","3","4","5","6","7","8","9",
".",",","+","-","*","/","=","(",")","{","}","END"};
const char *symbol2[] =
{"a","b","c","d","e","f","g","h","i","j","k","l","m","n",
"o","p","q","r","s","t","u","v","w","x","y","z",
":",";","@","\\","_","|","%",
"@'","<",">","[","]","\42","@\43","@\136",
"@\77","@\41","@&","$","@\176"," ","END"};
const char *symbol3[] =
{"\241","\242","\243","\244","\245","\246","\247","\250",
"\251","\252","\253","\254","\255","\256","\257","\260",
"\261","\262","\263","\264","\265","\266","\267","\270",
"\271","\272","\273","\274","\275","\276","\277","\300",
"\301","\302","\303","\304","\305","\306","\307","\310",
"\311","\312","\313","\314","\315","\316","\317","END"};
const char *symbol4[] =
{"\321","\322","\323","\324","\325","\326","\327","\330",
"\331","\332","\333","\334","\335","\336","\337","\340",
"\341","\342","\343","\344","\345","\346","\347","\340",
"\351","\352","\353","\354","\355","\356","\357","\360",
"\361","\362","\363","\364","\365","\366","\367","\370",
"\371","\372","\373","\374","\375","\376","\377","END"};
const char *symbol5[] =
{"\177","\200","\201","\202","\203","\204","\205","\206",
"\207","\210","\211","\212","\213","\214","\215","\216",
"\217","\220","\221","\222","\223","\224","\225","\226",
"\227","\230","\231","\232","\233","\234","\235","\236",
"\237","\240","END"};
c1->Range(0,0,xrange,yrange);
t.SetTextSize(0.02);
t.SetTextFont(62);
t.SetTextAlign(22);
table(0.5,0.5*xrange-0.5,yrange,t,symbol1,0);
table(0.5*xrange+0.5,xrange-0.5,yrange,t,symbol2,0);
tlabel.SetTextFont(72);
tlabel.SetTextSize(0.018);
tlabel.SetTextAlign(22);
tlabel.DrawText(0.5*xrange,1.3,
"Input characters are standard keyboard characters");
c1->Print(
"pstable1.ps");
c2->Range(0,0,xrange,yrange);
table(0.5,0.5*xrange-0.5,yrange,t,symbol3,1);
table(0.5*xrange+0.5,xrange-0.5,yrange,t,symbol4,1);
tlabel.DrawText(0.5*xrange,1.3,
"Input characters using backslash and octal numbers");
c2->Print(
"pstable2.ps");
c3->Range(0,0,xrange,yrange);
table(0.5,0.5*xrange-0.5,yrange,t,symbol5,1);
tlabel.DrawText(0.5*xrange,1.3,
"Input characters using backslash and octal numbers");
c3->Print(
"pstable3.ps");
}
const char **symbol,
Bool_t octal)
{
for (i=0;i<1000;i++) {
if (!strcmp(symbol[i],"END")) break;
}
tit.SetTextSize(0.015);
tit.SetTextFont(72);
tit.SetTextAlign(22);
tit.DrawText(xc0,
y2-0.6,
"Input");
tit.DrawText(xc1,
y2-0.6,
"Roman");
tit.DrawText(xc2,
y2-0.6,
"Greek");
tit.DrawText(xc3,
y2-0.6,
"Special");
tit.DrawText(xc4,
y2-0.6,
"Zapf");
if (octal) {
unsigned char value = *symbol[i];
} else {
}
sprintf(
text,
"%s",symbol[i]);
sprintf(
text,
"`%s",symbol[i]);
sprintf(
text,
"'%s",symbol[i]);
sprintf(
text,
"~%s",symbol[i]);
}
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char text
Option_t Option_t TPoint TPoint const char y1
Use the TLine constructor to create a simple line.
virtual TLine * DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates.
Base class for several text objects.
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.