1 #ifndef __fpa__Base__RegionGrow__h__
2 #define __fpa__Base__RegionGrow__h__
5 #include <fpa/Base/QueueAlgorithm.h>
6 #include <fpa/Base/Functors/RegionGrow/Base.h>
14 template< class _TSuperclass >
16 : public fpa::Base::QueueAlgorithm< _TSuperclass >
19 typedef RegionGrow Self;
20 typedef fpa::Base::QueueAlgorithm< _TSuperclass > Superclass;
21 typedef itk::SmartPointer< Self > Pointer;
22 typedef itk::SmartPointer< const Self > ConstPointer;
24 typedef typename Superclass::TOutput TOutput;
25 typedef typename Superclass::TVertex TVertex;
26 typedef fpa::Base::Functors::RegionGrow::Base< TVertex, TOutput > TGrowFunction;
29 typedef typename Superclass::_TQueueNode _TQueueNode;
32 itkTypeMacro( RegionGrow, Algorithm );
35 TGrowFunction* GetGrowFunction( );
36 const TGrowFunction* GetGrowFunction( ) const;
37 TOutput GetInsideValue( ) const;
38 TOutput GetOutsideValue( ) const;
40 void SetGrowFunction( TGrowFunction* f );
41 void SetInsideValue( const TOutput& v );
42 void SetOutsideValue( const TOutput& v );
46 virtual ~RegionGrow( );
48 virtual bool _UpdateValue(
49 _TQueueNode& v, const _TQueueNode& p
51 virtual TOutput _GetInputValue(
52 const TVertex& v, const TVertex& p
54 virtual bool _UpdateResult( _TQueueNode& n ) override;
58 // Purposely not defined
59 RegionGrow( const Self& other );
60 Self& operator=( const Self& other );
63 typename TGrowFunction::Pointer m_GrowFunction;
70 #ifndef ITK_MANUAL_INSTANTIATION
71 # include <fpa/Base/RegionGrow.hxx>
72 #endif // ITK_MANUAL_INSTANTIATION
74 #endif // __fpa__Base__RegionGrow__h__