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