[vtk-developers] How to replace InputScalarsSelection when remove class vtkImageToImageFilter?

Yuzheng Zhou yuzheng.zhou at kitware.com
Mon Nov 4 15:08:55 EST 2013


Hi all,

I am working on removing old VTK4 backwards compatibility superclasses in
Slicer to migrate it to VTK6, and have a question about the VTK API
changes.

In particular, VTK6 removes Filtering/vtkImageToImageFilter and requires
the related pipeline modules subclass from vtkAlgorithm or one of its
sublasses.  The problem is that a class variable called
InputScalarsSelection is only defined in vtkImageToImageFilter (
http://www.vtk.org/doc/release/5.10/html/classvtkImageToImageFilter.html#acd9971364100b73b373c02e5a2375015),
but not in vtkAlgorithm or its subclasses.

Slicer happens to use InputScalarsSelection in one class, as below:
https://github.com/Slicer/Slicer/blob/master/Libs/vtkTeem/vtkTensorRotate.cxx#L78
https://github.com/Slicer/Slicer/blob/master/Libs/vtkTeem/vtkTensorRotate.cxx#L99

Could anyone tell me how InputScalarsSelection is defined or refactored in
the VTK6 API, or how to fix the above two lines after the class is derived
from vtkThreadedImageAlgorithm instead of vtkImageToImageFilter per VTK6
migration?

Thanks a lot,
Yuzheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20131104/d3be3c58/attachment.html>


More information about the vtk-developers mailing list