]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/Functors/RegionGrow/Tautology.h
...
[FrontAlgorithms.git] / lib / fpa / Base / Functors / RegionGrow / Tautology.h
index 744d618003e6635f259d3f1613d99acf7ec27339..a024b598f47e883330432844a6e97b609efca427 100644 (file)
@@ -1,7 +1,12 @@
+// =========================================================================
+// @author Leonardo Florez Valencia
+// @email florez-l@javeriana.edu.co
+// =========================================================================
+
 #ifndef __fpa__Base__Functors__RegionGrow__Tautology__h__
 #define __fpa__Base__Functors__RegionGrow__Tautology__h__
 
-#include <fpa/Base/Functors/RegionGrow/Base.h>
+#include <itkFunctionBase.h>
 
 namespace fpa
 {
@@ -13,26 +18,25 @@ namespace fpa
       {
         /**
          */
-        template< class _TVertex >
+        template< class _TValue >
         class Tautology
-          : public Base< _TVertex >
+          : public itk::FunctionBase< _TValue, bool >
         {
         public:
-          typedef Tautology                       Self;
-          typedef Base< _TVertex >                Superclass;
-          typedef itk::SmartPointer< Self >       Pointer;
-          typedef itk::SmartPointer< const Self > ConstPointer;
-
-          typedef typename Superclass::TVertex TVertex;
+          typedef Tautology                          Self;
+          typedef itk::FunctionBase< _TValue, bool > Superclass;
+          typedef itk::SmartPointer< Self >          Pointer;
+          typedef itk::SmartPointer< const Self >    ConstPointer;
 
         public:
           itkNewMacro( Self );
-          itkTypeMacro( Tautology, Base );
+          itkTypeMacro(
+            fpa::Base::Functors::RegionGrow::Tautology,
+            itk::FunctionBase
+            );
 
         public:
-          virtual bool Evaluate(
-            const TVertex& a, const TVertex& b
-            ) const override
+          virtual bool Evaluate( const _TValue& input ) const override
             {
               return( true );
             }
@@ -40,12 +44,14 @@ namespace fpa
         protected:
           Tautology( )
             : Superclass( )
-            { }
+            {
+            }
           virtual ~Tautology( )
-            { }
+            {
+            }
 
         private:
-          // Purposely not defined
+          // Purposely not implemented
           Tautology( const Self& other );
           Self& operator=( const Self& other );
         };