X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FSingleSeedInterface.hxx;fp=lib%2Ffpa%2FBase%2FSingleSeedInterface.hxx;h=0000000000000000000000000000000000000000;hb=3c639e5da479c7216a0a302ffa156ac6762caeed;hp=c669618552e7b66eaaec344aac06f2cda44d5e52;hpb=5bf766068f54d061d3816f4950a076c3cf3a4d8b;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/SingleSeedInterface.hxx b/lib/fpa/Base/SingleSeedInterface.hxx deleted file mode 100644 index c669618..0000000 --- a/lib/fpa/Base/SingleSeedInterface.hxx +++ /dev/null @@ -1,78 +0,0 @@ -// ========================================================================= -// @author Leonardo Florez Valencia -// @email florez-l@javeriana.edu.co -// ========================================================================= - -#ifndef __fpa__Base__SingleSeedInterface__hxx__ -#define __fpa__Base__SingleSeedInterface__hxx__ - -// ------------------------------------------------------------------------- -template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare > -typename -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: -TSeeds& -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: -GetSeeds( ) -{ - return( this->m_Seeds ); -} - -// ------------------------------------------------------------------------- -template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare > -const typename -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: -TSeeds& -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: -GetSeeds( ) const -{ - return( this->m_Seeds ); -} - -// ------------------------------------------------------------------------- -template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare > -void -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: -SetSeed( const TVertex& seed ) -{ - TSeed s; - s.Vertex = seed; - s.IsPoint = false; - this->m_Seeds[ 0 ] = s; - if( this->m_Filter != NULL ) - this->m_Filter->Modified( ); -} - -// ------------------------------------------------------------------------- -template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare > -void -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: -SetSeed( const TPoint& seed ) -{ - TSeed s; - s.Point = seed; - s.IsPoint = true; - this->m_Seeds[ 0 ] = s; - if( this->m_Filter != NULL ) - this->m_Filter->Modified( ); -} - -// ------------------------------------------------------------------------- -template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare > -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: -SingleSeedInterface( itk::ProcessObject* filter ) - : m_Filter( filter ) -{ - this->m_Seeds = TSeeds( 1 ); -} - -// ------------------------------------------------------------------------- -template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare > -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: -~SingleSeedInterface( ) -{ - this->m_Seeds.clear( ); -} - -#endif // __fpa__Base__SingleSeedInterface__hxx__ - -// eof - $RCSfile$