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 _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
12 fpa::Base::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
14 fpa::Base::SeedsInterface< _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::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
24 AddSeed( const TVertex& seed )
29 this->m_Seeds.push_back( 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::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
38 AddSeed( const TPoint& seed )
43 this->m_Seeds.push_back( 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 >
51 fpa::Base::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
54 if( this->m_Seeds.size( ) > 0 )
56 this->m_Seeds.clear( );
57 if( this->m_Filter != NULL )
58 this->m_Filter->Modified( );
63 // -------------------------------------------------------------------------
64 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
65 fpa::Base::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
66 SeedsInterface( itk::ProcessObject* filter )
71 // -------------------------------------------------------------------------
72 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
73 fpa::Base::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
76 this->m_Seeds.clear( );
79 #endif // __fpa__Base__SeedsInterface__hxx__