X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FEvent.h;fp=lib%2Ffpa%2FBase%2FEvent.h;h=dc4910dfc66c265fc776bfddfbee9d1994a955b0;hb=c9542e420b94b0bfc1f285599f7816eab1191519;hp=0000000000000000000000000000000000000000;hpb=5bf766068f54d061d3816f4950a076c3cf3a4d8b;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/Event.h b/lib/fpa/Base/Event.h new file mode 100644 index 0000000..dc4910d --- /dev/null +++ b/lib/fpa/Base/Event.h @@ -0,0 +1,54 @@ +// ========================================================================= +// @author Leonardo Florez Valencia +// @email florez-l@javeriana.edu.co +// ========================================================================= + +#ifndef __fpa__Base__Event__h__ +#define __fpa__Base__Event__h__ + +#include + +namespace fpa +{ + namespace Base + { + /** + */ + 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 +#endif // ITK_MANUAL_INSTANTIATION + +#endif // __fpa__Base__Event__h__ + +// eof - $RCSfile$