Re: [Paraview] Send an array from client to server

2015-09-26 Thread Biddiscombe, John A.
w@paraview.org<mailto:paraview@paraview.org>> Subject: Re: [Paraview] Send an array from client to server Attached is the solution, there a small mistake in my origin script: vtkClientServerStream stream; stream << vtkClientServerStream::Invoke << VTKOBJEC

Re: [Paraview] Send an array from client to server

2015-09-26 Thread Utkarsh Ayachit
eadline has passed I’ll look again at it. > > Thanks > > JB > > From: Utkarsh Ayachit <utkarsh.ayac...@kitware.com> > Date: Thursday 24 September 2015 17:57 > To: cscs <biddi...@cscs.ch> > Cc: "paraview@paraview.org" <paraview@paraview.org> > Subject: Re

Re: [Paraview] Send an array from client to server

2015-09-24 Thread Utkarsh Ayachit
Attached is the solution, there a small mistake in my origin script: vtkClientServerStream stream; stream << vtkClientServerStream::Invoke << VTKOBJECT(proxy) << SetValues << maxValues << stream.InsertArray(values, maxValues)

Re: [Paraview] Send an array from client to server

2015-09-21 Thread Utkarsh Ayachit
John, That looks too convoluted. I haven't done this in a while so I'll need to refresh my memory a bit. I'll make an example today and then get back to you. Utkarsh On Sun, Sep 20, 2015 at 4:43 AM, Biddiscombe, John A. wrote: > Just following up so that when I’ve forgotten

Re: [Paraview] Send an array from client to server

2015-09-20 Thread Biddiscombe, John A.
Just following up so that when I’ve forgotten how to do it ... This works #define VTK_WRAPPING_CXX #include "vtkClientServerStream.h" ... // void SetSelectedGIds(int n, const int *Ids); void SetSelectedGIds(int N, int Ids[]); //BTX void SetSelectedGIds(int N, vtkClientServerStreamDataArg

Re: [Paraview] Send an array from client to server

2015-09-19 Thread Biddiscombe, John A.
I made some progress, but have not solved the problem. The stream insertion from the gui generates 3 params, type size and the array itself. The cxx client server wrapper expects a size and a pointer, 2 params (+the two for the objected etc) The wrapper needs to be tricked into producing code for

Re: [Paraview] Send an array from client to server

2015-09-18 Thread Biddiscombe, John A.
Utkarsh Apologies, I didn’t get chance to try this properly until now, When I call this vtkClientServerStream stream; stream << vtkClientServerStream::Invoke << VTKOBJECT(proxy) << "SetSelectedGIds" << numValues; stream.InsertArray(data, numValues); stream <<

[Paraview] Send an array from client to server

2015-09-17 Thread Biddiscombe, John A.
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

Re: [Paraview] Send an array from client to server

2015-09-17 Thread Utkarsh Ayachit
(hit `send` prematurely, ignore previous email) 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

Re: [Paraview] Send an array from client to server

2015-09-17 Thread Utkarsh Ayachit
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

Re: [Paraview] Send an array from client to server

2015-09-17 Thread Biddiscombe, John A.
To: Biddiscombe, John A. Cc: paraview@paraview.org Subject: Re: [Paraview] Send an array from client to server (hit `send` prematurely, ignore previous email) 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