]> Creatis software - clitk.git/blobdiff - common/clitkImageToImageGenericFilterBase.cxx
Changed headers
[clitk.git] / common / clitkImageToImageGenericFilterBase.cxx
index a685f6df4da4add370d13c39b5330255a460e248..259ae04223cd1369dd69ea9d54f159d3a44492a6 100644 (file)
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
 ======================================================================-====*/
+
+// clitk
 #include "clitkImageToImageGenericFilterBase.h"
+
+// itk
 #include <itkImage.h>
 
 //--------------------------------------------------------------------
@@ -31,6 +35,8 @@ clitk::ImageToImageGenericFilterBase::ImageToImageGenericFilterBase(std::string
   m_FailOnImageTypeError = true;
   m_ReadOnDisk = true;
   m_LastError = "";
+  StopOnErrorOn();
+  SetFilterBase(NULL);
 }
 //--------------------------------------------------------------------
 
@@ -303,4 +309,26 @@ typename ImageType::Pointer clitk::ImageToImageGenericFilterBase::GetInput(unsig
 //--------------------------------------------------------------------
 
 
+//--------------------------------------------------------------------
+void clitk::ImageToImageGenericFilterBase::MustStop()
+{
+  if (m_FilterBase != NULL) {
+    m_FilterBase->SetMustStop(true);
+  }
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+void clitk::ImageToImageGenericFilterBase::DeleteLastOutputImage()
+{
+  if (m_OutputVVImages.size()>1) {
+   m_OutputVVImages.pop_back();
+  }
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+