Layered draw widget? [message #14003] |
Mon, 11 January 1999 00:00  |
Eric Frans
Messages: 13 Registered: October 1998
|
Junior Member |
|
|
Is there a way using draw widgets and direct graphics (in IDL 5.1) to
have multiple images or plots "stacked" on each other in the same area?
The idea is to then allow the user to scroll through each created plot
or image without recreating them each time they are displayed. Sorry if
this is a basic question, but I'm new to draw widgets and I couldn't
find any examples of this idea.
Thanks in advance for any help!
- Eric Frans
|
|
|
Re: Layered draw widget? [message #14110 is a reply to message #14003] |
Thu, 21 January 1999 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Eric Frans wrote:
>
> Is there a way using draw widgets and direct graphics (in IDL 5.1) to
> have multiple images or plots "stacked" on each other in the same area?
> The idea is to then allow the user to scroll through each created plot
> or image without recreating them each time they are displayed. Sorry if
> this is a basic question, but I'm new to draw widgets and I couldn't
> find any examples of this idea.
>
Eric -
Look at the code for the (obsolete) SLICER.PRO routine in
$IDL_DIR/obsolete, and possibly the newer SLICER3.PRO routine
in $IDL_DIR/lib. This gives an example of how you can have
several widget groups "mapped" to the same location in the
parent widget, and then use WIDGET_CONTROL, MAP=[1|0] to
unmap/map the widgets as you need. This could be used to
have multiple draw widgets available for display.
The method is a bit strange, and I don't believe I've seen
it documented anywhere (if someone knows where it is, I'd
be interested to know!).
You might want to consider using pixmaps and create your
plots etc. in these, and then use DEVICE, COPY=[] to copy
very quickly to your draw widget.
Let me know if this isn't sufficient; I may have a clearer
example that you can use.
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|