X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FEvents.h;h=17c55649cece70841cfaa2558b4be6528e604956;hb=a993dd7dc7f3154d00eed3d3a4796fb9e3ff582d;hp=09f0637da4731445aff3c2304363aa18963529f4;hpb=b70a564ee2d7bc180b77a05c37ab431ab9c393e7;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/Events.h b/lib/fpa/Base/Events.h index 09f0637..17c5564 100644 --- a/lib/fpa/Base/Events.h +++ b/lib/fpa/Base/Events.h @@ -1,8 +1,5 @@ -#ifndef __FPA__BASE__EVENTS__H__ -#define __FPA__BASE__EVENTS__H__ - -#include -#include +#ifndef __fpa__Base__Events__h__ +#define __fpa__Base__Events__h__ // ------------------------------------------------------------------------- #define fpa_Base_NewEvent( name ) \ @@ -63,7 +60,7 @@ namespace fpa /** */ - template< class V > + template< class _TVertex > class BaseEventWithVertex : public BaseEvent { @@ -71,7 +68,7 @@ namespace fpa BaseEventWithVertex( ) : BaseEvent( ) { } - BaseEventWithVertex( const V& v, long fid ) + BaseEventWithVertex( const _TVertex& v, long fid ) : BaseEvent( ), Vertex( v ), FrontId( fid ) @@ -83,21 +80,21 @@ namespace fpa bool CheckEvent( const itk::EventObject* e ) const { return( - dynamic_cast< const BaseEventWithVertex< V >* >( e ) != NULL + dynamic_cast< const BaseEventWithVertex< _TVertex >* >( e ) != NULL ); } itk::EventObject* MakeObject( ) const - { return( new BaseEventWithVertex< V >( ) ); } + { return( new BaseEventWithVertex< _TVertex >( ) ); } public: - V Vertex; - long FrontId; + _TVertex Vertex; + long FrontId; }; } // ecapseman } // ecapseman -#endif // __FPA__BASE__EVENTS__H__ +#endif // __fpa__Base__Events__h__ // eof - $RCSfile$