]> Creatis software - bbtk.git/blobdiff - packages/itkvtk/src/bbitkvtkitkImage2vtkImageData.cxx
Add converters between std::vector of vtkImageData* and bbitk::anyImagePointer
[bbtk.git] / packages / itkvtk / src / bbitkvtkitkImage2vtkImageData.cxx
index 0a68db1f1c3aa071b7c337f1a43b7bc35e3b5051..2dd6a03951257d9c09521c370c09d78c19cd20ca 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbitkvtkitkImage2vtkImageData.cxx,v $
   Language:  C++
-  Date:      $Date: 2010/02/08 15:15:25 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2011/06/16 12:28:57 $
+  Version:   $Revision: 1.11 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 *  modify and redistribute granted by the license, users are provided only
 *  with a limited warranty  and the software's author,  the holder of the
 *  economic rights,  and the successive licensors  have only  limited
-*  liability. 
+*  liability.
 *
 *  The fact that you are presently reading this means that you have had
 *  knowledge of the CeCILL-B license and that you accept its terms.
-* ------------------------------------------------------------------------ */                                                                         
+* ------------------------------------------------------------------------ */
 
 /**
  *  \file 
@@ -37,9 +37,6 @@
 
 #include "bbitkvtkitkImage2vtkImageData.h"
 #include "bbitkvtkPackage.h"
-// VtkToItkConnection 
-//#include "itkVTKImageToImageFilter.h"
-// ItkToVtkConnection
 #include "itkImageToVTKImageFilter.h"
 
 
@@ -63,7 +60,7 @@ namespace bbitkvtk
                     <<">()"<<std::endl);
 
     typedef T itkImageType;
-       typedef itkImageType* itkImageTypePointer;
+    typedef itkImageType* itkImageTypePointer;
     typedef itk::ImageToVTKImageFilter< itkImageType > ItkToVtkConnection;
     typename ItkToVtkConnection::Pointer conv;
 
@@ -78,11 +75,11 @@ namespace bbitkvtk
     else 
       {
        bbtkDebugMessage("process",5,"    ["<<bbGetFullName()<<"] : Converter ok "<<std::endl);
-       
+
        // Input itkImageType type changed ? 
        // Have to change the converter and set its input
        conv = dynamic_cast<ItkToVtkConnection*>
-         ((itk::ProcessObject*)mConverter);
+                          ((itk::ProcessObject*)mConverter);
        if (!conv) 
          {
            bbtkDebugMessage("process",5,"    ["<<bbGetFullName()<<"] : Converter of wrong input type : reacreating it "<<std::endl);
@@ -132,14 +129,14 @@ namespace bbitkvtk
   }
 
   void itkImage2vtkImageData::bbUserInitializeProcessing()
-       {
-       }
-       
-  void itkImage2vtkImageData::bbUserFinalizeProcessing()       
-       {
-       }
+  {
+  }
+
+  void itkImage2vtkImageData::bbUserFinalizeProcessing()
+  {
+  }
+
 
-       
 }
 // eo namespace bbitkvtk