X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Mar 2008 03:40 PM by  anon
IDL: erase doesn't work if graphics window is covered on openSUSE with X11
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
10 Mar 2008 03:40 PM
    Hi, when I issue the "erase" command, or when the graphics window automatically erases because the next plot starts on a new 'page', if any part (or even the whole) of the graphics window is covered by other windows, then the part that is covered is not erased. If I issue a plot or other graphics command, this will happily draw the expected output in the window, even in the covered part (though of course if the covered part still contains the remains of a previous plot because the erase has failed for the covered part, then my new plot will simply be superimposed on that remnant). I'm running IDL from the command line, rather than via the development environment, and as my monitor is not very large, I usually have the terminal window on top while issuing commands/running programs and then bring the graphics window to the top to see the result. This is why this failure to erase is really annoying! I'm not sure if this is a problem with IDL settings or with my X-window settings. I'm running under openSUSE 10.2, with KDE 3.5.5 "release 45.8". Tim

    Deleted User



    New Member


    Posts:
    New Member


    --
    10 Mar 2008 03:40 PM
    The tool that does rapid refreshing of a window's graphics is called "backing store". That is really nothing more than a snapshot of the pixel values of a window. By default IDL is set to have the operating system decide when a window should be repainted with its backing store values. However, users have the option, both in IDL Preferences as well as "on-the-fly" in just your current IDL session to let IDL decide when a window should be repainted with its backing store. IDL is the most reliable "manager" of backing store, but it is not as efficient a manager as the operating system. In any case in IDL Direct Graphics, the graphics property that controls backing store is called RETAIN. The command: DEVICE, RETAIN=2 entered at any point in an IDL session will set IDL as the backing store manager for all windows created after that call. Currently displayed windows cannot have their RETAIN property changed. They have to be closed and reinitialized again to acquire a new RETAIN property. James Jones
    You are not authorized to post a reply.