]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Filters/SingleSeedInterface.h
...
[FrontAlgorithms.git] / lib / fpa / Filters / SingleSeedInterface.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5 #ifndef __fpa__Filters__SingleSeedInterface__h__
6 #define __fpa__Filters__SingleSeedInterface__h__
7
8 #include <itkDataObject.h>
9 #include <itkProcessObject.h>
10 #include <fpa/Config.h>
11
12 namespace fpa
13 {
14   namespace Filters
15   {
16     /**
17      */
18     template< class _TTraits >
19     class SingleSeedInterface
20     {
21     public:
22       typedef SingleSeedInterface Self;
23       typedef _TTraits            TTraits;
24       fpaInternalTraitsMacro( typename, TTraits );
25
26     public:
27       SingleSeedInterface( itk::ProcessObject* f );
28       virtual ~SingleSeedInterface( );
29
30       void SetSeed( const TPoint& s );
31       void SetSeed( const TVertex& s );
32
33       const TNodes& GetSeeds( ) const;
34
35     protected:
36       virtual void _PrepareSeeds( const itk::DataObject* input );
37
38     protected:
39       TSeed  m_InputSeed;
40       TNodes m_UnifiedSeed;
41       itk::ProcessObject::Pointer m_Filter;
42     };
43
44   } // ecapseman
45
46 } // ecapseman
47
48 #ifndef ITK_MANUAL_INSTANTIATION
49 #  include <fpa/Filters/SingleSeedInterface.hxx>
50 #endif // ITK_MANUAL_INSTANTIATION
51
52 #endif // __fpa__Filters__SingleSeedInterface__h__
53 // eof - $RCSfile$