]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Config.h.in
...
[FrontAlgorithms.git] / lib / fpa / Config.h.in
index d00ed7fb4b96d8035ee26058d4d2a33b27141d65..f93fb23a36c2eea2b65267b7e01d4660c7cdce93 100644 (file)
   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 )                 \
+      );                                        \
   }
 
 // -------------------------------------------------------------------------