Re: [ROOT] TLine ignores kCannotPick

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Mar 08 2004 - 17:13:55 MET


The Clone function copies all the fBits bits from TObject
except kIsReferenced and kCanDelete.
The Clone of a TLine with its kCannotPick bit set should also
have its kCannotPick bit set.
You must have something else wrong in your logic.

Rene Brun

Thomas Bretz wrote:
> 
> Hi,
> 
> I found the reason.
> 
> Once I called
> TMarker m;
> TObject *o=m.Clone();
> o->SetBit(kCannotPick);
> o->Draw();
> 
> and the other time;
> TLine l;
> l.SetBit(kCannotPick);
> TObject *o=l.Clone();
> l->Draw();
> 
> BTW: Is it intendet, that the bits don't get cloned?
> 
> Thomas.
> 
> Rene Brun wrote:
> > Please describe better "it seems". I cannot reproduce this problem.
> >
> > Rene Brun
> >
> > Thomas Bretz wrote:
> >
> >>Dear all,
> >>
> >>while a TMarker in a TCanvas cannot be moved if bit kCannotPick is set
> >>it seems, that a TLine can be moved and chenged...
> >>
> >>(root 3.10/02)
> >>Thomas.
> >
> >
> >



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET