]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Filters/Event.h
...
[FrontAlgorithms.git] / lib / fpa / Filters / Event.h
diff --git a/lib/fpa/Filters/Event.h b/lib/fpa/Filters/Event.h
new file mode 100644 (file)
index 0000000..ee81d7c
--- /dev/null
@@ -0,0 +1,52 @@
+// =========================================================================
+// @author Leonardo Florez Valencia
+// @email florez-l@javeriana.edu.co
+// =========================================================================
+#ifndef __fpa__Filters__Event__h__
+#define __fpa__Filters__Event__h__
+
+#include <itkEventObject.h>
+
+namespace fpa
+{
+  namespace Filters
+  {
+    /**
+     */
+    template< class _TVertex >
+    class Event
+      : public itk::EventObject
+    {
+    public:
+      typedef Event            Self;
+      typedef itk::EventObject Superclass;
+      typedef _TVertex         TVertex;
+
+    public:
+      Event( );
+      Event( const TVertex& v, unsigned long fid, bool intoq );
+      virtual ~Event( );
+      virtual const char* GetEventName( ) const override;
+      virtual bool CheckEvent( const itk::EventObject* e ) const override;
+      virtual itk::EventObject* MakeObject( ) const override;
+
+    private:
+      // Purposely not implemented.
+      Self& operator=( const Self& other );
+
+    public:
+      TVertex       Vertex;
+      unsigned long FrontId;
+      bool          IntoQueue;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#ifndef ITK_MANUAL_INSTANTIATION
+#  include <fpa/Filters/Event.hxx>
+#endif // ITK_MANUAL_INSTANTIATION
+#endif // __fpa__Filters__Event__h__
+
+// eof - $RCSfile$