X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FAlgorithm.hxx;h=c29ff03e174791bea40b5155fab7e55f2526db72;hb=40fb0405cfef444001429f8ba49c407ce9168a94;hp=df7133661849ac07a07e034a18e45bbaf94be743;hpb=cf298be2de026712c5ab3487978e3a6954a809cd;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/Algorithm.hxx b/lib/fpa/Base/Algorithm.hxx index df71336..c29ff03 100644 --- a/lib/fpa/Base/Algorithm.hxx +++ b/lib/fpa/Base/Algorithm.hxx @@ -251,6 +251,19 @@ _UpdateCollisions( const TVertex& a, const TVertex& b ) } // fi } +// ------------------------------------------------------------------------- +template < class _TFilter, class _TVertex, class _TOutput > +_TOutput fpa::Base::Algorithm< _TFilter, _TVertex, _TOutput >:: +_GetInputValue( const _TQueueNode& v, const _TQueueNode& p ) +{ + _TOutput res = this->m_InitResult; + if( this->m_VertexFunction.IsNotNull( ) ) + res = this->m_VertexFunction->Evaluate( v.Vertex, p.Vertex ); + if( this->m_ConversionFunction.IsNotNull( ) ) + res = this->m_ConversionFunction->Evaluate( res ); + return( res ); +} + #endif // __fpa__Base__Algorithm__hxx__ // eof - $RCSfile$