]> Creatis software - FrontAlgorithms.git/blob - lib/fpaPlugins/GrowFunction.hxx
Plugins updated
[FrontAlgorithms.git] / lib / fpaPlugins / GrowFunction.hxx
1 #ifndef __FPAPLUGINS__GROWFUNCTION__HXX__
2 #define __FPAPLUGINS__GROWFUNCTION__HXX__
3
4 #include <itkFunctionBase.h>
5
6 // -------------------------------------------------------------------------
7 template< class F >
8 void fpaPlugins::GrowFunction::
9 SetITK( itk::Object* object )
10 {
11   typedef typename F::TSpace                  _TSpace;
12   typedef typename F::TVertex                 _TVertex;
13   typedef itk::FunctionBase< _TVertex, bool > _TBaseFunction;
14
15   _TBaseFunction* function = dynamic_cast< _TBaseFunction* >( object );
16   if( function != NULL )
17   {
18     this->m_ITKObject = function;
19     this->m_VTKObject = NULL;
20     this->Modified( );
21
22   } // fi
23 }
24
25 #endif // __FPAPLUGINS__GROWFUNCTION__HXX__
26
27 // eof - $RCSfile$