]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/Functors/RegionGrow/Tautology.h
...
[FrontAlgorithms.git] / lib / fpa / Base / Functors / RegionGrow / Tautology.h
index 744d618003e6635f259d3f1613d99acf7ec27339..11d016eccf149fb62792e760abdcc8d64364efe8 100644 (file)
@@ -13,16 +13,17 @@ namespace fpa
       {
         /**
          */
-        template< class _TVertex >
+        template< class _TVertex, class _TOutput >
         class Tautology
-          : public Base< _TVertex >
+          : public Base< _TVertex, _TOutput >
         {
         public:
           typedef Tautology                       Self;
-          typedef Base< _TVertex >                Superclass;
+          typedef Base< _TVertex, _TOutput >      Superclass;
           typedef itk::SmartPointer< Self >       Pointer;
           typedef itk::SmartPointer< const Self > ConstPointer;
 
+          typedef typename Superclass::TOutput TOutput;
           typedef typename Superclass::TVertex TVertex;
 
         public:
@@ -30,11 +31,9 @@ namespace fpa
           itkTypeMacro( Tautology, Base );
 
         public:
-          virtual bool Evaluate(
-            const TVertex& a, const TVertex& b
-            ) const override
+          virtual TOutput Evaluate( const TVertex& a, const TVertex& b ) const override
             {
-              return( true );
+              return( this->m_InsideValue );
             }
 
         protected: