some 2D geo qiestions

From: Paul M. Eugenio (eugenio@megux1.phys.cmu.edu)
Date: Thu Nov 12 1998 - 20:05:11 MET


Hi Rooters,

I seem to be missing something basic in trying to
create a simple 2D view.  For example, I'm unable
to set the line color for a TBox (or TLine) object. 

Also, are there any examples of using the 2D graphics
classes?

		Thanks for any help.

Below is a simple test macro that I used.

-- 
Paul M. Eugenio
Dept. of Physics
Carnegie Mellon University
(412) 268 6949
eugenio@ernest.phys.cmu.edu


                _____________________________________________________
               / The scholar should know; one builds science with    \
        o O 0 / the facts just like a house can be built of stones;   \
       o     | but an accumulation of facts is not a science just like |
  `\|||/      \           that a pile of stones is not a house.       /
   (o o)       \_____________________________________________________/
ooO_(_)_Ooo___________________________________________Henri Poincare'_
_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|____
__|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_
_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|____



{

  gROOT->Reset();

 
  
  c1 = new TCanvas("c1","An other canvas",100,10,700,700);
  c1->SetFillColor(18);
  
  Int_t nboxes=0;
  
  TBox *box;
  TLine *line;
  Double_t x1=0.1,y1=0.1,x2=0.5,y2=0.5;
  
  box = new TBox(x1,y1,x2,y2);
  line = new TLine(x1,y1,x2,y2);

  box->SetLineColor(7);
  box->SetLineWidth(20);
  box->SetFillColor(10);
  line->SetLineColor(8);
  
  line->Draw();
  box->Draw();
  c1->Update();
  return 0;
}



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:39 MET