1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
6 #ifndef __fpa__Base__SeedsInterface__hxx__
7 #define __fpa__Base__SeedsInterface__hxx__
9 // -------------------------------------------------------------------------
10 template< class _TTraits >
11 typename fpa::Base::SeedsInterface< _TTraits >::
12 TSeeds& fpa::Base::SeedsInterface< _TTraits >::
15 return( this->m_Seeds );
18 // -------------------------------------------------------------------------
19 template< class _TTraits >
20 const typename fpa::Base::SeedsInterface< _TTraits >::
21 TSeeds& fpa::Base::SeedsInterface< _TTraits >::
24 return( this->m_Seeds );
27 // -------------------------------------------------------------------------
28 template< class _TTraits >
29 void fpa::Base::SeedsInterface< _TTraits >::
30 AddSeed( const TVertex& seed )
35 this->m_Seeds.push_back( s );
36 if( this->m_Filter != NULL )
37 this->m_Filter->Modified( );
40 // -------------------------------------------------------------------------
41 template< class _TTraits >
42 void fpa::Base::SeedsInterface< _TTraits >::
43 AddSeed( const TPoint& seed )
48 this->m_Seeds.push_back( s );
49 if( this->m_Filter != NULL )
50 this->m_Filter->Modified( );
53 // -------------------------------------------------------------------------
54 template< class _TTraits >
55 void fpa::Base::SeedsInterface< _TTraits >::
58 if( this->m_Seeds.size( ) > 0 )
60 this->m_Seeds.clear( );
61 if( this->m_Filter != NULL )
62 this->m_Filter->Modified( );
67 // -------------------------------------------------------------------------
68 template< class _TTraits >
69 fpa::Base::SeedsInterface< _TTraits >::
70 SeedsInterface( itk::ProcessObject* filter )
75 // -------------------------------------------------------------------------
76 template< class _TTraits >
77 fpa::Base::SeedsInterface< _TTraits >::
80 this->m_Seeds.clear( );
83 #endif // __fpa__Base__SeedsInterface__hxx__