]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/Functors/VertexParentBase.h
...
[FrontAlgorithms.git] / lib / fpa / Image / Functors / VertexParentBase.h
diff --git a/lib/fpa/Image/Functors/VertexParentBase.h b/lib/fpa/Image/Functors/VertexParentBase.h
new file mode 100644 (file)
index 0000000..20b76e0
--- /dev/null
@@ -0,0 +1,63 @@
+// =========================================================================
+// @author Leonardo Florez Valencia
+// @email florez-l@javeriana.edu.co
+// =========================================================================
+
+#ifndef __fpa__Image__Functors__VertexParentBase__h__
+#define __fpa__Image__Functors__VertexParentBase__h__
+
+#include <fpa/Base/Functors/VertexParentBase.h>
+
+namespace fpa
+{
+  namespace Image
+  {
+    namespace Functors
+    {
+      /**
+       */
+      template< class _TInputImage, class _TOutputValue >
+      class VertexParentBase
+        : public fpa::Base::Functors::VertexParentBase< typename _TInputImage::IndexType, _TOutputValue >
+      {
+      public:
+        typedef _TInputImage                    TInputImage;
+        typedef _TOutputValue                   TOutputValue;
+        typedef typename TInputImage::IndexType TVertex;
+        typedef VertexParentBase                Self;
+        typedef itk::SmartPointer< Self >       Pointer;
+        typedef itk::SmartPointer< const Self > ConstPointer;
+        typedef fpa::Base::Functors::VertexParentBase< TVertex, TOutputValue > Superclass;
+
+      public:
+        itkTypeMacro(
+          fpa::Image::Functors::VertexParentBase,
+          fpa::Base::Functors::VertexParentBase
+          );
+
+        itkGetConstObjectMacro( Image, TInputImage );
+        itkSetConstObjectMacro( Image, TInputImage );
+
+      protected:
+        VertexParentBase( )
+          : Superclass( )
+          { }
+        virtual ~VertexParentBase( ) { }
+
+      private:
+        VertexParentBase( const Self& other );
+        Self& operator=( const Self& other );
+
+      protected:
+        typename TInputImage::ConstPointer m_Image;
+      };
+
+    } // ecapseman
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __fpa__Image__Functors__VertexParentBase__h__
+
+// eof - $RCSfile$