Kitware / trame-vtklocal

VTK Local Rendering using VTK/WASM to match server side rendering pipeline on the client side.
Other
10 stars 0 forks source link

ParaView serialization #2

Open jourdain opened 4 months ago

jourdain commented 4 months ago

Missing serializer for:

jourdain commented 4 months ago

FYI @jspanchu when running https://github.com/Kitware/trame-vtklocal/tree/master/examples/pv

jspanchu commented 4 months ago

Okay, that is quite smaller list than I expected.

jourdain commented 4 months ago

That is just with a cone... But indeed not too bad... Now the question is how can we handle those since they are not part of VTK.

jspanchu commented 4 months ago

Now the question is how can we handle those since they are not part of VTK.

For this purpose, I've added basic mechanism in vtkObjectManager::InitializeExtensionModuleHandlers( const std::vector<RegistrarType>& registrars) that is capable of loading serialization handlers from libraries external to VTK. Here RegistrarType is a function pointer. Now, the remaining task is to somehow get the extension library's registrar function pointers in Python/JS and send them to vtkObjectManager in python world and vtkWasmSceneManager in wasm world.