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 >::
24 SetSeed( const TVertex& seed )
29 this->m_Seeds[ 0 ] = s;
30 if( this->m_Filter != NULL )
31 this->m_Filter->Modified( );
34 // -------------------------------------------------------------------------
35 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
37 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
38 SetSeed( const TPoint& seed )
43 this->m_Seeds[ 0 ] = s;
44 if( this->m_Filter != NULL )
45 this->m_Filter->Modified( );
48 // -------------------------------------------------------------------------
49 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
50 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
51 SingleSeedInterface( itk::ProcessObject* filter )
54 this->m_Seeds = TSeeds( 1 );
57 // -------------------------------------------------------------------------
58 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
59 fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
60 ~SingleSeedInterface( )
62 this->m_Seeds.clear( );
65 #endif // __fpa__Base__SingleSeedInterface__hxx__