[vtkusers] OffScreen and blank window
Clinton Stimpson
clinton at elemtech.com
Tue May 26 14:08:53 EDT 2009
Ok, that needed fixed for other reasons, and makes a difference if
hardware offscreen is attempted but not supported.
Apparently, hardware offscreen creates the window and leaves it.
Doesn't seem like offscreen to me :)
You'll have to ask Kitware why they create/leave the window for offscreen.
On the Mac, I thought offscreen simply worked by creating a window and
use that as the rendering target, but never show it.
Clint
ABE Hiroshi wrote:
> Dear Clinton and all,
>
> Thank you for your suggestion, Clinton.
>
> I put the lines in vtkCarbonRenderWindow and saw what happened.
> Pop-up problem was still remained. May I understand your fix is for
> remaining window problem?
> If so I cannot see the effect of the fix because I haven't any code
> with the problem so far.
>
> Regarding a call, DisposeWindow, I found it is called in
> vtkCarbonRenderWindow::Finalize(void)
> So I'm afraid it is not necessary in DestroyWindow.
>
> Regards,
> ABE Hiroshi
> from Tokorozawa, JAPAN
>
> On 2009/05/21, at 23:11, Clinton Stimpson wrote:
>
>>
>> I see something else wrong, that needs fixed regardless of offscreen
>> rendering.
>> Can someone try putting this at the end of
>> vtkCarbonRenderWindow::DestroyWindow(), and see if it helps this
>> offscreen problem?
>>
>> void vtkCarbonRenderWindow::DestroyWindow()
>> {
>> ...
>> ...
>> if(this->OwnWindow && this->RootWindow)
>> {
>> DisposeWindow(this->RootWindow);
>> this->RootWindow = 0;
>> this->WindowId = 0;
>> }
>> this->Mapped = 0;
>> }
>>
>> vtkCocoaRenderWindow needs the same fix.
>>
>> Thanks,
>> Clint
>>
>> ABE Hiroshi wrote:
>>> 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
>>>
>>>
>
>
> _______________________________________________
> 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