+
+//--------------------------------------------------------------------
+void clitk::FilterBase::Cancel()
+{
+ m_IsCancelled = true;
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+bool clitk::FilterBase::Cancelled()
+{
+ return m_IsCancelled;
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+void clitk::FilterBase::StartSubStep() {
+ m_SubstepNumbers.push_back(GetCurrentStepNumber());
+ m_SubstepID.push_back(GetCurrentStepId());
+ SetCurrentStepBaseId(GetCurrentStepId());
+ SetCurrentStepNumber(0);;
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+void clitk::FilterBase::StopSubStep() {
+ int s = m_SubstepNumbers.back();
+ m_SubstepNumbers.pop_back();
+ SetCurrentStepNumber(s);
+ m_SubstepID.pop_back();
+ if (m_SubstepID.size() != 0) {
+ SetCurrentStepBaseId(m_SubstepID.back()); }
+ else SetCurrentStepBaseId("");
+}