[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving & replaying direct graphics commands (was Re: Top 10 IDL Requests)



Mark Hadfield (m.hadfield@niwa.cri.nz) writes:

> A month or two ago I looked at David Fanning's XWINDOW procedure, as you
> have presumably done, and considered how to get past its major limitation:
> the graphics command must be a single procedure. I came up with the idea of
> a "window" that can accept & store a series of commands. This is what a
> typical creation/calling sequence would look like:
> 
> owin = obj_new('xzwindow')
> owin->plot, 'plot', findgen(11)
> owin->plot, 'oplot', 0.1*findgen(11)^2, LINESTYLE=1
> owin->plot, 'oplot', sqrt(10.*findgen(11)), LINESTYLE=2, COLOR=3

I've written exactly this kind of thing (on more than
one occasion, I think). But I always get half finished
and then I'm distracted by something seemingly more
important. But I use my LinkedList object to store
the commands. I even had a "command editor" working,
where you could add or delete commands, move them 
around, etc.

Perhaps between us we have more or less a complete
solution. :-)

Cheers,

David

-- 
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155