[Insight-developers] a little confused with the point

chenting chenting at graphics.cis.upenn.edu
Wed Nov 15 16:52:13 EST 2000


I was working on creat a deformable mesh object, but I do not want to
simply inheriant it from mesh. So build my own class inwhich it include
a itk::Mesh object. then there is problem.
I include the object quite the same as we did in vtk. in the header
file, I have

typedef itk::Mesh<float>  Mesh;
...;
Mesh::Point myMesh;
...:

and in the cpp file, I have
itkDeformable::itkDeformable(){
...;
Mesh::Point myMesh(Mesh::New());
....;
}
...;
it is ok when I comple the class itself, when when I use the class in my
test application. it gives out error messages.
as follows:

-------------- next part --------------
d:\users\chenting\insight\insight\code\common\itkvectorcontainer.h(81) : error C2039: 'const_iterator' : is not a member of 'Vector'
        d:\users\chenting\insight\insight\code\common\itkvector.h(239) : see declaration of 'Vector'
        d:\users\chenting\insight\insight\code\common\itkmesh.h(144) : see reference to class template instantiation 'itk::VectorContainer<unsigned long,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long>
 > >' being compiled
        d:\users\chenting\insight\test1\itk_sqe_source.h(31) : see reference to class template instantiation 'itk::Mesh<float,class itk::MeshTypeDefault<float,3,3,float,float> >' being compiled
d:\users\chenting\insight\insight\code\common\itkvectorcontainer.h(79) : error C2955: 'Vector' : use of class template requires template argument list
        d:\users\chenting\insight\insight\code\common\itkvector.h(239) : see declaration of 'Vector'
        d:\users\chenting\insight\insight\code\common\itkmesh.h(145) : see reference to class template instantiation 'itk::VectorContainer<unsigned long,float>' being compiled
        d:\users\chenting\insight\test1\itk_sqe_source.h(31) : see reference to class template instantiation 'itk::Mesh<float,class itk::MeshTypeDefault<float,3,3,float,float> >' being compiled
d:\users\chenting\insight\insight\code\common\itkvectorcontainer.h(79) : error C2039: 'size_type' : is not a member of 'Vector'
        d:\users\chenting\insight\insight\code\common\itkvector.h(239) : see declaration of 'Vector'
        d:\users\chenting\insight\insight\code\common\itkmesh.h(145) : see reference to class template instantiation 'itk::VectorContainer<unsigned long,float>' being compiled
        d:\users\chenting\insight\test1\itk_sqe_source.h(31) : see reference to class template instantiation 'itk::Mesh<float,class itk::MeshTypeDefault<float,3,3,float,float> >' being compiled
d:\users\chenting\insight\insight\code\common\itkvectorcontainer.h(80) : error C2955: 'Vector' : use of class template requires template argument list


More information about the Insight-developers mailing list