1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5 #ifndef __fpa__Functors__BaseVertexFunction__h__
6 #define __fpa__Functors__BaseVertexFunction__h__
8 #include <itkDataObject.h>
17 template< class _TVertex >
18 class BaseVertexFunction
22 typedef _TVertex TVertex;
23 typedef itk::Object Superclass;
24 typedef BaseVertexFunction Self;
25 typedef itk::SmartPointer< Self > Pointer;
26 typedef itk::SmartPointer< const Self > ConstPointer;
29 itkTypeMacro( fpa::Functors::BaseVertexFunction, itk::Object );
31 itkSetConstObjectMacro( DataObject, itk::DataObject );
34 template< class _TDataObject = itk::DataObject >
35 const _TDataObject* GetDataObject( ) const
38 dynamic_cast< const _TDataObject* >(
39 this->m_DataObject.GetPointer( )
51 virtual ~BaseVertexFunction( )
56 // Purposely not implemented.
57 BaseVertexFunction( const Self& other );
58 Self& operator=( const Self& other );
61 itk::DataObject::ConstPointer m_DataObject;
68 #endif // __fpa__Functors__BaseVertexFunction__h__