]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Base/Event.hxx
309bc814406fb6dda60be2a227be4c6f9772fbad
[FrontAlgorithms.git] / lib / fpa / Base / Event.hxx
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5
6 #ifndef __fpa__Base__Event__hxx__
7 #define __fpa__Base__Event__hxx__
8
9 // -------------------------------------------------------------------------
10 template< class _TVertex >
11 fpa::Base::Event< _TVertex >::
12 Event( )
13   : Superclass( )
14 {
15 }
16
17 // -------------------------------------------------------------------------
18 template< class _TVertex >
19 fpa::Base::Event< _TVertex >::
20 Event( const TVertex& v, unsigned long fid, bool intoq )
21   : Superclass( ),
22     Vertex( v ),
23     FrontId( fid ),
24     IntoQueue( intoq )
25 {
26 }
27
28 // -------------------------------------------------------------------------
29 template< class _TVertex >
30 fpa::Base::Event< _TVertex >::
31 ~Event( )
32 {
33 }
34
35 // -------------------------------------------------------------------------
36 template< class _TVertex >
37 const char* fpa::Base::Event< _TVertex >::
38 GetEventName( ) const
39 {
40   return( "fpa::Base::Event< _TVertex >" );
41 }
42
43 // -------------------------------------------------------------------------
44 template< class _TVertex >
45 bool fpa::Base::Event< _TVertex >::
46 CheckEvent( const itk::EventObject* e ) const
47 {
48   return( dynamic_cast< const Self* >( e ) != NULL );
49 }
50
51 // -------------------------------------------------------------------------
52 template< class _TVertex >
53 itk::EventObject* fpa::Base::Event< _TVertex >::
54 MakeObject( ) const
55 {
56   return( new Self );
57 }
58
59 #endif // __fpa__Base__Event__hxx__
60
61 // eof - $RCSfile$