[vtkusers] Problem with VolumeMapper & StructuredPointsReader
Amy Henderson
amy.henderson at kitware.com
Thu Jan 29 08:50:51 EST 2004
Hi Hari,
Did you include the header file for
vtkStructuredPoints? vtkStructuredPoints is a subclass of vtkImageData,
but your code will need to have vtkStructuredPoints.h included to know that.
- Amy
At 07:53 PM 1/28/2004 -0500, Hari Sundar wrote:
>Hi,
>
>I was trying to do something as simple as converting one of the Python/Tcl
>examples into Cxx ... SimpleTextureMape2D.py ... the python example works
>...
>
>this is how my Cxx code (relevant part) looks ...
>
>vtkStructuredPointsReader *reader = vtkStructuredPointsReader::New();
>reader->SetFileName("ironProt.vtk");
>
>vtkVolumeTextureMapper2D *volumeMapper = vtkVolumeTextureMapper2D::New();
>volumeMapper->SetInput(reader->GetOutput());
>
>when I compile this .. I get this error ,,,
>
>simple.cxx:104: no matching function for call to
>`vtkVolumeTextureMapper2D::
> SetInput(vtkStructuredPoints*)'
>/usr/local/src/VTK-4.2/Rendering/vtkVolumeMapper.h:59: candidates are:
>virtual
> void vtkVolumeMapper::SetInput(vtkImageData*)
>
>what did I do wrong ???
>
>thanks,
>-Hari
>_______________________________________________
>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://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list