]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Base/SingleSeedInterface.h
...
[FrontAlgorithms.git] / lib / fpa / Base / SingleSeedInterface.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5
6 #ifndef __fpa__Base__SingleSeedInterface__h__
7 #define __fpa__Base__SingleSeedInterface__h__
8
9 #include <fpa/Config.h>
10 #include <itkConceptChecking.h>
11 #include <itkProcessObject.h>
12
13 namespace fpa
14 {
15   namespace Base
16   {
17     /**
18      */
19     template< class _TTraits >
20     class SingleSeedInterface
21     {
22     public:
23       typedef SingleSeedInterface Self;
24       typedef _TTraits            TTraits;
25       fpa_Base_TraitTypes( typename TTraits );
26
27     private:
28       itkConceptMacro(
29         Check_TFrontId,
30         ( itk::Concept::IsUnsignedInteger< TFrontId > )
31         );
32
33     public:
34       TSeeds& GetSeeds( );
35       const TSeeds& GetSeeds( ) const;
36
37       virtual void SetSeed( const TVertex& seed );
38       virtual void SetSeed( const TPoint& seed );
39
40     protected:
41       SingleSeedInterface( itk::ProcessObject* filter );
42       virtual ~SingleSeedInterface( );
43
44       virtual TNodes _UnifySeeds( ) = 0;
45       virtual void _PrepareSeeds( TNodes& nodes ) = 0;
46
47     protected:
48       TSeeds m_Seeds;
49       itk::ProcessObject* m_Filter;
50     };
51
52   } // ecapseman
53
54 } // ecapseman
55
56 #ifndef ITK_MANUAL_INSTANTIATION
57 #  include <fpa/Base/SingleSeedInterface.hxx>
58 #endif // ITK_MANUAL_INSTANTIATION
59
60 #endif // __fpa__Base__SingleSeedInterface__h__
61
62 // eof - $RCSfile$