Re: [ROOT] Finding a Line

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jul 16 2001 - 23:47:24 MEST


Hi Dimitris,
Try this example:
  TLine *l1 = new TLine();
  TLine *l2 = l1->DrawLine(.1,.1,.7,.6);
  l2->GetY2();
now modify the line in the canvas
 l2->GetY2();

Rene Brun



On Mon, 16 Jul 2001, Dr. D. Sideris wrote:

> Deat rooters,
> 
> I draw a TLine into a canvas using DrawLine. Then I move the line around with the mouse. How do I get the new coordinates of the line? I've tried doing tLine->GetX1() etc, but all four coordinates return zero.
> 
> Thanks
> 
> Dimitris
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:52 MET