[Paraview-developers] render window size
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Tue Apr 10 15:02:45 EDT 2012
Try:
> GetRenderView().ViewSize = [640, 480]
instead of using the RenderWindow directly. ParaView manages the
window size and may/will be overridden if you directly set it.
Utkarsh
On Tue, Apr 10, 2012 at 2:56 PM, Li Guan <li.9uan at gmail.com> wrote:
> Hi all,
>
> After I set new RenderWindow size in python script SetSize(640,480), and
> GetSize(), the actual size is not 640,480.
> I just want to make sure the 640-by-480 Z-buffer I read should be at the
> right starting location.
>
> Here are the piece of code segment. Anything thought? Many thanks!
>
> input to python shell
> ---------------------------------------------
> RenWin = GetRenderView().GetRenderWindow();
> new_size = (640,480);
> RenWin.SetSize(new_size);
> actual_size = RenWin.GetSize();
> ---------------------------------------------
>
> output
> ---------------------------------------------
>>>> new_size
>
> (640, 480)
>
>>>> actual_size
>
> (648, 507)
>
> ---------------------------------------------
>
> Li
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
More information about the Paraview-developers
mailing list