X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FFunctors%2FBaseVertexFunction.h;fp=lib%2Ffpa%2FFunctors%2FBaseVertexFunction.h;h=0000000000000000000000000000000000000000;hb=a8ac405fe1422bc0792a810f7f0693096a22c20e;hp=a29fc4d6025dc692f1d0f8198016f238ee24ddc4;hpb=8abe87eaa0d29ba667d5cbf35f4ca1ca2e38c6c4;p=FrontAlgorithms.git diff --git a/lib/fpa/Functors/BaseVertexFunction.h b/lib/fpa/Functors/BaseVertexFunction.h deleted file mode 100644 index a29fc4d..0000000 --- a/lib/fpa/Functors/BaseVertexFunction.h +++ /dev/null @@ -1,110 +0,0 @@ -// ========================================================================= -// @author Leonardo Florez Valencia -// @email florez-l@javeriana.edu.co -// ========================================================================= -#ifndef __fpa__Functors__BaseVertexFunction__h__ -#define __fpa__Functors__BaseVertexFunction__h__ - -#include -#include - -namespace fpa -{ - namespace Functors - { - /** - */ - template< class _TVertex > - class LightBaseVertexFunction - : public itk::Object - { - public: - typedef _TVertex TVertex; - typedef itk::Object Superclass; - typedef LightBaseVertexFunction Self; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - public: - itkTypeMacro( fpa::Functors::LightBaseVertexFunction, itk::Object ); - - itkSetConstObjectMacro( DataObject, itk::DataObject ); - - public: - template< class _TDataObject = itk::DataObject > - const _TDataObject* GetDataObject( ) const - { - return( - dynamic_cast< const _TDataObject* >( - this->m_DataObject.GetPointer( ) - ) - ); - } - - protected: - LightBaseVertexFunction( ) - : Superclass( ), - m_DataObject( NULL ) - { - } - - virtual ~LightBaseVertexFunction( ) - { - } - - private: - // Purposely not implemented. - LightBaseVertexFunction( 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 - -#endif // __fpa__Functors__BaseVertexFunction__h__ -// eof - $RCSfile$