[Paraview] Send an array from client to server

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Sep 17 10:28:29 EDT 2015


How big is the array? For 100s of values, I'd say IntVectorProperty is
still reasonable. Any other approach will mean that those values are not
going to get saved in state files and such. For a one off push to server
side for values you don't care to be saved in state files, you can directly
call API using the vtkClientServerStream on the proxy as follows:

  vtkClientServerStream stream;
  stream << vtkClientServerStream::Invoke
              << VTKOBJECT(proxy)

  for (int cc=0; cc < maxValues; cc++)
    {
    }

On Thu, Sep 17, 2015 at 6:22 AM, Biddiscombe, John A. <biddisco at cscs.ch>
wrote:

> I’m afraid I’ve forgotten how to write plugins for paraview and I have a
> simple-ish question :
>
>
>
> I’ve got a vtkUnsignedIntArray in my custom panel and I’d like to set it
> as a property on a reader,
>
> the reader has a member
>
> vtkSetObjectMacro(SelectedGIDs)
>
>
>
> and in the panel I’ve generated a list of IDs, but I cannot recall how I’m
> supposed to set them as the proxyproperty for the source.
>
>
>
> Is there an example (I do remember that I don’t want to use an
> IntVectorProperty, but pass a whole array as a proxy property)
>
>
>
> (I’m considering using a vtkSelection, but the GIDs are not the same as
> the cell Ids, so I wanted to try a direct array method first)
>
>
>
> thanks
>
>
>
> JB
>
>
>
> --
>
> John Biddiscombe,                        email:biddisco @.at.@ cscs.ch
>
> http://www.cscs.ch/
>
> CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
>
> Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91) 610.82.82
>
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150917/6c1bb793/attachment.html>


More information about the ParaView mailing list