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.
.ViewSize looks like what I was asking for, I'll give that a shot. Thanks, David On Sat, Apr 11, 2009 at 2:07 PM, Peter Brady <[email protected]> wrote: > Hi David, > > I agree that it can be a bit of a frustrating scavenger hunt. I'm not > sure what platform you're using but it will pay off if you get > familiar with 'find' and 'grep' commands to dig through the paraview > source. In the meantime I think you're looking for something like, > > view.ViewSize = [number, number] to set the gui size. > You can use something like 'view.ParallelScale' to zoom in (that's not > the exact command but it should be listed in dir(view)). > > Good luck, > Peter. > > On Sat, Apr 11, 2009 at 8:38 AM, David Doria <[email protected]> wrote: > > 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 > > > > >
_______________________________________________ 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
