arrow.C

Go to the documentation of this file.
00001 //Draw arrows
00002 //Author: Rene Brun
00003 {
00004    c1 = new TCanvas("c1");
00005    c1->Range(0,0,1,1);
00006    TPaveLabel par(0.1,0.8,0.9,0.95,"Examples of various arrow formats");
00007    par.SetFillColor(42);
00008    par.Draw();
00009    TArrow ar1(0.1,0.1,0.1,0.7);
00010    ar1.Draw();
00011    TArrow ar2(0.2,0.1,0.2,0.7,0.05,"|>");
00012    ar2.SetAngle(40);
00013    ar2.SetLineWidth(2);
00014    ar2.Draw();
00015    TArrow ar3(0.3,0.1,0.3,0.7,0.05,"<|>");
00016    ar3.SetAngle(40);
00017    ar3.SetLineWidth(2);
00018    ar3.Draw();
00019    TArrow ar4(0.46,0.7,0.82,0.42,0.07,"|>");
00020    ar4.SetAngle(60);
00021    ar4.SetLineWidth(2);
00022    ar4.SetFillColor(2);
00023    ar4.Draw();
00024    TArrow ar5(0.4,0.25,0.95,0.25,0.15,"<|>");
00025    ar5.SetAngle(60);
00026    ar5.SetLineWidth(4);
00027    ar5.SetLineColor(4);
00028    ar5.SetFillStyle(3008);
00029    ar5.SetFillColor(2);
00030    ar5.Draw();
00031    return c1;
00032 }

Generated on Tue Jul 5 15:43:50 2011 for ROOT_528-00b_version by  doxygen 1.5.1