X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FConfig.h.in;h=f93fb23a36c2eea2b65267b7e01d4660c7cdce93;hb=1f269742b9c1575ee931b76ebe1c001b7d6596a3;hp=831fb7217ce967e9f698fd48254deb60800ba23a;hpb=34f4ff5d31c70f1127d43865c61e9f57a7071190;p=FrontAlgorithms.git diff --git a/lib/fpa/Config.h.in b/lib/fpa/Config.h.in index 831fb72..f93fb23 100644 --- a/lib/fpa/Config.h.in +++ b/lib/fpa/Config.h.in @@ -1,12 +1,16 @@ // ========================================================================= -// @author Leonardo Florez Valencia -// @email florez-l@javeriana.edu.co +// @author Leonardo Florez Valencia (florez-l@javeriana.edu.co) // ========================================================================= #ifndef __fpa__Config__h__ #define __fpa__Config__h__ +#include #include +#if @Eigen3_FOUND@ == 1 +# define USE_Eigen3 +#endif // @Eigen3_FOUND@ == 1 + // ------------------------------------------------------------------------- #define fpaTraitsMacro( __t__ ) \ typedef __t__::TInternalTraits::TInputValue TInputValue; \ @@ -21,29 +25,32 @@ 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 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__( const __t__* i ) \ + { \ + this->itk::ProcessObject::SetNthInput( \ + this->m_##__n__##Idx, \ + const_cast< __t__* >( i ) \ + ); \ } // -------------------------------------------------------------------------