[vtk-developers] SetInput fails?
Jeff Baumes
jeff.baumes at kitware.com
Fri May 28 14:55:53 EDT 2010
On Fri, May 28, 2010 at 2:53 PM, Tim Peeters <thjmpeeters at gmail.com> wrote:
> Dear developers,
>
> I am developing a VTK-based application that uses a plug-in system to
> add functionality to the core system.
> I am loading plug-ins (which are loaded as DLL's on Windows) using the
> Qt plugin system.
>
> The following code, in one of the plugins, fails:
>
> vtkTensorToEigensystemFilter* eigen = vtkTensorToEigensystemFilter::New();
> // dti is a valid vtkImageData object
> eigen->SetInput(dti);
> vtkImageData* eigenOut = eigen->GetOutput();
> // eigenOut == NULL
You are missing eigen->Update(), which will actually run your filter,
before you get the output.
More information about the vtk-developers
mailing list