]> Creatis software - bbtk.git/blobdiff - packages/itkvtk/src/bbitkvtkvtkImageData2itkImage.h
*** empty log message ***
[bbtk.git] / packages / itkvtk / src / bbitkvtkvtkImageData2itkImage.h
index 94fc7ce289513e02de63e4baa534ac82dcb4e076..1ee762bd9c7ab7d3336d2f59985688ed82a647e3 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbitkvtkvtkImageData2itkImage.h,v $
   Language:  C++
-  Date:      $Date: 2008/04/08 06:59:31 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/07/23 12:02:15 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -14,7 +14,7 @@
      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
-=========================================================================*//**
+=========================================================================*/
 /**
  * \file 
  * \brief class vtkImageData2itkImage : Converts a vtkImageData to a generic itkImage
@@ -32,6 +32,7 @@
 #include "bbtkAtomicBlackBox.h"
 #include "bbitkImage.h"
 #include "vtkImageData.h"
+#include "itkProcessObject.h"
 
 namespace bbitkvtk
 {
@@ -39,17 +40,22 @@ namespace bbitkvtk
   class /*BBTK_EXPORT*/ vtkImageData2itkImage : public bbtk::AtomicBlackBox  
   {
     
-    BBTK_USER_BLACK_BOX_INTERFACE(vtkImageData2itkImage,
-                                 bbtk::AtomicBlackBox);
+    BBTK_BLACK_BOX_INTERFACE(vtkImageData2itkImage,
+                            bbtk::AtomicBlackBox);
 
     BBTK_DECLARE_INPUT(In,vtkImageData*);
     BBTK_DECLARE_OUTPUT(Out,bbitk::anyImagePointer);
     BBTK_PROCESS(Convert);
     void Convert();
+    void bbUserConstructor();
+    void bbUserCopyConstructor();
+    void bbUserDestructor();
 
   private:
-    // Convert method template on type of the itk image to be created
+    // Convert method template on type of the itk image to be created
     template<class T, unsigned int D> void Convert();
+    // stores the pointer on the template itk::VTKImageToImageFilter 
+    itk::ProcessObject::Pointer mConverter;
   };