X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FFunctors%2FBaseVertexFunction.h;h=814f42b9dab02bc56666b010d4b09cdb76d6e98d;hb=34f4ff5d31c70f1127d43865c61e9f57a7071190;hp=a29fc4d6025dc692f1d0f8198016f238ee24ddc4;hpb=2047276c8f1a02432fbcc7014722d460d6c1e60f;p=FrontAlgorithms.git diff --git a/lib/fpa/Functors/BaseVertexFunction.h b/lib/fpa/Functors/BaseVertexFunction.h index a29fc4d..814f42b 100644 --- a/lib/fpa/Functors/BaseVertexFunction.h +++ b/lib/fpa/Functors/BaseVertexFunction.h @@ -15,18 +15,18 @@ namespace fpa /** */ template< class _TVertex > - class LightBaseVertexFunction + class BaseVertexFunction : public itk::Object { public: typedef _TVertex TVertex; typedef itk::Object Superclass; - typedef LightBaseVertexFunction Self; + typedef BaseVertexFunction Self; typedef itk::SmartPointer< Self > Pointer; typedef itk::SmartPointer< const Self > ConstPointer; public: - itkTypeMacro( fpa::Functors::LightBaseVertexFunction, itk::Object ); + itkTypeMacro( fpa::Functors::BaseVertexFunction, itk::Object ); itkSetConstObjectMacro( DataObject, itk::DataObject ); @@ -42,66 +42,25 @@ namespace fpa } protected: - LightBaseVertexFunction( ) + BaseVertexFunction( ) : Superclass( ), m_DataObject( NULL ) { } - virtual ~LightBaseVertexFunction( ) + virtual ~BaseVertexFunction( ) { } private: // Purposely not implemented. - LightBaseVertexFunction( const Self& other ); + BaseVertexFunction( const Self& other ); Self& operator=( const Self& other ); protected: itk::DataObject::ConstPointer m_DataObject; }; - /** - */ - template< class _TVertex, class _TValue > - class BaseVertexFunction - : public LightBaseVertexFunction< _TVertex > - { - public: - typedef _TVertex TVertex; - typedef _TValue TValue; - typedef LightBaseVertexFunction< _TVertex > Superclass; - typedef BaseVertexFunction Self; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - public: - itkTypeMacro( - fpa::Functors::RegionGrow::BaseVertexFunction, - fpa::Functors::RegionGrow::LightBaseVertexFunction - ); - - public: - virtual TValue Evaluate( - const TVertex& vertex, const TVertex& parent - ) const = 0; - - protected: - BaseVertexFunction( ) - : Superclass( ) - { - } - - virtual ~BaseVertexFunction( ) - { - } - - private: - // Purposely not implemented. - BaseVertexFunction( const Self& other ); - Self& operator=( const Self& other ); - }; - } // ecapseman } // ecapseman