[vtkusers] [vtk-developers] Started on VTK 4 compatibility removal

Julien Finet julien.finet at kitware.com
Thu May 5 16:26:18 EDT 2011


Maybe the issue on the order of the callbacks be a good candidate for the
"Remove VTK 4 Compatibility" branch...
http://public.kitware.com/Bug/view.php?id=12044
 <http://public.kitware.com/Bug/view.php?id=12044>Julien.

On Wed, May 4, 2011 at 4:23 PM, Berk Geveci <berk.geveci at kitware.com> wrote:

> Hi folks,
>
> For those that are interested, I started working on removing the VTK 4
> backwards compatibility layer as described here:
>
> http://www.vtk.org/Wiki/VTK/Remove_VTK_4_Compatibility
>
> I am going to regularly send updates to mailing list so that folks can
> try out these changes and see if they break their own code. For now, I
> am publishing a branch called remove-vtk-4-compatibility to
> https://gitorious.org/~berkgeveci/kitware/berkgevecis-vtk. In the near
> future, there will be a branch in the VTK stage as well.
>
> My changes so far:
>
> - I removed vtkProcessObject and all of its subclasses (including
> vtkSource). A list of files I removed is at the bottom. If you have a
> subclass of any of these, you have to change it to subclass from
> vtkAlgorithm or one of its subclasses.
>
> - I removed vtkPLOT3DReader. This reader created one output per block
> in the file. VTK no longer supports variable number of outputs. Such
> readers/filters should be converted to produce multi-block datasets.
> The replacement for this filter is vtkMultiBlockPLOT3DReader. In the
> future, I will probably rename it to be vtkPLOT3DReader.
>
> - I changed vtkSpatialRepresentationFilter to produce a multi-block
> dataset for the same reason as with vtkPLOT3DReader. I also had to
> change the API as which output the filter produced was dependent on
> the GetOutput() method which I had to remove. See the header file for
> details.
>
> - I removed vtkPOPReader. This is a clean-up. This class never passed
> development stage and the POP flavor it loaded was in-house to
> Kitware.
>
> I am currently working on changes that are likely to have an impact on
> some of the never code. I am removing the dependency of vtkDataObject
> on the pipeline. This means that any code that did something like:
>
> output->SetWholeExtent(...);
>
> or
>
> output->GetWholeExtent(...);
>
> will break. More on this next time.
>
> Please feel free to ask questions.
>
> Best,
> -berk
>
>
> vtkProcessObject and subclasses removed:
>  Filtering/vtkDataObjectSource.cxx Filtering/vtkDataObjectSource.h
>  Filtering/vtkDataSetSource.cxx Filtering/vtkDataSetSource.h
>  Filtering/vtkDataSetToDataSetFilter.cxx
>  Filtering/vtkDataSetToDataSetFilter.h
>  Filtering/vtkDataSetToImageFilter.cxx
>  Filtering/vtkDataSetToImageFilter.h
>  Filtering/vtkDataSetToPolyDataFilter.cxx
>  Filtering/vtkDataSetToPolyDataFilter.h
>  Filtering/vtkDataSetToStructuredGridFilter.cxx
>  Filtering/vtkDataSetToStructuredGridFilter.h
>  Filtering/vtkDataSetToStructuredPointsFilter.cxx
>  Filtering/vtkDataSetToStructuredPointsFilter.h
>  Filtering/vtkDataSetToUnstructuredGridFilter.cxx
>  Filtering/vtkDataSetToUnstructuredGridFilter.h
>  Filtering/vtkImageMultipleInputFilter.cxx
>  Filtering/vtkImageMultipleInputFilter.h
>  Filtering/vtkImageMultipleInputOutputFilter.cxx
>  Filtering/vtkImageMultipleInputOutputFilter.h
>  Filtering/vtkImageSource.cxx Filtering/vtkImageSource.h
>  Filtering/vtkImageToImageFilter.cxx Filtering/vtkImageToImageFilter.h
>  Filtering/vtkImageTwoInputFilter.cxx
>  Filtering/vtkImageTwoInputFilter.h Filtering/vtkPointSetSource.cxx
>  Filtering/vtkPointSetSource.h
>  Filtering/vtkPointSetToPointSetFilter.cxx
>  Filtering/vtkPointSetToPointSetFilter.h
>  Filtering/vtkPolyDataSource.cxx Filtering/vtkPolyDataSource.h
>  Filtering/vtkPolyDataToPolyDataFilter.cxx
>  Filtering/vtkPolyDataToPolyDataFilter.h
>  Filtering/vtkProcessObject.cxx Filtering/vtkProcessObject.h
>  Filtering/vtkRectilinearGridSource.cxx
>  Filtering/vtkRectilinearGridSource.h
>  Filtering/vtkRectilinearGridToPolyDataFilter.cxx
>  Filtering/vtkRectilinearGridToPolyDataFilter.h
>  Filtering/vtkSource.cxx Filtering/vtkSource.h
>  Filtering/vtkStructuredGridSource.cxx
>  Filtering/vtkStructuredGridSource.h
>  Filtering/vtkStructuredGridToPolyDataFilter.cxx
>  Filtering/vtkStructuredGridToPolyDataFilter.h
>  Filtering/vtkStructuredGridToStructuredGridFilter.cxx
>  Filtering/vtkStructuredGridToStructuredGridFilter.h
>  Filtering/vtkStructuredPointsSource.cxx
>  Filtering/vtkStructuredPointsSource.h
>  Filtering/vtkStructuredPointsToPolyDataFilter.cxx
>  Filtering/vtkStructuredPointsToPolyDataFilter.h
>  Filtering/vtkStructuredPointsToStructuredPointsFilter.cxx
>  Filtering/vtkStructuredPointsToStructuredPointsFilter.h
>  Filtering/vtkStructuredPointsToUnstructuredGridFilter.cxx
>  Filtering//vtkStructuredPointsToUnstructuredGridFilter.h
>  Filtering/vtkUnstructuredGridSource.cxx
>  Filtering/vtkUnstructuredGridSource.h
>  Filtering/vtkUnstructuredGridToPolyDataFilter.cxx
>  Filtering/vtkUnstructuredGridToPolyDataFilter.h
>  Filtering/vtkUnstructuredGridToUnstructuredGridFilter.h
>  Filtering/vtkUnstructuredGridToUnstructuredGridFilter.cxx
>  Imaging/vtkImageSpatialFilter.cxx Imaging/vtkImageSpatialFilter.h
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110505/95016075/attachment.htm>


More information about the vtkusers mailing list