comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » drawing lines interactively
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
drawing lines interactively [message #30541] Fri, 03 May 2002 09:22
maarten is currently offline  maarten
Messages: 30
Registered: April 2002
Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reclass in ENVI or IDL
Next Topic: texture mapping: arbitrary orientation impossible?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 06:43:05 PDT 2025

Total time taken to generate the page: 1.76136 seconds