Replace the deprecated VTK instantiator.
The latest VTK update (FW4SPL/fw4spl-deps!110) deprecated some functions, in particular vtkInstantiator::CreateInstance
that we use in ::visuVTKAdaptor::SInteractorStyle
and ::fwRenderVTK::SRender
. VTK now sends warnings when this method is called.
I sadly haven't found any official guidelines on how to replace the instantiator
We should figure out a new way of instantiating vtkObject
s through XML otherwise we may not be able to update VTK any longer.
UPDATE : Apparently the new way of instantiating is through the vtkObjectFactory.
UPDATE 2: The problem with this new method is that we either have to specify a VTK_AUTOLOAD_PATH
environment variable to load the factories at runtime or we have to manually register every single factory we wish to use in fw4spl....