X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkFilterBase.h;h=1019b7b76aa49f9b28e8796151a2e60c7c89672b;hb=08f7de414957e92b25ca5b299007e941b610d3a8;hp=29caaf08d94fccb6fbe5d6c46410f7c6fb231d9c;hpb=243b931a3f9d65c94e076d22a0395b894ef3f660;p=clitk.git diff --git a/common/clitkFilterBase.h b/common/clitkFilterBase.h index 29caaf0..1019b7b 100644 --- a/common/clitkFilterBase.h +++ b/common/clitkFilterBase.h @@ -31,7 +31,7 @@ namespace clitk { //-------------------------------------------------------------------- /* - Convenient class to manage options from GGO (gengetopt) to filter + Convenient class to manage frequent options */ //-------------------------------------------------------------------- class FilterBase @@ -42,7 +42,10 @@ namespace clitk { typedef FilterBase Self; // Run-time type information (and related methods) - itkTypeMacro(FilterBase, Object); + virtual const char *GetNameOfClass() const + { + return "FilterBase"; + } // Needed by itkSetMacro (cannot inherit from itkObject because of // multiple inheritance) @@ -118,7 +121,7 @@ namespace clitk { protected: FilterBase(); virtual ~FilterBase() {} - void StartNewStep(std::string s); + void StartNewStep(std::string s, bool endl=true); template void StopCurrentStep(typename TInternalImageType::Pointer p, std::string txt=""); void StopCurrentStep();