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

Home » Public Forums » archive » 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: Object Graphics [message #39388 is a reply to message #9626] Tue, 11 May 2004 19:42 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> Well, you can make the argument that retaining an object
> graphics window is a gross misuse of the Earth's resources.
> Why retain? You have the whole damn graphics hierarchy
> already in memory. When you get an EXPOSE event in your
> draw widget, just re-draw the graphics.

window = obj_new('IDLgrWindow', RETAIN=0)

This command works like a charm. No error. No problem. I had a setup
file I was using which always set RETAIN to 2 since my work up until now
had been in Direct Graphics. And for the curious, here's what RSI has
to say about this buried way down in their documentation:

In some situations, IDL cannot provide this backing store.

In IDL Object Graphics, it is almost always best to disable backing
store (that is, set the RETAIN property equal to zero). This is because
drawing to an off-screen pixmap (which is what happens when backing
store is enabled) almost always bypasses any hardware graphics
acceleration that may be available, causing all rendering to be done in
software. To ensure that windows are redrawn properly, enable the
generation of expose events on the WIDGET_DRAW window and redraw the
windows explicitly when an expose event is received.

If you are using software rendering (that is, the RENDERER property is
set equal to one), IDL will refresh the window automatically regardless
of the setting of the RETAIN property.

> That's what you *had* to do when object graphics were
> first released, although they have become more user
> friendly over the years. (To much chagrin in the IEPA,
> I can tell you!) You can think of this (if you choose,
> of course) as your machine wanting to force you into
> good programming practices. Those of us with Windows
> machines will be drooling at your good luck! :-)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NOAA SAA Imagery display tool
Next Topic: Re: IDL - fundamental question about image display

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

Current Time: Wed Oct 08 19:02:12 PDT 2025

Total time taken to generate the page: 0.00421 seconds