[vtkusers] OffScreen and blank window
ABE Hiroshi
habe36 at gmail.com
Thu May 21 04:29:55 EDT 2009
Dear Simon and all,
I am using Carbon version of VTK, so the situation might be different
from you, Simon.
But I checked the vtkCarbonRenderWindow.cxx as you did for Cocoa
version, I found CreateAWindow calls ShowWindow to display the
renderwindow. So I changed the code as:
vtkCarbonRenderWindow.cxx: 715
if(!this->GetOffScreenRendering() ) ShowWindow(this->RootWindow);
Anyway it works as I expected, however, I am wondering if it might be
fit to the spec.
Any suggestion?
Regards,
Hiroshi ABE
On 2009/05/20, at 22:54, Simon Drouin wrote:
> I have the same problem, though it seems to be specific to OSX. On
> Win32, the behavior is as expected and the window doesn't show.
>
> The Mac implementation of vtkRenderWindow creates the window before
> checking Offscreen flag. If I understand the code (Objective C,
> which I don't master), the window is created, then its properties
> are changed to do offscreen rendering, so you get a dead window in
> the middle of the screen. What is worst is that the window that is
> originally created stays on screen even after deleting the
> vtkRenderWindow instance.
>
> s.
>
> On Wed, May 20, 2009 at 5:03 AM, ABE Hiroshi <habe36 at gmail.com> wrote:
> Dear All,
>
> I am working with an application with several VTK windows.
>
> Only single VTK window is visible and the others are hidden. But it
> is necessary to render the hidden windows because the rendered
> images of the hidden windows are needed to be stored as images.
>
> So I put the "OffScreenRenderingOn" to the hidden "vtkRenderWindow"s.
>
> Actually the images are properly generated as expected.
> My problem is that unexpected blank windows are pop-up-ed. I
> believe the blank window is popup-ed when the hidden renderwindow
> is "Render"ed.
>
> Is there any way not to generate the blank window?
>
> My Env. is:
>
> PowerMac MDD 867MHz,
> MacOS X 10.4.11
> ATI Radeon 9600 256MB
> VTK 5.4
>
> Thank you in advance.
>
> Regards,
>
> ABE Hiroshi
> from Tokorozawa, JAPAN
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://
> www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list