Re: [ROOT] How do I retreive pointers to Editor created - objects in root?

From: Annalisa De Caro (decaro@mail6.cern.ch)
Date: Fri Jun 07 2002 - 15:10:35 MEST


  Hi Tommaso,
i don't understand very well your question.
If you need to know the pointer to the lines drawn in a canvas, you can
save this canvas as .C file and you can see the file content;
   ex:
       root [0] new TCanvas();
open the Editor menu, clik on Line button and draw the first line on the
canvas, clik on Line button an other time and draw the second line ...
Then, you can go on File menu and in Save As canvas.C;
the file c1.C was created. You can see the content...
I don't know if this can help you...
  Ciao 
               Annalisa

> Hi Rooters, 
> My question in the subject is because if i draw a TLine with the Editor on 
> a plot, 
> I get a pointer to it simply with 
> 
> TLine *l = TLine;
> 
> 
> But if I draw more than one line, I don't know how to get the pointer to 
> the newer ones. (If I right-click with the mouse on the line, i get as the 
> header name TLine only, instead of for example TLine::pippo).
> 
> Anyone can help?
> 
> Thanks a lot,
> Tommaso
> 
> 
> 
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:55 MET