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=63cc629284b923acb1072e733b94128e2d238dc2;hb=c9542e420b94b0bfc1f285599f7816eab1191519;hp=c669618552e7b66eaaec344aac06f2cda44d5e52;hpb=5bf766068f54d061d3816f4950a076c3cf3a4d8b;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/SingleSeedInterface.hxx b/lib/fpa/Base/SingleSeedInterface.hxx index c669618..63cc629 100644 --- a/lib/fpa/Base/SingleSeedInterface.hxx +++ b/lib/fpa/Base/SingleSeedInterface.hxx @@ -7,31 +7,26 @@ #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 >:: +template< class _TTraits > +typename fpa::Base::SingleSeedInterface< _TTraits >:: +TSeeds& fpa::Base::SingleSeedInterface< _TTraits >:: 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 >:: +template< class _TTraits > +const typename fpa::Base::SingleSeedInterface< _TTraits >:: +TSeeds& fpa::Base::SingleSeedInterface< _TTraits >:: 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 >:: +template< class _TTraits > +void fpa::Base::SingleSeedInterface< _TTraits >:: SetSeed( const TVertex& seed ) { TSeed s; @@ -43,9 +38,8 @@ SetSeed( const TVertex& seed ) } // ------------------------------------------------------------------------- -template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare > -void -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: +template< class _TTraits > +void fpa::Base::SingleSeedInterface< _TTraits >:: SetSeed( const TPoint& seed ) { TSeed s; @@ -57,8 +51,8 @@ SetSeed( const TPoint& seed ) } // ------------------------------------------------------------------------- -template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare > -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: +template< class _TTraits > +fpa::Base::SingleSeedInterface< _TTraits >:: SingleSeedInterface( itk::ProcessObject* filter ) : m_Filter( filter ) { @@ -66,8 +60,8 @@ SingleSeedInterface( itk::ProcessObject* filter ) } // ------------------------------------------------------------------------- -template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare > -fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >:: +template< class _TTraits > +fpa::Base::SingleSeedInterface< _TTraits >:: ~SingleSeedInterface( ) { this->m_Seeds.clear( );