/*========================================================================= * * Copyright NumFOCUS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0.txt * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *=========================================================================*/ #ifndef itkLevelSetEvolutionNumberOfIterationsStoppingCriterion_h #define itkLevelSetEvolutionNumberOfIterationsStoppingCriterion_h #include "itkObjectFactory.h" #include "itkLevelSetEvolutionStoppingCriterion.h" namespace itk { /** * \class LevelSetEvolutionStoppingCriterion \ingroup ITKLevelSetsv4 */ template class ITK_TEMPLATE_EXPORT LevelSetEvolutionNumberOfIterationsStoppingCriterion : public LevelSetEvolutionStoppingCriterion { public: ITK_DISALLOW_COPY_AND_MOVE(LevelSetEvolutionNumberOfIterationsStoppingCriterion); using Self = LevelSetEvolutionNumberOfIterationsStoppingCriterion; using Superclass = LevelSetEvolutionStoppingCriterion; using Pointer = SmartPointer; using ConstPointer = SmartPointer; /** Method for creation through object factory */ itkNewMacro(Self); /** \see LightObject::GetNameOfClass() */ itkOverrideGetNameOfClassMacro(LevelSetEvolutionNumberOfIterationsStoppingCriterion); using LevelSetContainerType = TLevelSetContainer; using LevelSetContainerPointer = typename LevelSetContainerType::Pointer; using LevelSetIdentifierType = typename LevelSetContainerType::LevelSetIdentifierType; using LevelSetType = typename LevelSetContainerType::LevelSetType; using LevelSetPointer = typename LevelSetContainerType::LevelSetPointer; using InputIndexType = typename LevelSetContainerType::InputIndexType; using OutputType = typename LevelSetContainerType::OutputType; using OutputRealType = typename LevelSetContainerType::OutputRealType; using GradientType = typename LevelSetContainerType::GradientType; using HessianType = typename LevelSetContainerType::HessianType; using HeavisideType = typename LevelSetContainerType::HeavisideType; using HeavisidePointer = typename LevelSetContainerType::HeavisideType; bool IsSatisfied() const override; std::string GetDescription() const override; protected: /** Constructor */ LevelSetEvolutionNumberOfIterationsStoppingCriterion() = default; /** Destructor */ ~LevelSetEvolutionNumberOfIterationsStoppingCriterion() override = default; }; } // namespace itk #ifndef ITK_MANUAL_INSTANTIATION # include "itkLevelSetEvolutionNumberOfIterationsStoppingCriterion.hxx" #endif #endif