ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkLevelSetEvolutionNumberOfIterationsStoppingCriterion.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 
00019 #ifndef __itkLevelSetEvolutionNumberOfIterationsStoppingCriterion_h
00020 #define __itkLevelSetEvolutionNumberOfIterationsStoppingCriterion_h
00021 
00022 #include "itkObjectFactory.h"
00023 #include "itkLevelSetEvolutionStoppingCriterionBase.h"
00024 
00025 namespace itk
00026 {
00030 template< class TLevelSetContainer >
00031 class LevelSetEvolutionNumberOfIterationsStoppingCriterion :
00032   public LevelSetEvolutionStoppingCriterionBase< TLevelSetContainer >
00033 {
00034 public:
00035   typedef LevelSetEvolutionNumberOfIterationsStoppingCriterion         Self;
00036   typedef LevelSetEvolutionStoppingCriterionBase< TLevelSetContainer > Superclass;
00037   typedef SmartPointer< Self >                                         Pointer;
00038   typedef SmartPointer< const Self >                                   ConstPointer;
00039 
00041   itkNewMacro( Self );
00042 
00044   itkTypeMacro( LevelSetEvolutionNumberOfIterationsStoppingCriterion,
00045                 LevelSetEvolutionStoppingCriterionBase );
00046 
00047   typedef TLevelSetContainer                               LevelSetContainerType;
00048   typedef typename LevelSetContainerType::Pointer          LevelSetContainerPointer;
00049 
00050   typedef typename LevelSetContainerType::LevelSetIdentifierType  LevelSetIdentifierType;
00051   typedef typename LevelSetContainerType::LevelSetType            LevelSetType;
00052   typedef typename LevelSetContainerType::LevelSetPointer         LevelSetPointer;
00053 
00054   typedef typename LevelSetContainerType::InputIndexType   InputIndexType;
00055   typedef typename LevelSetContainerType::OutputType       OutputType;
00056   typedef typename LevelSetContainerType::OutputRealType   OutputRealType;
00057   typedef typename LevelSetContainerType::GradientType     GradientType;
00058   typedef typename LevelSetContainerType::HessianType      HessianType;
00059 
00060   typedef typename LevelSetContainerType::HeavisideType    HeavisideType;
00061   typedef typename LevelSetContainerType::HeavisideType    HeavisidePointer;
00062 
00063   virtual bool IsSatisfied() const;
00064 
00065   virtual std::string GetDescription() const;
00066 
00067 protected:
00069   LevelSetEvolutionNumberOfIterationsStoppingCriterion();
00070 
00072   virtual ~LevelSetEvolutionNumberOfIterationsStoppingCriterion();
00073 
00074 private:
00075   LevelSetEvolutionNumberOfIterationsStoppingCriterion( const Self& ); // purposely not implemented
00076   void operator = ( const Self& ); // purposely not implemented
00077  };
00078  }
00079 #ifndef ITK_MANUAL_INSTANTIATION
00080 #include "itkLevelSetEvolutionNumberOfIterationsStoppingCriterion.hxx"
00081 #endif
00082 #endif
00083