[Paraview] python shell move data from client to server
pat marion
pat.marion at kitware.com
Wed Jun 29 11:43:12 EDT 2011
If you use the python programmable filter, you can create it & set the
filter routine (python code) via a python macro on the GUI. If the data you
are trying to manipulate on the GUI is small, you could encode it in a
string and set it in the body of the python programmable filter.
Pat
On Wed, Jun 29, 2011 at 9:49 AM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:
> Nope, moving data from client to server in the way you describe is not
> supported in ParaView. For what you are trying to do, you should
> really implement a filter (with multiple inputs, if needed) to do the
> data-manipulation on the server-side itself.
>
> Utkarsh
>
> On Wed, Jun 29, 2011 at 5:23 AM, Florian Beck <Flo.44 at gmx.de> wrote:
> > Hi,
> >
> > I want to create a DataObjectGenerator with an unstructered Grid. And
> when later I want to modify the grid. My try looks as follows:
> >
> >
> > # create the DataObjectGenerator
> > DataObjectGenerator1 = DataObjectGenerator()
> > DataObjectGenerator1.Program ='UG1'
> >
> > # read some coord from over objects
> > ...
> >
> > # to manipulate the grid fetch it
> > mysource = FindSource("DataObjectGenerator1")
> > output = servermanger.Fetch(mysource)
> > # clean old data
> > output.Initialize()
> >
> > # create some points and triangle cells
> > pts = pts.vtkPoints()
> > ...
> > output.SetPoints(pts)
> > ...
> > pointIds = vtk.vtkIdList()
> > ...
> > output.InsertNextCell(5,pointIds)
> > ...
> > # print the ugrid object
> > print output
> > mysource.UpdatePipeline()
> > Render()
> >
> > My problem is after i manipulate the ugrid on the client side there, i
> can't move it to the server side??? Is there a solution to connect the
> manipulated ugrid at server side with my DataObjectGenerator ? I know there
> are the programmable source, but i need data from other objects to
> manipulate the grid and i want to use my python script as macro.
> >
> > regards flo
> > --
> > NEU: FreePhone - kostenlos mobil telefonieren!
> > Jetzt informieren: http://www.gmx.net/de/go/freephone
> >
> >
> > --
> > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110629/2a65f409/attachment-0001.htm>
More information about the ParaView
mailing list