Thanks Peter - good idea about grepping the source - that just always seems like a last resort so I wanted to make sure I wasn't being silly and missing some nice documentation some where first. <br><br>.ViewSize looks like what I was asking for, I'll give that a shot.<br>
<br clear="all">Thanks,<br><br>David<br>
<br><br><div class="gmail_quote">On Sat, Apr 11, 2009 at 2:07 PM, Peter Brady <span dir="ltr"><<a href="mailto:petertbrady@gmail.com">petertbrady@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi David,<br>
<br>
I agree that it can be a bit of a frustrating scavenger hunt. I'm not<br>
sure what platform you're using but it will pay off if you get<br>
familiar with 'find' and 'grep' commands to dig through the paraview<br>
source. In the meantime I think you're looking for something like,<br>
<br>
view.ViewSize = [number, number] to set the gui size.<br>
You can use something like 'view.ParallelScale' to zoom in (that's not<br>
the exact command but it should be listed in dir(view)).<br>
<br>
Good luck,<br>
<div><div></div><div class="h5">Peter.<br>
<br>
On Sat, Apr 11, 2009 at 8:38 AM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>
> Hm I still don't see anything about how to set the size of the image? And I<br>
> also don't know how I would have found vtkImageWriter from WriteImage(),<br>
> when WriteImage() is not an actual function anywhere in the vtk docs. And<br>
> the same kind of thing, I thought maybe size would be changed in my:<br>
><br>
> view=servermanager.CreateRenderView()<br>
> rep = servermanager.CreateRepresentation(reader, view)<br>
><br>
> instead of in the actual writing step, but I didn't see servermanager in the<br>
> vtk docs. Also, I found a vtkCameraRepresentation, but it doesn't look like<br>
> this is the same thing created by CreateRepresentation. I found<br>
> vtkRenderView, and in vtkView (the parent class) there is a SizePort(i , j)<br>
> function, but how would you call that from python? I think the main issue is<br>
> that python doesn't require the variables to be typed and hence I don't know<br>
> what they actually are.<br>
><br>
> Thanks,<br>
><br>
> David<br>
><br>
><br>
> On Sat, Apr 11, 2009 at 11:25 AM, Peter Brady <<a href="mailto:petertbrady@gmail.com">petertbrady@gmail.com</a>> wrote:<br>
>><br>
>> Try the vtk documentation. I think this page might be what you're looking<br>
>> for.<br>
>><br>
>> <a href="http://www.vtk.org/doc/nightly/html/classvtkImageWriter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImageWriter.html</a><br>
>><br>
>> Hope that helps,<br>
>> Peter.<br>
>><br>
>> On Sat, Apr 11, 2009 at 7:57 AM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>
>> > I am doing something like this:<br>
>> ><br>
>> > --------------<br>
>> > view=servermanager.CreateRenderView()<br>
>> > #render something<br>
>> > view.WriteImage("top.png", "vtkPNGWriter")<br>
>> > --------------<br>
>> ><br>
>> > I can find help with<br>
>> > help(servermanager)<br>
>> > or<br>
>> > help(servermanager.CreateRenderView)<br>
>> ><br>
>> > but not with<br>
>> ><br>
>> > help(servermanager.CreateRenderView.WriteImage)<br>
>> ><br>
>> > I was trying to figure out how to change the image size or see what<br>
>> > other<br>
>> > writes are available, things like that. I can't seem to find<br>
>> > documentation.<br>
>> > I found this:<br>
>> > <a href="http://www.paraview.org/doc/nightly/html/classvtkPVRenderView.html" target="_blank">http://www.paraview.org/doc/nightly/html/classvtkPVRenderView.html</a><br>
>> ><br>
>> > But it doesn't have a WriteImage() function, so I guess I'm not in the<br>
>> > right<br>
>> > place?<br>
>> ><br>
>> > Can someone point me in the right direction?<br>
>> ><br>
>> > Thanks,<br>
>> ><br>
>> > David<br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the ParaView Wiki at:<br>
>> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> ><br>
>> ><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</div></div></blockquote></div><br>