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 >::
25 fpa::Base::SeedsInterface< _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::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
35 AddSeed( const TVertex& seed )
40 this->m_Seeds.push_back( 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::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
49 AddSeed( const TPoint& seed )
54 this->m_Seeds.push_back( 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 >
62 fpa::Base::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
65 if( this->m_Seeds.size( ) > 0 )
67 this->m_Seeds.clear( );
68 if( this->m_Filter != NULL )
69 this->m_Filter->Modified( );
74 // -------------------------------------------------------------------------
75 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
76 fpa::Base::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
77 SeedsInterface( itk::ProcessObject* filter )
82 // -------------------------------------------------------------------------
83 template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
84 fpa::Base::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
87 this->m_Seeds.clear( );
90 #endif // __fpa__Base__SeedsInterface__hxx__