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

2015-09-26 Thread Utkarsh Ayachit
ll look again at it. > > Thanks > > JB > > From: Utkarsh Ayachit > Date: Thursday 24 September 2015 17:57 > To: cscs > Cc: "paraview@paraview.org" > Subject: Re: [Paraview] Send an array from client to server > > Attached is the solution, the

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

2015-09-26 Thread Biddiscombe, John A.
JB From: Utkarsh Ayachit mailto:utkarsh.ayac...@kitware.com>> Date: Thursday 24 September 2015 17:57 To: cscs mailto:biddi...@cscs.ch>> Cc: "paraview@paraview.org<mailto:paraview@paraview.org>" mailto:paraview@paraview.org>> Subject: Re: [Paraview] Send an arr

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 how to do it ... > >

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 a

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 << vtkClientServerStre

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

2015-09-17 Thread Biddiscombe, John A.
5 16:47 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 value

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 to

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 A

[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 ID