X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkImageToImageGenericFilterBase.h;h=2cd6e702df26d4591c833bcc0d2490f5d4f11694;hb=97e94d6d86e558d1d377486bf2db1549c06f4fd1;hp=262d6fc82f85e3d53159ce316dfaccc3f4ee9384;hpb=868922dc773690f1be8f21159f10fc4702e5c09f;p=clitk.git diff --git a/common/clitkImageToImageGenericFilterBase.h b/common/clitkImageToImageGenericFilterBase.h index 262d6fc..2cd6e70 100644 --- a/common/clitkImageToImageGenericFilterBase.h +++ b/common/clitkImageToImageGenericFilterBase.h @@ -20,7 +20,6 @@ #define CLITKIMAGETOIMAGEGENERICFILTERBASE_H // clitk -#include "clitkCommon.h" #include "clitkImageCommon.h" #include "clitkCommonGenericFilter.h" #include "clitkFilterBase.h" @@ -53,11 +52,6 @@ namespace clitk { const std::string & GetFilterName(); void SetFilterName(std::string & n); - // Error management - itkSetMacro(LastError, std::string); - itkGetConstMacro(LastError, std::string); - bool HasError() { return (GetLastError() != ""); } - // Generic IO /// Returns the dimension and pixel type of the *first* input void GetInputImageDimensionAndPixelType(unsigned int& dim, std::string& pixeltype, @@ -67,8 +61,9 @@ namespace clitk { void AddInputFilename(const std::string & filename); void SetInputFilenames(const std::vector & filenames); void EnableReadOnDisk(bool b); + void EnableWriteOnDisk(bool b); void SetOutputFilename(const std::string & filename); - void AddOutputFilename(const std::string & filename); + void AddOutputFilename(const std::string filename); void SetOutputFilenames(const std::vector & filenames); std::string GetOutputFilename(); void SetIOVerbose(bool b); @@ -94,13 +89,11 @@ namespace clitk { 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); + void DeleteLastOutputImage(); protected: bool m_ReadOnDisk; + bool m_WriteOnDisk; /// Call this function to dispatch an output towards the correct sink template void SetNextOutput(typename ImageType::Pointer output); @@ -111,7 +104,7 @@ namespace clitk { std::vector m_InputFilenames; std::list m_OutputFilenames; - + bool m_IOVerbose; unsigned int m_Dim; std::string m_PixelTypeName; @@ -125,10 +118,10 @@ namespace clitk { void SetImageTypeError(); bool m_FailOnImageTypeError; - std::string m_LastError; + // std::string m_LastError; void SetFilterBase(FilterBase * f) { m_FilterBase = f; } FilterBase * m_FilterBase; - bool m_StopOnError; + // bool m_StopOnError; }; // end class clitk::ImageToImageGenericFilter