[vtkusers] Problem in an example
Shawn Waldon
swaldon at cs.unc.edu
Thu Jul 4 09:29:14 EDT 2013
Rahul,
It looks like you may be building against an older version of VTK.
SetInputData was not added until VTK 6, so if you are using VTK 5 (or
accidentally using the wrong header files), that is why you are getting the
message. If you just want to modify the code, you could change it to
SetInput instead (the VTK 5 and previous method used for the same purpose).
The methods are slightly different (see
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput), but
for the purposes of this example they are the same.
HTH,
Shawn
On Thu, Jul 4, 2013 at 8:58 AM, rahul indoria <rahulindoria5 at gmail.com>wrote:
> Hi,
> when i am running this code, this example(
> http://vtk.org/gitweb?p=VTK.git;a=blob_plain;f=Examples/DataManipulation/Cxx/Arrays.cxx
> ) *showing an error : 'SetInputData'* : is not a member of
> 'vtkPolyDataMapper', but when i am checking this class, this class has this
> member function, could you please tell me, why i am getting this example?
>
>
> Looking forward your reply.
> rahul indoria
>
>
>
>
>
>
>
--
Shawn Waldon
Graduate Student
Department of Computer Science
University of North Carolina at Chapel Hill
swaldon at cs.unc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130704/42a9508f/attachment.htm>
More information about the vtkusers
mailing list