X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FRegionGrow.h;h=71479448ac4b1ae6d53dcc59f6013ce2b3e8cc26;hb=c9542e420b94b0bfc1f285599f7816eab1191519;hp=8d7439f74e8a6e065e9730e17588445b01885572;hpb=5bf766068f54d061d3816f4950a076c3cf3a4d8b;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/RegionGrow.h b/lib/fpa/Base/RegionGrow.h index 8d7439f..7147944 100644 --- a/lib/fpa/Base/RegionGrow.h +++ b/lib/fpa/Base/RegionGrow.h @@ -7,7 +7,7 @@ #define __fpa__Base__RegionGrow__h__ #include - +#include #include #include @@ -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: