]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/Event.hxx
...
[FrontAlgorithms.git] / lib / fpa / Base / Event.hxx
diff --git a/lib/fpa/Base/Event.hxx b/lib/fpa/Base/Event.hxx
new file mode 100644 (file)
index 0000000..309bc81
--- /dev/null
@@ -0,0 +1,61 @@
+// =========================================================================
+// @author Leonardo Florez Valencia
+// @email florez-l@javeriana.edu.co
+// =========================================================================
+
+#ifndef __fpa__Base__Event__hxx__
+#define __fpa__Base__Event__hxx__
+
+// -------------------------------------------------------------------------
+template< class _TVertex >
+fpa::Base::Event< _TVertex >::
+Event( )
+  : Superclass( )
+{
+}
+
+// -------------------------------------------------------------------------
+template< class _TVertex >
+fpa::Base::Event< _TVertex >::
+Event( const TVertex& v, unsigned long fid, bool intoq )
+  : Superclass( ),
+    Vertex( v ),
+    FrontId( fid ),
+    IntoQueue( intoq )
+{
+}
+
+// -------------------------------------------------------------------------
+template< class _TVertex >
+fpa::Base::Event< _TVertex >::
+~Event( )
+{
+}
+
+// -------------------------------------------------------------------------
+template< class _TVertex >
+const char* fpa::Base::Event< _TVertex >::
+GetEventName( ) const
+{
+  return( "fpa::Base::Event< _TVertex >" );
+}
+
+// -------------------------------------------------------------------------
+template< class _TVertex >
+bool fpa::Base::Event< _TVertex >::
+CheckEvent( const itk::EventObject* e ) const
+{
+  return( dynamic_cast< const Self* >( e ) != NULL );
+}
+
+// -------------------------------------------------------------------------
+template< class _TVertex >
+itk::EventObject* fpa::Base::Event< _TVertex >::
+MakeObject( ) const
+{
+  return( new Self );
+}
+
+#endif // __fpa__Base__Event__hxx__
+
+// eof - $RCSfile$