[vtkusers] inconsistent beha<vior of window resize

Oliver Kania ptw.freiburg at googlemail.com
Fri Nov 7 11:00:06 EST 2008


Hello,
using a simple window initialized like below

/*********************************************************/
vtkRenderer * renderer = vtkRenderer::New();
    vtkRenderWindow * renWin = vtkRenderWindow::New();
    renWin->SetSize(500, 500);
    //vtkPolyData* l_dat = vtkPolyData::New();
    renWin->AddRenderer(renderer);
    vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
    iren->SetRenderWindow(renWin);
    vtkInteractorStyleImage* style = vtkInteractorStyleImage::New();
    iren->SetInteractorStyle( style );
    //renderer->AddActor(iconActor)
/*********************************************************/

and adding an image - actor leads to the following phenomenon:

when changing the height of the window from the outside, the image actor
scales properly.
when changing the width only, the image actor does scale and is displayed
only partially if the window is "narrow" enough.

Does anyone know how to change this behavior ?
I want the image actor to scale in both cases.

Best regards,
Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081107/9c59f3c6/attachment.htm>


More information about the vtkusers mailing list