1 #include "BaseImageFilter.h"
2 #include <cpPlugins/Image.h>
3 //#include <itkSimpleDataObjectDecorator.hxx>
5 // -------------------------------------------------------------------------
6 bool fpaPlugins::BaseImageFilter::
12 // -------------------------------------------------------------------------
13 void fpaPlugins::BaseImageFilter::
14 SetInteractionObjects( const std::vector< void* >& objs )
16 if( objs.size( ) > 0 )
17 this->m_SingleInteractor =
18 reinterpret_cast< vtkRenderWindowInteractor* >( objs[ 0 ] );
19 if( objs.size( ) > 1 )
20 this->m_MPRViewer = reinterpret_cast< TMPRWidget* >( objs[ 1 ] );
23 // -------------------------------------------------------------------------
24 fpaPlugins::BaseImageFilter::
28 this->_AddInput( "Input" );
29 this->_AddInput( "Seeds" );
30 this->_AddOutput< cpPlugins::Image >( "Output" );
32 this->m_Parameters.ConfigureAsBool( "VisualDebug" );
33 this->m_Parameters.ConfigureAsBool( "StopAtOneFront" );
34 this->m_Parameters.SetBool( "VisualDebug", false );
35 this->m_Parameters.SetBool( "StopAtOneFront", false );
37 std::vector< std::string > orders;
38 orders.push_back( "1" );
39 orders.push_back( "2" );
40 this->m_Parameters.ConfigureAsChoices( "NeighborhoodOrder", orders );
41 this->m_Parameters.SetSelectedChoice( "NeighborhoodOrder", "1" );
44 // -------------------------------------------------------------------------
45 fpaPlugins::BaseImageFilter::