]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Filters/SeedsInterface.h
...
[FrontAlgorithms.git] / lib / fpa / Filters / SeedsInterface.h
diff --git a/lib/fpa/Filters/SeedsInterface.h b/lib/fpa/Filters/SeedsInterface.h
new file mode 100644 (file)
index 0000000..ffcaf25
--- /dev/null
@@ -0,0 +1,55 @@
+// =========================================================================
+// @author Leonardo Florez Valencia
+// @email florez-l@javeriana.edu.co
+// =========================================================================
+#ifndef __fpa__Filters__SeedsInterface__h__
+#define __fpa__Filters__SeedsInterface__h__
+
+#include <itkDataObject.h>
+#include <itkProcessObject.h>
+#include <fpa/Config.h>
+
+namespace fpa
+{
+  namespace Filters
+  {
+    /**
+     */
+    template< class _TTraits >
+    class SeedsInterface
+    {
+    public:
+      typedef SeedsInterface Self;
+      typedef _TTraits       TTraits;
+      fpaInternalTraitsMacro( typename, TTraits );
+
+    public:
+      SeedsInterface( itk::ProcessObject* f );
+      virtual ~SeedsInterface( );
+
+      void AddSeed( const TPoint& s );
+      void AddSeed( const TVertex& s );
+      void ClearSeeds( );
+      unsigned long GetNumberOfSeeds( ) const;
+
+      const TNodes& GetSeeds( ) const;
+
+    protected:
+      virtual void _PrepareSeeds( const itk::DataObject* input );
+
+    protected:
+      TSeeds m_InputSeeds;
+      TNodes m_UnifiedSeeds;
+      itk::ProcessObject::Pointer m_Filter;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#ifndef ITK_MANUAL_INSTANTIATION
+#  include <fpa/Filters/SeedsInterface.hxx>
+#endif // ITK_MANUAL_INSTANTIATION
+
+#endif // __fpa__Filters__SeedsInterface__h__
+// eof - $RCSfile$