[vtkusers] from 4.0 version to CVS version

Bruno Travençolo bant at grad.icmc.usp.br
Mon Mar 10 19:31:07 EST 2003


Hello all!

>    error C2664: 'SetInput' : cannot convert parameter 1 from 'class
>vtkImageData *' to 'class vtkDataSet *' .
>But vtkImageData inherits from vtkDataSet. How can it be possible?
>  
>
You have to do a type cast to corret this. Ex:.         
iso->SetInput((vtkDataSet *) vol);
where vol is an object from StructuredPoint class.

I also would like to know why we have to do that , like you said, 
vtkImageData inherits from vtkDataSet

>May someone help me?
>
>Gwenael
>
>
>_______________________________________________
>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