[vtkusers] The philosophies about deriving classes based on the vtk class

Dean Inglis dean.inglis at sympatico.ca
Mon Nov 5 06:00:17 EST 2007


James,

>Now my question is: may I use my derived class as in CASE 1) directly in
the
>project? In my project, I have problems when I use it in this way. The
>derived class cannot get data through
>"mywdgt->SetInputConnection(reader->GetOutputPort());".

>Could anyone show me whether I may use the derived vtk classes in this way?

Your derived class will never work unless you
implement SetInputConnection.  grep'ing VTK/Widgets shows
that no widget classes implement this method! This is
becuase widgets do not inherit from vtkAlgorithm
(or vtkProcessObject).

Dean




More information about the vtkusers mailing list