Wrapping python dos not work when overriding the pipeline controller
Using this code in a ParaView-based application makes every calls in python that uses paraview.simple.servermanager.ParaViewPipelineController()
fails (like Show()
for example) :
[...]
// static factory initialization
[...]
VTK_CREATE_CREATE_FUNCTION(vtkSMCustomPipelineController);
vtkCustomObjectFactory::vtkCustomObjectFactory()
{
this->RegisterOverride("vtkSMParaViewPipelineControllerWithRendering",
"vtkSMCustomPipelineController", "MyCustomPipelineController", 1,
vtkObjectFactoryCreatevtkSMCustomPipelineController);
}
The reason is that paraview.simple.servermanager.ParaViewPipelineController().SMController
in ParaView gives a vtkSMParaViewPipelineControllerWithRendering
but in the custom app it returns a vtkSMParaViewPipelineController
instance.