]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/Algorithm.hxx
...
[FrontAlgorithms.git] / lib / fpa / Base / Algorithm.hxx
index df7133661849ac07a07e034a18e45bbaf94be743..c29ff03e174791bea40b5155fab7e55f2526db72 100644 (file)
@@ -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$