<div dir="ltr"><div><div>Hi all,<br><br>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. <br><br></div><div>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 (<a href="http://www.vtk.org/doc/release/5.10/html/classvtkImageToImageFilter.html#acd9971364100b73b373c02e5a2375015">http://www.vtk.org/doc/release/5.10/html/classvtkImageToImageFilter.html#acd9971364100b73b373c02e5a2375015</a>), but not in vtkAlgorithm or its subclasses.<br>
<br>Slicer happens to use InputScalarsSelection in one class, as below:  <br><a href="https://github.com/Slicer/Slicer/blob/master/Libs/vtkTeem/vtkTensorRotate.cxx#L78">https://github.com/Slicer/Slicer/blob/master/Libs/vtkTeem/vtkTensorRotate.cxx#L78</a><br>
<a href="https://github.com/Slicer/Slicer/blob/master/Libs/vtkTeem/vtkTensorRotate.cxx#L99">https://github.com/Slicer/Slicer/blob/master/Libs/vtkTeem/vtkTensorRotate.cxx#L99</a><br><br>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? <br>
<br>Thanks a lot,<br></div></div><div>Yuzheng<br></div><br><br></div>