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
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
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)
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
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
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
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 <<
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
(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
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
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
11 matches
Mail list logo