]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/RegionGrow.h
...
[FrontAlgorithms.git] / lib / fpa / Base / RegionGrow.h
index 8d7439f74e8a6e065e9730e17588445b01885572..71479448ac4b1ae6d53dcc59f6013ce2b3e8cc26 100644 (file)
@@ -7,7 +7,7 @@
 #define __fpa__Base__RegionGrow__h__
 
 #include <deque>
-
+#include <fpa/Config.h>
 #include <itkConceptChecking.h>
 #include <itkFunctionBase.h>
 
@@ -27,28 +27,33 @@ namespace fpa
       typedef itk::SmartPointer< Self >       Pointer;
       typedef itk::SmartPointer< const Self > ConstPointer;
 
-      typedef typename _TAlgorithm::TNode        TNode;
-      typedef typename _TAlgorithm::TNodes       TNodes;
-      typedef typename _TAlgorithm::TInputValue  TInputValue;
-      typedef typename _TAlgorithm::TOutputValue TOutputValue;
-      typedef typename _TAlgorithm::TFrontId     TFrontId;
-      typedef typename _TAlgorithm::TVertex      TVertex;
+      typedef typename _TAlgorithm::TTraits TTraits;
+      fpa_Base_TraitTypes( typename TTraits );
+      /* TODO
+         typedef typename _TAlgorithm::TNode        TNode;
+         typedef typename _TAlgorithm::TNodes       TNodes;
+         typedef typename _TAlgorithm::TInputValue  TInputValue;
+         typedef typename _TAlgorithm::TOutputValue TOutputValue;
+         typedef typename _TAlgorithm::TFrontId     TFrontId;
+         typedef typename _TAlgorithm::TVertex      TVertex;
+      */
 
       typedef std::deque< TNode >                    TQueue;
       typedef itk::FunctionBase< TInputValue, bool > TValuePredicate;
       typedef itk::FunctionBase< TVertex, bool >     TVertexPredicate;
 
-    public:
+    private:
       itkConceptMacro(
         Check_TOutputValue,
         ( itk::Concept::IsUnsignedInteger< TOutputValue > )
         );
 
     public:
+
       itkGetObjectMacro( ValuePredicate, TValuePredicate );
       itkGetObjectMacro( VertexPredicate, TVertexPredicate );
-      itkGetConstMacro( InsideValue, TOutputValue );
 
+      itkGetConstMacro( InsideValue, TOutputValue );
       itkSetMacro( InsideValue, TOutputValue );
 
     public: