]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Base/Event.h
dc4910dfc66c265fc776bfddfbee9d1994a955b0
[FrontAlgorithms.git] / lib / fpa / Base / Event.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5
6 #ifndef __fpa__Base__Event__h__
7 #define __fpa__Base__Event__h__
8
9 #include <itkEventObject.h>
10
11 namespace fpa
12 {
13   namespace Base
14   {
15     /**
16      */
17     template< class _TVertex >
18     class Event
19       : public itk::EventObject
20     {
21     public:
22       typedef Event            Self;
23       typedef itk::EventObject Superclass;
24       typedef _TVertex         TVertex;
25
26     public:
27       Event( );
28       Event( const TVertex& v, unsigned long fid, bool intoq );
29       virtual ~Event( );
30       virtual const char* GetEventName( ) const override;
31       virtual bool CheckEvent( const itk::EventObject* e ) const override;
32       virtual itk::EventObject* MakeObject( ) const override;
33
34     private:
35       // Purposely not implemented.
36       Self& operator=( const Self& other );
37
38     public:
39       TVertex       Vertex;
40       unsigned long FrontId;
41       bool          IntoQueue;
42     };
43
44   } // ecapseman
45
46 } // ecapseman
47
48 #ifndef ITK_MANUAL_INSTANTIATION
49 #  include <fpa/Base/Event.hxx>
50 #endif // ITK_MANUAL_INSTANTIATION
51
52 #endif // __fpa__Base__Event__h__
53
54 // eof - $RCSfile$