X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkImageToImageGenericFilterBase.h;h=aa6190460139eca75b851030b2d3d22938b6de97;hb=a9bddd3844a7b1fed036cbe9de2e1cc00b92598f;hp=4b27950d4f406b8e5652d173b679c18ac77d636b;hpb=38786c4da19b87319bbe3cecc145e3d1771d10da;p=clitk.git diff --git a/common/clitkImageToImageGenericFilterBase.h b/common/clitkImageToImageGenericFilterBase.h index 4b27950..aa61904 100644 --- a/common/clitkImageToImageGenericFilterBase.h +++ b/common/clitkImageToImageGenericFilterBase.h @@ -92,6 +92,13 @@ 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(); + void DeleteLastOutputImage(); + itkSetMacro(StopOnError, bool); + itkGetConstMacro(StopOnError, bool); + itkBooleanMacro(StopOnError); protected: bool m_ReadOnDisk; @@ -122,6 +129,7 @@ namespace clitk { std::string m_LastError; void SetFilterBase(FilterBase * f) { m_FilterBase = f; } FilterBase * m_FilterBase; + bool m_StopOnError; }; // end class clitk::ImageToImageGenericFilter