Re: drawing lines interactively [message #30528] |
Sun, 05 May 2002 11:45  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Marten Blixt wrote:
>
> Hi all,
>
> I have a small problem which I've solved only partially.
>
> I would like to draw a line on an image using the mouse, by clicking on the
> two end points.
> Sofar I can do just that, by using
> TV,testimage,TRUE=1
> CURSOR, x0,y0,/DEVICE,/DOWN
> CURSOR,x1,y1,/DEVICE,/DOWN
> PLOT,[x0,x1],[y0,y1], /DATA,/NOERASE
>
> but then the line appears *after* the two endpoints have been choosen, and I
> would like a "temporary line", between the first point and the current position
> of the cursor, to be shown. This should help me in positioning the last point.
>
> There is probably a simple solution to this, I just haven't found it. Does any
> of you know how?
>
> Many thanks,
> M�rten Blixt
Dear M�rten
there are a lot of routines from Ray Sterner (JHUAPL) already available.
I am often using hori, veri, hor, ver, hline, vline and crossi.
http://fermi.jhuapl.edu/s1r/idl/s1rlib/local_idl.html
or the routine path:
ftp://fermi.jhuapl.edu/pub/idl/routines/
regards
Reimar
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
|
|
|