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

Home » Public Forums » archive » Re: Rubberband box for object graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Rubberband box for object graphics [message #42525] Sun, 13 February 2005 12:33 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Rainnie, JA (John) wrote:
> I'm delving into the IDL graphics objects, and specifically I wish to
> develop a plot window using the IDLgrPlot class. Thanks to several
> examples (mostly Dave Fanning's xPlot) I've mananged to do this.
> However, I really need to implement a rubberband box so the user can
> interactively zoom into this plot (like DF's zPlot). The conversion from
> device to data coordinates is of course done in direct graphics with the
> Convert_Coord function. However, I can't find any examples of how this
> is done for object graphics.
>
> Has anyone done this - and are there any examples you can direct me to.

My Motley library, hosted at

http://www.dfanning.com/hadfield/idl/README.html,

has an Object Graphics rubberband box for zooming into 2D or 3D plots.
It's implemented as one of several different "mouse handlers" that can
be selected via a drop-down list on the botttom of plot windows. The
relevant one is called the "Zoom" handler and the code for it can be
seen in the file mgh_mouse_handler_library.pro.

Make of it what you will. It's quite tigthly coupled with the rest of
the code in the library, so pulling it out would take a bit of work.


--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how to create IDL batch job in window?
Next Topic: Draw Widget Type Field

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

Current Time: Sat Oct 11 07:12:09 PDT 2025

Total time taken to generate the page: 1.44057 seconds