Hi Andre,
No need for an additional function. Simply call
myline.SetBit(kLineNDC); // will set the bit kTRUE
myline.SetBit(kLineNDC,kFALSE);
Note that if you have an object TLine line with kLineNDC false,
you can also do
line.DrawlineNDC(x1ndc,y1ndc,x2ndc,y2ndc);
This automatically creates a new object TLine in the pad with the kLineNDC bit
set.
Rene Brun
Andre Holzner wrote:
>
> Hello Rooters,
>
> just a small request...
>
> Would it be possible to add a convenience function
> similar to TText::SetNDC for TLine:
>
> void TLine::SetNDC(Bool_t isNDC=kTRUE)
> {
> // Set NDC mode on if isNDC = kTRUE, off otherwise
> ResetBit(kLineNDC);
> if (isNDC) SetBit(kLineNDC);
> }
>
> ?
>
> (Or is this already there ? I couldn't find it in
> Version 3.01/05 / 9 July 2001)
>
> thanks,
>
> André
>
> --
> ------------------+----------------------------------
> Andre Holzner | +41 22 76 76750
> Bureau 32 2-C13 | Building 32
> CERN | Office 2-C13
> CH-1211 Geneve 23 | http://wwweth.cern.ch/~holzner/
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:52 MET