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:
view=servermanager.CreateRenderView() rep = servermanager.CreateRepresentation(reader, view) 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. Thanks, David On Sat, Apr 11, 2009 at 11:25 AM, Peter Brady <[email protected]> wrote: > Try the vtk documentation. I think this page might be what you're looking > for. > > http://www.vtk.org/doc/nightly/html/classvtkImageWriter.html > > Hope that helps, > Peter. > > On Sat, Apr 11, 2009 at 7:57 AM, David Doria <[email protected]> wrote: > > I am doing something like this: > > > > -------------- > > view=servermanager.CreateRenderView() > > #render something > > view.WriteImage("top.png", "vtkPNGWriter") > > -------------- > > > > I can find help with > > help(servermanager) > > or > > help(servermanager.CreateRenderView) > > > > but not with > > > > help(servermanager.CreateRenderView.WriteImage) > > > > I was trying to figure out how to change the image size or see what other > > writes are available, things like that. I can't seem to find > documentation. > > I found this: > > http://www.paraview.org/doc/nightly/html/classvtkPVRenderView.html > > > > But it doesn't have a WriteImage() function, so I guess I'm not in the > right > > place? > > > > Can someone point me in the right direction? > > > > Thanks, > > > > David > > > > _______________________________________________ > > 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 > > > > >
_______________________________________________ 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
