[Paraview] setting graphical window size

Stephen Wornom stephen.wornom at sophia.inria.fr
Fri May 8 03:16:29 EDT 2009


John wrote:
> I should have added that I have now just learnt that the export option 
> and specifying the size will produce similar images - but that they 
> aren't what i actually see on the screen. Very frustrating as I set 
> the visual composition based on what I see on the screen.
It would help if you sent the screen shot.
Stephen
>
> Moreland, Kenneth wrote:
>> When you write an image, you can specify a resolution to use 
>> independent of the size of the GUI.  If you type in the same 
>> resolution every time, you should get the same projection.
>>
>> -Ken
>>
>>
>> On 5/6/09 11:28 PM, "John" <bitumen.surfer at gmail.com> wrote:
>>
>>     Hi,
>>
>>     I'm using to paraview to create screenshots of multiple sets of data
>>     (12+). Each dataset is located in a separate file and may have
>>     different
>>     boundary conditions or different surfaces. (i.e. they are not
>>     identical
>>     - although they *might* have elements in common and their domain
>>     size is
>>     the same). I've written a simple script (below) using python to
>>     set my
>>     camera angle the same between loading the state for each scenario
>>
>>     However, I have one difficulty, if I have exited paraview or
>>     resized the
>>     windows (or .#%#@.. it crashed ) the size & aspect ratio of the
>>     window
>>     displaying my 3D view may change. This results in my screenshots have
>>     differing resolutions i.e. my first series had 1198x712 but my
>>     next was
>>     1106x780. I know you can specify this resolution in the save
>>     screenshot
>>     dialog - however this is after the fact and some elements seem to
>>     differ
>>     based on the real size (i.e. legends)
>>
>>     I can't seem to find an option to specify the size of this
>>     window, but I
>>     assume I may be able to via python ? can anyone help with this ?
>>
>>     Also would love to know how to move the location of the
>>     orientation axes ?
>>
>>     For reference, I am not a python programmer ( but can program C, C++,
>>     Fortran ... ) so forgive any style mistakes.
>>
>>     Thanks, John
>>
>>     My quick script to set camera state is: (iso_L.py)
>>     #!/usr/bin/env python
>>
>>     from paraview.servermanager import *
>>     if not servermanager.ActiveConnection:
>>         connection = servermanager.Connect()
>>     view = servermanager.GetRenderView()
>>     camera = view.GetActiveCamera()
>>     view.CameraPosition=[0.5,-4,4]
>>     view.CameraFocalPoint=[2.915, 0, 0.821]
>>     view.CameraViewUp=[0, 0, 1]
>>     view.CameraViewAngle=30
>>     #view.ResetCamera()
>>     view.StillRender()
>>     _______________________________________________
>>     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 ParaView Wiki at:
>>     http://paraview.org/Wiki/ParaView
>>
>>     Follow this link to subscribe/unsubscribe:
>>     http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>>
>>
>>    ****      Kenneth Moreland
>>     ***      Sandia National Laboratories
>> ***********  
>> *** *** ***  email: kmorel at sandia.gov
>> **  ***  **  phone: (505) 844-8919
>>     ***      web:   http://www.cs.unm.edu/~kmorel 
>> <http://www.cs.unm.edu/%7Ekmorel>
>>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>   


-- 
stephen.wornom at sophia.inria.fr
2004 route des lucioles - BP93
Sophia Antipolis
06902 CEDEX
		
Tel: 04 92 38 50 54
Fax: 04 97 15 53 51

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stephen_wornom.vcf
Type: text/x-vcard
Size: 160 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090508/d4a2c454/attachment-0001.vcf>


More information about the ParaView mailing list