]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/LabelledSeedsInterface.h
...
[FrontAlgorithms.git] / lib / fpa / Image / LabelledSeedsInterface.h
index 74ec756a071ee0789510a0ea90c516a028804014..96016c05df80bfacbd30502daf75cb28a6adadc1 100644 (file)
@@ -7,7 +7,6 @@
 #define __fpa__Image__LabelledSeedsInterface__h__
 
 #include <fpa/Base/SeedsInterface.h>
-
 #include <itkImage.h>
 
 namespace fpa
@@ -16,23 +15,15 @@ namespace fpa
   {
     /**
      */
-    template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare = std::greater< _TVertex > >
+    template< class _TTraits >
     class LabelledSeedsInterface
-      : public fpa::Base::SeedsInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >
+      : public fpa::Base::SeedsInterface< _TTraits >
     {
     public:
-      typedef _TVertex      TVertex;
-      typedef _TPoint       TPoint;
-      typedef _TInputValue  TInputValue;
-      typedef _TOutputValue TOutputValue;
-      typedef _TFrontId     TFrontId;
-      typedef _TCompare     TCompare;
-      typedef LabelledSeedsInterface Self;
-      typedef fpa::Base::SeedsInterface< TVertex, TPoint, TInputValue, TOutputValue, TFrontId, TCompare > Superclass;
-
-      typedef typename Superclass::TNode        TNode;
-      typedef typename Superclass::TNodeCompare TNodeCompare;
-      typedef typename Superclass::TSeeds       TSeeds;
+      typedef _TTraits TTraits;
+      typedef LabelledSeedsInterface               Self;
+      typedef fpa::Base::SeedsInterface< TTraits > Superclass;
+      fpa_Base_TraitTypes( typename TTraits );
 
       typedef itk::Image< TFrontId, TVertex::Dimension > TLabelImage;