Re: pick objects

Dmitri Litvintsev (litvinse@cdfsga.fnal.gov)
Thu, 10 Jun 1999 11:34:41 -0500 (CDT)


Hello Rene,

thank you for an answer. I'm afraid I wasn't specific
enough. Your advice applies to user defined classes
derived from ROOT classes, where I can override
DistancetoPrimitive fucntion. Actually I've been doing
this quite successfully hiding my objects from being
seen by mouse.
What I really wanted - to be able to switch off/on
this ability for ROOT native objects. Now (or untill
I was bored to do so and asked this question) I create
dublicates of ROOT classes (derived from ROOT that is)
wich differ from originals only by the definition of
DistancetoPrimitive. I found it a bit tedious and
sought an expert opinion.
Good if next ROOT version would have this switch
programmed in.

thank you very much,
Dmitri

On Thu, 10 Jun 1999, Rene Brun wrote:

> Dmitri Litvintsev wrote:
> >
> > Dear Rooters,
> >
> > Is it possible to switch off the ability of the object
> > to be picked with mouse? Sometimes it very useful.
> >
>
> Hi Dmitri,
> see URL: http://root.cern.ch/root/HowtoPick.html
> To disable picking, you should add a user option to your
> DistancetoPrimitive
> function and return a large value.
>
> In version 2.22/05, I have added the possibility to disable picking
> for a given object obj.
>
> Rene Brun
>