Re: TPolyLine DistancetoPrimitive method

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Aug 24 1999 - 15:08:06 MEST


Hi Dmitri,
I have now implemented TPolyLine::DistancetoPrimitive and
TPolyLine::ExecuteEvent in my development version 2.23/01.
The behaviour of these two functions is identical to the ones in TGraph.

Rene Brun


Dmitri Litvintsev wrote:
> 
> Hi Rootters,
> 
> I see that:
> 
> /______________________________________________________________________________
>  Int_t TPolyLine::DistancetoPrimitive(Int_t, Int_t)
> {
> //*-*-*-*-*-*-*-*-*Compute distance from point px,py to a polyline*-*-*-*-*-*
> //*-*              ===============================================
> //  Compute the closest distance of approach from point px,py to each segment
> //  of the polyline.
> //  Returns when the distance found is below DistanceMaximum.
> //  The distance is computed in pixels units.
> //
>    return 9999;
> }
> 
> TPolyLine's DistancetoPrimitives always returns big number.
> Was it supposed to be like this or simple omission?
> 
> Dmitri Litvintsev
> 
> /----------------------------------------------------------\
> | Tel:       (630) 840 3763                                |
> | FAX:       (630) 840 2968                                |
> | office:    164-O CDF Trailers                            |
> | E-mail:    litvinse@fnal.gov                             |
> \----------------------------------------------------------/



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET