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

Home » Public Forums » archive » Re: large custom crosshair cursor
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
Re: large custom crosshair cursor [message #56215] Sun, 14 October 2007 21:02
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
On Oct 15, 2:08 am, Brian Larsen <balar...@gmail.com> wrote:
> All,
>
> I am writing a program that displays an image in one box and has line
> plots ganged against it on the sides using J.D.'s gang_plot_pos
> (thanks for this it is great). The ganged plots are slices through
> the Image at the x and y of the cursor.
>
> The part I haven't figured out is how to make the cursor in the image
> be a huge '+' from side of the plot to side of the plot (within the
> axes preferably) and up-down the same that moves with the user without
> having to draw the image each time. This seems like it should be easy
> but I haven't figured it out yet... anybody know off the top of their
> heads how to do this?
>
> Cheers,
>
> Brian
>
> ------------------------------------------------------------ --------------
> Brian Larsen
> Boston University
> Center for Space Physics

Search www.dfanning.com for rubberband, which should give you one
solution.


Andrew
Re: large custom crosshair cursor [message #56216 is a reply to message #56215] Sun, 14 October 2007 20:55 Go to previous message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
Brian,

If you're using direct graphics, you can draw the lines over your
image using XOR mode, and then erase them by simply redrawing the same
lines - your image will be left unchanged. In object graphics it's
even easier because the line objects and the image object are
completely independent of each other.. In both cases it is not
necessary to redraw the whole image.

For a direct graphics example, check out the BOXAREA from the JHU
library, which you can find in Eric Deutsch's IDL Libraries Browser.

Mark
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: clear the WIDGET_DRAW
Next Topic: Re: reading data-files from archive?

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

Current Time: Wed Oct 08 13:57:14 PDT 2025

Total time taken to generate the page: 0.00462 seconds