Re: large custom crosshair cursor [message #56215] |
Sun, 14 October 2007 21:02 |
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  |
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
|
|
|