Program: bbtk
Module: $RCSfile: bbitkvtkitkImage2vtkImageData.cxx,v $
Language: C++
- Date: $Date: 2009/05/18 10:45:46 $
- Version: $Revision: 1.9 $
+ 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
#include "bbitkvtkitkImage2vtkImageData.h"
#include "bbitkvtkPackage.h"
-// VtkToItkConnection
-//#include "itkVTKImageToImageFilter.h"
-// ItkToVtkConnection
#include "itkImageToVTKImageFilter.h"
BBTK_ADD_BLACK_BOX_TO_PACKAGE(itkvtk,itkImage2vtkImageData);
-
-
-
void itkImage2vtkImageData::Convert()
{
bbtk::TypeInfo t = bbGetInputIn().type();
BBTK_TEMPLATE_ITK_IMAGE_SWITCH(t,Convert);
}
-
-
template<class T>
void itkImage2vtkImageData::Convert()
<<">()"<<std::endl);
typedef T itkImageType;
- typedef itkImageType* itkImageTypePointer;
+ typedef itkImageType* itkImageTypePointer;
typedef itk::ImageToVTKImageFilter< itkImageType > ItkToVtkConnection;
typename ItkToVtkConnection::Pointer conv;
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);
}
else
{
- bbtkDebugMessage("process",5," ["<<bbGetFullName()<<"] : Nothing changed"<<std::endl);
-
+ bbtkDebugMessage("process",5," ["<<bbGetFullName()<<"] : Nothing changed"<<std::endl);
}
}
try
bbtkDebugMessage("process",5,"<== ["<<bbGetFullName()<<"] : Convert<"
<<bbtk::TypeName<T>()
<<">() *DONE*"<<std::endl);
-
-
}
void itkImage2vtkImageData::bbUserSetDefaultValues()
}
void itkImage2vtkImageData::bbUserInitializeProcessing()
- {
- }
-
- void itkImage2vtkImageData::bbUserFinalizeProcessing()
- {
- }
+ {
+ }
+
+ void itkImage2vtkImageData::bbUserFinalizeProcessing()
+ {
+ }
+
-
}
// eo namespace bbitkvtk