]> Creatis software - clitk.git/blobdiff - common/clitkImageToImageGenericFilterBase.h
reads from a config file and performs the registration
[clitk.git] / common / clitkImageToImageGenericFilterBase.h
index 4b27950d4f406b8e5652d173b679c18ac77d636b..262d6fc82f85e3d53159ce316dfaccc3f4ee9384 100644 (file)
@@ -92,6 +92,12 @@ namespace clitk {
 
     // Get the associated filter
     FilterBase * GetFilterBase() { return m_FilterBase; }
+    
+    // Indicate that the filter must stop as soon as possible (if threaded)
+    void MustStop();
+    itkSetMacro(StopOnError, bool);
+    itkGetConstMacro(StopOnError, bool);
+    itkBooleanMacro(StopOnError);    
 
   protected:  
     bool m_ReadOnDisk;
@@ -122,6 +128,7 @@ namespace clitk {
     std::string m_LastError;
     void SetFilterBase(FilterBase * f) { m_FilterBase = f; }
     FilterBase * m_FilterBase;
+    bool m_StopOnError;
 
   }; // end class clitk::ImageToImageGenericFilter