X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ffpa%2FConfig.h.in;h=0e2f03965b5ce2da85f55fc90334ee967af773bd;hb=ae0e1b8916a0fb2188080b9134c1c2781c6c200f;hp=d00ed7fb4b96d8035ee26058d4d2a33b27141d65;hpb=b4059b76232207db78905ed83fa96115c7fe41c3;p=FrontAlgorithms.git diff --git a/lib/fpa/Config.h.in b/lib/fpa/Config.h.in index d00ed7f..0e2f039 100644 --- a/lib/fpa/Config.h.in +++ b/lib/fpa/Config.h.in @@ -4,8 +4,8 @@ #ifndef __fpa__Config__h__ #define __fpa__Config__h__ +#include #include -#include #if @Eigen3_FOUND@ == 1 # define USE_Eigen3 @@ -24,68 +24,5 @@ typedef __t__::TInternalTraits::TSeeds TSeeds; \ typedef __t__::TInternalTraits::TVertex TVertex -// ------------------------------------------------------------------------- -#define fpaFilterInputMacro( __n__, __t__ ) \ - private: \ - unsigned int m_##__n__##Idx; \ - public: \ - __t__* Get##__n__( ) \ - { \ - return( \ - dynamic_cast< __t__* >( \ - this->itk::ProcessObject::GetInput( \ - this->m_##__n__##Idx \ - ) ) ); \ - } \ - const __t__* Get##__n__( ) const \ - { \ - return( \ - dynamic_cast< const __t__* >( \ - this->itk::ProcessObject::GetInput( \ - this->m_##__n__##Idx \ - ) ) ); \ - } \ - void Set##__n__( __t__* i ) \ - { \ - this->itk::ProcessObject::SetNthInput( this->m_##__n__##Idx, i ); \ - } - -// ------------------------------------------------------------------------- -#define fpaFilterInputConfigureMacro( __n__, __t__ ) \ - this->m_##__n__##Idx = this->GetNumberOfRequiredInputs( ); \ - this->itk::ProcessObject::SetNumberOfRequiredInputs( \ - this->m_##__n__##Idx + 1 \ - ) - -// ------------------------------------------------------------------------- -#define fpaFilterOutputMacro( __n__, __t__ ) \ - private: \ - unsigned int m_##__n__##Idx; \ - public: \ - __t__* Get##__n__( ) \ - { \ - return( \ - dynamic_cast< __t__* >( \ - this->itk::ProcessObject::GetOutput( \ - this->m_##__n__##Idx \ - ) ) ); \ - } \ - const __t__* Get##__n__( ) const \ - { \ - return( \ - dynamic_cast< const __t__* >( \ - this->itk::ProcessObject::GetOutput( \ - this->m_##__n__##Idx \ - ) ) ); \ - } - -// ------------------------------------------------------------------------- -#define fpaFilterOutputConfigureMacro( __n__, __t__ ) \ - this->m_##__n__##Idx = this->GetNumberOfRequiredOutputs( ); \ - this->itk::ProcessObject::SetNumberOfRequiredOutputs( \ - this->m_##__n__##Idx + 1 \ - ); \ - this->SetNthOutput( this->m_##__n__##Idx, __t__::New( ) ) - #endif // __fpa__Config__h__ // eof - $RCSfile$