[vtk-developers] vtkImageReader2

Marcus D. Hanwell marcus.hanwell at kitware.com
Fri Sep 23 10:26:07 EDT 2011


On Fri, Sep 23, 2011 at 10:23 AM, David Doria <daviddoria at gmail.com> wrote:
> It looks like vtkImageReader2 is a superclass for many of the image
> reader classes. However, it seems that you can instantiate it and use
> it without errors, but it just doesn't do anything:
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/IO/ImageReader2
>
> Is there a way to make one of the functions pure virtual so that it is
> obvious and impossible to instantiate directly? I think that would
> eliminate some confusion.
>
Can't you just remove the New method and mark it as abstract if that
is your goal? It would need marking as ABSTACT in the build system
too.

Marcus



More information about the vtk-developers mailing list