[vtkusers] vtkDataObject vs. vtkPointSet

David Lee Lambert lamber45 at cse.msu.edu
Tue Nov 29 16:27:01 EST 2005


On Tuesday 22 November 2005 04:28 pm, Mathieu Malaterre wrote:
> > demo2.cpp: In function ‘int main(int, char**)’:
> > demo2.cpp:73: error: invalid conversion from ‘vtkDataObject*’ to
> > ‘vtkPointSet*’
> >
> > What might I doing wrong?
>
> When all else fail, read the instructions:
...
> 
http://www.vtk.org/Wiki/VTK_FAQ#The_C.2B.2B_compiler_cannot_convert_some_pointer_type_to_another_pointer_type_in_my_little_program 

I head read that,  but I don't see how that could be the problem.  The 
offending line of my code is:

   vtkPointSet *point_set = vtkPointSet::New();

The version of vtk I'm using is 4.4.2,  and I noticed that vtkPointSet has no 
New() member function,  unless I misunderstand  the macros used in the 
headers;  could the problem be that New() is being inappropriately inherited 
from the superclass?

--
DLL

GPG key at http://www.cse.msu.edu/~lamber45/pgp-key.txt



More information about the vtkusers mailing list