]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Functors/BaseVertexFunction.h
...
[FrontAlgorithms.git] / lib / fpa / Functors / BaseVertexFunction.h
index a29fc4d6025dc692f1d0f8198016f238ee24ddc4..814f42b9dab02bc56666b010d4b09cdb76d6e98d 100644 (file)
@@ -15,18 +15,18 @@ namespace fpa
     /**
      */
     template< class _TVertex >
-    class LightBaseVertexFunction
+    class BaseVertexFunction
       : public itk::Object
     {
     public:
       typedef _TVertex TVertex;
       typedef itk::Object                     Superclass;
-      typedef LightBaseVertexFunction         Self;
+      typedef BaseVertexFunction              Self;
       typedef itk::SmartPointer< Self >       Pointer;
       typedef itk::SmartPointer< const Self > ConstPointer;
 
     public:
-      itkTypeMacro( fpa::Functors::LightBaseVertexFunction, itk::Object );
+      itkTypeMacro( fpa::Functors::BaseVertexFunction, itk::Object );
 
       itkSetConstObjectMacro( DataObject, itk::DataObject );
 
@@ -42,66 +42,25 @@ namespace fpa
         }
 
     protected:
-      LightBaseVertexFunction( )
+      BaseVertexFunction( )
         : Superclass( ),
           m_DataObject( NULL )
         {
         }
 
-      virtual ~LightBaseVertexFunction( )
+      virtual ~BaseVertexFunction( )
         {
         }
 
     private:
       // Purposely not implemented.
-      LightBaseVertexFunction( const Self& other );
+      BaseVertexFunction( const Self& other );
       Self& operator=( const Self& other );
 
     protected:
       itk::DataObject::ConstPointer m_DataObject;
     };
 
-    /**
-     */
-    template< class _TVertex, class _TValue >
-    class BaseVertexFunction
-      : public LightBaseVertexFunction< _TVertex >
-    {
-    public:
-      typedef _TVertex TVertex;
-      typedef _TValue  TValue;
-      typedef LightBaseVertexFunction< _TVertex > Superclass;
-      typedef BaseVertexFunction                  Self;
-      typedef itk::SmartPointer< Self >           Pointer;
-      typedef itk::SmartPointer< const Self >     ConstPointer;
-
-    public:
-      itkTypeMacro(
-        fpa::Functors::RegionGrow::BaseVertexFunction,
-        fpa::Functors::RegionGrow::LightBaseVertexFunction
-        );
-
-    public:
-      virtual TValue Evaluate(
-        const TVertex& vertex, const TVertex& parent
-        ) const = 0;
-
-    protected:
-      BaseVertexFunction( )
-        : Superclass( )
-        {
-        }
-
-      virtual ~BaseVertexFunction( )
-        {
-        }
-
-    private:
-      // Purposely not implemented.
-      BaseVertexFunction( const Self& other );
-      Self& operator=( const Self& other );
-    };
-
   } // ecapseman
 
 } // ecapseman