+// =========================================================================
+// @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
{
{
/**
*/
- template< class _TVertex, class _TOutput >
+ template< class _TValue >
class Tautology
- : public Base< _TVertex, _TOutput >
+ : public itk::FunctionBase< _TValue, bool >
{
public:
- typedef Tautology Self;
- 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;
+ 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 TOutput Evaluate( const TVertex& a, const TVertex& b ) const override
+ virtual bool Evaluate( const _TValue& input ) const override
{
- return( this->m_InsideValue );
+ return( true );
}
protected:
Tautology( )
: Superclass( )
- { }
+ {
+ }
virtual ~Tautology( )
- { }
+ {
+ }
private:
- // Purposely not defined
+ // Purposely not implemented
Tautology( const Self& other );
Self& operator=( const Self& other );
};