// clitk
#include "clitkCommon.h"
+#include "clitkTimer.h"
#include "clitkFilterMacros.txx"
#include "clitkLabelizeParameters.h"
GGO_DefineOption_Flag(verboseWarningOff, SetVerboseWarningOff);
// Use this function to stop (when threaded)
- void MustStop();
+ void SetMustStop(bool b);
+ bool GetMustStop();
protected:
FilterBase();
std::string m_Warning;
bool m_VerboseWarningOff;
bool m_MustStop;
+ Timer m_CurrentStepTimer;
private:
FilterBase(const Self&); //purposely not implemented
} // end namespace clitk
//--------------------------------------------------------------------
+#define StartNewStepOrStop(s) StartNewStep(s); if (GetMustStop()) return;
+
#ifndef ITK_MANUAL_INSTANTIATION
#include "clitkFilterBase.txx"
#endif