]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Filters/BaseMarksInterface.h
...
[FrontAlgorithms.git] / lib / fpa / Filters / BaseMarksInterface.h
diff --git a/lib/fpa/Filters/BaseMarksInterface.h b/lib/fpa/Filters/BaseMarksInterface.h
new file mode 100644 (file)
index 0000000..df6557d
--- /dev/null
@@ -0,0 +1,53 @@
+// =========================================================================
+// @author Leonardo Florez Valencia
+// @email florez-l@javeriana.edu.co
+// =========================================================================
+#ifndef __fpa__Filters__BaseMarksInterface__h__
+#define __fpa__Filters__BaseMarksInterface__h__
+
+#include <itkProcessObject.h>
+#include <fpa/Config.h>
+
+namespace fpa
+{
+  namespace Filters
+  {
+    /**
+     */
+    template< class _TTraits >
+    class BaseMarksInterface
+    {
+    public:
+      typedef BaseMarksInterface Self;
+      typedef _TTraits           TTraits;
+      fpaTraitsMacro( typename TTraits );
+
+    protected:
+      BaseMarksInterface( itk::ProcessObject* f )
+        : m_Filter( f )
+        {
+        }
+      virtual ~BaseMarksInterface( )
+        {
+        }
+
+      virtual unsigned long _GetMark( const TVertex& v ) const = 0;
+      virtual bool _Collisions( const TVertex& a, const TVertex& b )
+        {
+          return( false );
+        }
+      virtual void _InitCollisions( unsigned long nSeeds )
+        {
+          // Nothing to do at this level
+        }
+
+    protected:
+      itk::ProcessObject::Pointer m_Filter;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __fpa__Filters__BaseMarksInterface__h__
+// eof - $RCSfile$