[vtkusers] vtkWarpScalar->SetInput(vtkPolyData *). Should it work?

Amy Henderson amy.henderson at kitware.com
Thu May 8 08:42:50 EDT 2003


Hi Nico,

Did you do a #include "vtkPolyData.h" in the file that contains this piece 
of code you described in this e-mail?  It looks like the compiler doesn't 
know that vtkPolyData is a subclass of vtkPointSet, and if that's the case, 
adding that #include should fix the problem.

- Amy

At 09:42 AM 5/8/2003 +0200, Nico Vermaas wrote:
>Hi,
>
>- Can anybody see what is wrong?
>- I want to use vtkWarpScalar to display an elevation picture of my scalars.
>- According to the examples and the manual I should first convert my 
>vtkImageData to vtkPolyData and then perform the warp.
>- For some reason the 'SetInput' memberfunction of warp does not seem to 
>exist (see errors). Has it changed in VTK4?
>- Does anybody have a working example of warping?
>
>vtkImageDataGeometryFilter *geometry = vtkImageDataGeometryFilter::New();
>  geometry->SetInput(myExtractVOI->GetOutput());
>
>  vtkWarpScalar *warp = vtkWarpScalar::New();
>  warp->SetInput(geometry->GetOutput());
>
>------------------------
>ERROR:
>  no matching function for call to `vtkWarpScalar::SetInput (vtkPolyData *)'
>/home/vermaas/CVS/cosmo312GTK/vtk_nightly_4.x/VTK/Filtering/vtkPointSetToPointSetFilter.h:57: 
>candidates are: void vtkPointSetToPointSetFilter::SetInput(vtkPointSet *)
>
>
>
>====================================================
>Nico Vermaas
>ASTRON - Westerbork Synthesis Radio Telescope
>Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands
>
>tel: +31 593 598710
>vermaas at astron.nl
>====================================================
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers







More information about the vtkusers mailing list