#ifndef __fpa__Base__RegionGrow__h__ #define __fpa__Base__RegionGrow__h__ #include #include #include namespace fpa { namespace Base { /** */ template< class _TSuperclass > class RegionGrow : public _TSuperclass { public: typedef RegionGrow Self; typedef _TSuperclass Superclass; typedef itk::SmartPointer< Self > Pointer; typedef itk::SmartPointer< const Self > ConstPointer; typedef typename Superclass::TOutput TOutput; typedef typename Superclass::TVertex TVertex; typedef fpa::Base::Functors::RegionGrow::Base< TVertex > TGrowFunction; protected: typedef typename Superclass::_TQueueNode _TQueueNode; typedef std::queue< _TQueueNode > _TQueue; public: itkTypeMacro( RegionGrow, Algorithm ); itkGetObjectMacro( GrowFunction, TGrowFunction ); itkGetConstMacro( InsideValue, TOutput ); itkGetConstMacro( OutsideValue, TOutput ); itkSetObjectMacro( GrowFunction, TGrowFunction ); itkSetMacro( InsideValue, TOutput ); itkSetMacro( OutsideValue, TOutput ); protected: RegionGrow( ); virtual ~RegionGrow( ); virtual bool _UpdateValue( _TQueueNode& v, const _TQueueNode& p ) override; virtual unsigned long _QueueSize( ) const override; virtual void _QueueClear( ) override; virtual void _QueuePush( const _TQueueNode& node ) override; virtual _TQueueNode _QueuePop( ) override; private: // Purposely not defined RegionGrow( const Self& other ); Self& operator=( const Self& other ); protected: TOutput m_InsideValue; TOutput m_OutsideValue; _TQueue m_Queue; typename TGrowFunction::Pointer m_GrowFunction; }; } // ecapseman } // ecapseman #ifndef ITK_MANUAL_INSTANTIATION # include #endif // ITK_MANUAL_INSTANTIATION #endif // __fpa__Base__RegionGrow__h__ // eof - $RCSfile$