virtual ~Algorithm( );
// Connection with itk's pipeline
- virtual void GenerateData( );
+ virtual void GenerateData( ) ITK_OVERRIDE;
// Main loop algorithm
virtual void _Loop( );
virtual TResult _Cost( const TVertex& v, const TVertex& p ) const = 0;
- virtual void _BeforeGenerateData( );
+ virtual void _BeforeGenerateData( ) ITK_OVERRIDE;
// Results-related abstract methods
virtual bool _ComputeNeighborResult(
TResult& result, const TVertex& neighbor, const TVertex& parent
- ) const;
- virtual void _SetResult( const TVertex& v, const _TNode& n );
+ ) const ITK_OVERRIDE;
+ virtual void _SetResult( const TVertex& v, const _TNode& n ) ITK_OVERRIDE;
// Queue-related abstract methods
- virtual bool _IsQueueEmpty( ) const;
- virtual void _QueuePush( const TVertex& v, const _TNode& n );
- virtual void _QueuePop( TVertex& v, _TNode& n );
- virtual void _QueueClear( );
+ virtual bool _IsQueueEmpty( ) const ITK_OVERRIDE;
+ virtual void _QueuePush( const TVertex& v, const _TNode& n ) ITK_OVERRIDE;
+ virtual void _QueuePop( TVertex& v, _TNode& n ) ITK_OVERRIDE;
+ virtual void _QueueClear( ) ITK_OVERRIDE;
private:
// Purposely not implemented
TVertices* GetBifurcations( );
TVertices* GetCollisions( );
- virtual void Update( ) override
+ virtual void Update( ) ITK_OVERRIDE
{
this->GenerateData( );
}
ExtractEndPointsAndBifurcationsFromMinimumSpanningTree( );
virtual ~ExtractEndPointsAndBifurcationsFromMinimumSpanningTree( );
- virtual void GenerateData( ) override;
+ virtual void GenerateData( ) ITK_OVERRIDE;
virtual void _MarkSkeleton(
const TVertex& v, const unsigned long& l
ExtractPathFromMinimumSpanningTree( );
virtual ~ExtractPathFromMinimumSpanningTree( );
- virtual void GenerateData( );
+ virtual void GenerateData( ) ITK_OVERRIDE;
private:
// Purposely not implemented
itkSetMacro( Beta, C );
public:
- virtual C Evaluate( const C& input ) const
+ virtual C Evaluate( const C& input ) const ITK_OVERRIDE
{
C a = std::pow( input, this->m_Alpha );
if( input >= C( 0 ) )
itkSetConstObjectMacro( Space, TSpace );
public:
- virtual bool Evaluate( const TVertex& input ) const
+ virtual bool Evaluate( const TVertex& input ) const ITK_OVERRIDE
{ return( true ); }
protected:
// Results-related abstract methods
virtual bool _ComputeNeighborResult(
TResult& result, const TVertex& neighbor, const TVertex& parent
- ) const;
+ ) const ITK_OVERRIDE;
// Queue-related abstract methods
- virtual bool _IsQueueEmpty( ) const;
- virtual void _QueuePush( const TVertex& v, const _TNode& n );
- virtual void _QueuePop( TVertex& v, _TNode& n );
- virtual void _QueueClear( );
+ virtual bool _IsQueueEmpty( ) const ITK_OVERRIDE;
+ virtual void _QueuePush( const TVertex& v, const _TNode& n ) ITK_OVERRIDE;
+ virtual void _QueuePop( TVertex& v, _TNode& n ) ITK_OVERRIDE;
+ virtual void _QueueClear( ) ITK_OVERRIDE;
private:
// Purposely not implemented
Algorithm( );
virtual ~Algorithm( );
- virtual void _BeforeGenerateData( );
+ virtual void _BeforeGenerateData( ) ITK_OVERRIDE;
// Graph-related abstract methods
- virtual unsigned long _NumberOfVertices( ) const;
- virtual const TValue& _VertexValue( const TVertex& v ) const;
+ virtual unsigned long _NumberOfVertices( ) const ITK_OVERRIDE;
+ virtual const TValue& _VertexValue( const TVertex& v ) const ITK_OVERRIDE;
virtual double _Distance(
const TVertex& a, const TVertex& b
- ) const;
- virtual bool _HasEdge( const TVertex& a, const TVertex& b ) const;
+ ) const ITK_OVERRIDE;
+ virtual bool _HasEdge( const TVertex& a, const TVertex& b ) const ITK_OVERRIDE;
virtual void _Neighborhood(
_TVertices& neighborhood, const TVertex& v
- ) const;
+ ) const ITK_OVERRIDE;
// Results-related abstract methods
- virtual void _InitResults( );
- virtual const TResult& _Result( const TVertex& v ) const;
- virtual void _SetResult( const TVertex& v, const _TNode& n );
+ virtual void _InitResults( ) ITK_OVERRIDE;
+ virtual const TResult& _Result( const TVertex& v ) const ITK_OVERRIDE;
+ virtual void _SetResult( const TVertex& v, const _TNode& n ) ITK_OVERRIDE;
private:
// Purposely not implemented
Dijkstra( );
virtual ~Dijkstra( );
- virtual TResult _Cost( const TVertex& v, const TVertex& p ) const;
+ virtual TResult _Cost( const TVertex& v, const TVertex& p ) const ITK_OVERRIDE;
- virtual void _BeforeGenerateData( );
- virtual void _AfterGenerateData( );
- virtual void _InitResults( );
+ virtual void _BeforeGenerateData( ) ITK_OVERRIDE;
+ virtual void _AfterGenerateData( ) ITK_OVERRIDE;
+ virtual void _InitResults( ) ITK_OVERRIDE;
private:
// Purposely not implemented
ExtractEndPointsAndBifurcationsFromMinimumSpanningTree( );
virtual ~ExtractEndPointsAndBifurcationsFromMinimumSpanningTree( );
- virtual void GenerateData( ) override;
+ virtual void GenerateData( ) ITK_OVERRIDE;
virtual void _MarkSkeleton(
const TVertex& v, const unsigned long& l
- ) override;
+ ) ITK_OVERRIDE;
virtual void _MarkSphere(
const TVertex& v,
const double& r,
const unsigned long& l
- ) override;
- virtual unsigned long _Mark( const TVertex& v ) override;
- virtual unsigned long _SkeletonMark( const TVertex& v ) override;
- virtual double _Radius( const TVertex& v ) override;
+ ) ITK_OVERRIDE;
+ virtual unsigned long _Mark( const TVertex& v ) ITK_OVERRIDE;
+ virtual unsigned long _SkeletonMark( const TVertex& v ) ITK_OVERRIDE;
+ virtual double _Radius( const TVertex& v ) ITK_OVERRIDE;
- virtual void _Tmp( ) override
+ virtual void _Tmp( ) ITK_OVERRIDE
{
}
itkTypeMacro( RegionGrowAllBelongsFunction, itkImageFunction );
public:
- virtual bool Evaluate( const TIndex& v ) const
+ virtual bool Evaluate( const TIndex& v ) const ITK_OVERRIDE
{ return( true ); }
protected:
RegionGrow( );
virtual ~RegionGrow( );
- virtual void _InitResults( );
+ virtual void _InitResults( ) ITK_OVERRIDE;
private:
// Purposely not implemented
unsigned char alpha
);
void Render( );
- void Execute( itk::Object* c, const itk::EventObject& e )
+ void Execute( itk::Object* c, const itk::EventObject& e ) ITK_OVERRIDE
{ this->Execute( ( const itk::Object* )( c ), e ); }
- void Execute( const itk::Object* c, const itk::EventObject& e );
+ void Execute( const itk::Object* c, const itk::EventObject& e ) ITK_OVERRIDE;
protected:
Image2DObserver( );
public:
void SetRenderWindow( R* rw );
void Render( );
- void Execute( itk::Object* c, const itk::EventObject& e )
+ void Execute( itk::Object* c, const itk::EventObject& e ) ITK_OVERRIDE
{ this->Execute( ( const itk::Object* )( c ), e ); }
- void Execute( const itk::Object* c, const itk::EventObject& e );
+ void Execute( const itk::Object* c, const itk::EventObject& e ) ITK_OVERRIDE;
protected:
Image3DObserver( );
)
## Target links
-TARGET_LINK_LIBRARIES(fpa_Instances ${cpPlugins_LIBRARY} ${cpPlugins_ALL_INSTANCES_LIBRARIES})
+TARGET_LINK_LIBRARIES(fpa_Instances ${cpPlugins_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
TARGET_LINK_LIBRARIES(fpa_Filters fpa_Instances)
TARGET_LINK_LIBRARIES(fpa_Observers fpa_Filters)
t fpa/Image/RegionGrow.h
t fpa/Image/Dijkstra.h
t fpa/Image/Algorithm.h
+t fpa/Base/Algorithm.h
+t fpa/Base/RegionGrow.h
+t fpa/Base/Dijkstra.h
d #dims=2;3
d #int=char;short;int;long
ExtractEndPointsAndBifurcationsFromMinimumSpanningTree( );
virtual ~ExtractEndPointsAndBifurcationsFromMinimumSpanningTree( );
- virtual std::string _GenerateData( );
+ virtual std::string _GenerateData( ) ITK_OVERRIDE;
template< class _TImage >
inline std::string _GD0( _TImage* image );
#include <itkDataObject.h>
#include <itkIndex.h>
#include <itkSimpleDataObjectDecorator.hxx>
+#include <itkVectorContainer.hxx>
+#include <itkParametricPath.hxx>
#include <cpPlugins_Instances/Paths.h>
#include <cpPlugins/Path.h>
#include <fpa/Base/ExtractPathFromMinimumSpanningTree.h>
ExtractPathFromMinimumSpanningTree( );
virtual ~ExtractPathFromMinimumSpanningTree( );
- virtual std::string _GenerateData( );
+ virtual std::string _GenerateData( ) ITK_OVERRIDE;
template< class _TMST >
inline std::string _GD0( _TMST* mst );
ImageDijkstra( );
virtual ~ImageDijkstra( );
- virtual std::string _GenerateData( );
+ virtual std::string _GenerateData( ) ITK_OVERRIDE;
template< class _TImage >
std::string _GD0( _TImage* image );
ImageRegionGrow( );
virtual ~ImageRegionGrow( );
- virtual std::string _GenerateData( );
+ virtual std::string _GenerateData( ) ITK_OVERRIDE;
template< class _TImage >
std::string _GD0( _TImage* image );
InvertCostFunction( );
virtual ~InvertCostFunction( );
- virtual std::string _GenerateData( );
+ virtual std::string _GenerateData( ) ITK_OVERRIDE;
template< class _TScalar >
std::string _GD0( );