]> Creatis software - FrontAlgorithms.git/blob - libs/fpa/Base/Functors/VertexParentBase.h
...
[FrontAlgorithms.git] / libs / fpa / Base / Functors / VertexParentBase.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5
6 #ifndef __fpa__Base__Functors__VertexParentBase__h__
7 #define __fpa__Base__Functors__VertexParentBase__h__
8
9 #include <itkObject.h>
10 #include <itkObjectFactory.h>
11
12 namespace fpa
13 {
14   namespace Base
15   {
16     namespace Functors
17     {
18       /**
19        */
20       template< class _TVertex, class _TOutputValue >
21       class VertexParentBase
22         : public itk::Object
23       {
24       public:
25         typedef VertexParentBase                Self;
26         typedef itk::Object                     Superclass;
27         typedef itk::SmartPointer< Self >       Pointer;
28         typedef itk::SmartPointer< const Self > ConstPointer;
29
30         typedef _TVertex      TVertex;
31         typedef _TOutputValue TOutputValue;
32
33       public:
34         itkTypeMacro( VertexParentBase, TFilter );
35
36       public:
37         virtual TOutputValue Evaluate( const TVertex& v, const TVertex& p ) const = 0;
38
39       protected:
40         VertexParentBase( )
41           : Superclass( )
42           { }
43         virtual ~VertexParentBase( ) { }
44
45       private:
46         VertexParentBase( const Self& other );
47         Self& operator=( const Self& other );
48       };
49
50     } // ecapseman
51
52   } // ecapseman
53
54 } // ecapseman
55
56 #endif // __fpa__Base__Functors__VertexParentBase__h__
57
58 // eof - $RCSfile$