1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
6 #ifndef __fpa__Base__SingleSeedInterface__hxx__
7 #define __fpa__Base__SingleSeedInterface__hxx__
9 // -------------------------------------------------------------------------
10 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
12 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
14 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
17 return( this->m_Seeds );
20 // -------------------------------------------------------------------------
21 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
23 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
25 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
28 return( this->m_Seeds );
31 // -------------------------------------------------------------------------
32 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
34 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
35 SetSeed( const TVertex& seed )
40 this->m_Seeds[ 0 ] = s;
41 if( this->m_Filter != NULL )
42 this->m_Filter->Modified( );
45 // -------------------------------------------------------------------------
46 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
48 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
49 SetSeed( const TPoint& seed )
54 this->m_Seeds[ 0 ] = s;
55 if( this->m_Filter != NULL )
56 this->m_Filter->Modified( );
59 // -------------------------------------------------------------------------
60 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
61 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
62 SingleSeedInterface( itk::ProcessObject* filter )
65 this->m_Seeds = TSeeds( 1 );
68 // -------------------------------------------------------------------------
69 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
70 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
71 ~SingleSeedInterface( )
73 this->m_Seeds.clear( );
76 #endif // __fpa__Base__SingleSeedInterface__hxx__