Re: Creating a box overlaid on an image to identify a subset of data for analysis [message #37598] |
Thu, 08 January 2004 08:41 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Charles Paxson writes:
> What is the standard way of showing a box over an image in IDL? The
> widget_draw routine allows for keywords "motion_events", and
> "button_events". So the cursor positions may be obtained from the events
> structure.
>
> The intention of the application is to allow a mouse click press, drag and
> then release to indicate a region of data that will be processed and
> displayed in another window. With a combination of if statements checking
> on the button state and over plots, I'm sure I could kluge something
> together, but is there a standard routine or method to perform this task?
See this article:
http://www.dfanning.com/widget_tips/rubberband_widget.html
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|