[Paraview] AddArray does not influence the GUI

David E DeMarle dave.demarle at kitware.com
Thu Jan 31 10:00:14 EST 2013


When you fetch you are making a copy of the data on the client. Changing
that copy doesn't affect the original which may exist only on a remote
machine (or machines).

Use the python programmable filter instead, or go through the proxy layer.
In either case you will be affecting the original.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, Jan 31, 2013 at 9:48 AM, Henning <uerland at gmail.com> wrote:

> Hi,
>
> I try to add an array to PointData of a vtkUnstructuredGrid object:
>
> Source1info = GetActiveSource()
> Source1 = servermanager.Fetch(Source1info)
>
> test = vtk.vtkDoubleArray()
> test.SetName('test')
> test.SetNumberOfTuples(Source1.GetNumberOfPoints())
>
> Source1.GetPointData().AddArray(test)
>
>
> Unfortunately the newly added array does not show up in the GUI. How can
> this be achieved?
>
>
> Thanks
> Henning
> _______________________________________________
> 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/20130131/d28535a4/attachment.htm>


More information about the ParaView mailing list