How to get field data of a given pipeline using SM Proxy model?

Hello dear paraview developers!

I have a tremendously imporant question.

How can one receive from the given pipeline element, the list of fields, and the data, corresponding to that field?

My best regards

given pipeline element, the list of fields

vtkSMSourceProxy:: GetDataInformation()

https://kitware.github.io/paraview-docs/latest/cxx/classvtkSMSourceProxy.html#a6de7a4da36aa127de651536e3f7b2942

and the data,

You dont really want that, that means transporting the data from the server to the client.

1 Like

Thanks a lot!

Are Source Proxies applicable to filters?

yes

What should I do if I want to pass for example, 100 values from the server to the client?
How could I achieve that?

100 values from the server to the client?

You do not want to do that in general, if needed, you can use an information property.

Could you please advise me where to search for an example?

Your own post: Deve - #2 by mwestphal

It works well, when I insert a specific function in my own filter

Is there a way to do the same with any given source/filter without modifying it?

Not the same. However you can fetch the data with the ClientServerMoveData filter and use GetClientSideObject, keep in mind it can be very costly.

Look for example implementation in vtkSpreadSheetView::StreamToClient()

1 Like

Dear Mathieu, thanks you a lot!

I will try to do follow this path

1 Like

Dear Mathieu, could you please explain, could GetClientSideObject be used without ClientServerMoveData?

Yes, when you are in “builtin” mode, GetClientSideObject always provide the server side object as the server and the client are actually a single executable and share a the same memory space.