[Insight-users] Problem with itk templates....
Sergio Andrés
seanru_nigu at yahoo . es
Fri, 5 Sep 2003 21:31:03 +0200 (CEST)
Hi all,
My problem is about itk templates...
How could I create a class that have a pointer to a itk::Mesh...??
I have create something like this:
-- myClass.h --------------------
template <unsigned int Dimension>
class myClass
{
...
typedef itk::Mesh<float, Dimension> MeshType;
MeshType::Pointer ptMesh;
}
---------------------------------
It exists also a file named myClass.txx, where class definitions are.
In this file, there is a line in the class contructor method:
this->ptMesh = MeshType::New();
(I am not sure if that is the rigth way to do it...)
** As I create a new itk::Mesh, in the constructor, I want to delete it in the
destructor method but I don't know how to do that, because an error occurs if
I use 'Delete()' with itk::Mesh.
Could anyone give me a solution ???
Thanks a lot.
Sergio.
___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger . yahoo . es