Hm I still don't see anything about how to set the size of the image? And I also don't know how I would have found vtkImageWriter from WriteImage(), when WriteImage() is not an actual function anywhere in the vtk docs. And 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 vtk docs. Also, I found a vtkCameraRepresentation, but it doesn't look like this is the same thing created by CreateRepresentation. I found vtkRenderView, and in vtkView (the parent class) there is a SizePort(i , j) function, but how would you call that from python? I think the main issue is that python doesn't require the variables to be typed and hence I don't know what they actually are.<br>
<br clear="all">Thanks,<br><br>David<br>
<br><br><div class="gmail_quote">On Sat, Apr 11, 2009 at 11:25 AM, 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;">
Try the vtk documentation. I think this page might be what you're looking 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>
<div><div></div><div class="h5"><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 other<br>
> writes are available, things like that. I can't seem to find 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 right<br>
> place?<br>
><br>
> Can someone point me in the right direction?<br>
><br>
> Thanks,<br>
><br>
> David<br>
><br>
</div></div>> _______________________________________________<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>
</blockquote></div><br>