1 #include "BaseImageFilter.h"
3 // -------------------------------------------------------------------------
4 bool fpaPlugins::BaseImageFilter::
10 // -------------------------------------------------------------------------
11 void fpaPlugins::BaseImageFilter::
12 SetInteractionObjects( const std::vector< void* >& objs )
14 if( objs.size( ) > 0 )
15 this->m_SingleInteractor =
16 reinterpret_cast< vtkRenderWindowInteractor* >( objs[ 0 ] );
17 if( objs.size( ) > 1 )
18 this->m_MPRViewer = reinterpret_cast< TMPRWidget* >( objs[ 1 ] );
21 // -------------------------------------------------------------------------
22 fpaPlugins::BaseImageFilter::
26 this->_AddInput( "Input" );
27 this->_AddInput( "Seeds" );
28 this->_AddOutput< cpPlugins::Image >( "Output" );
30 this->m_Parameters.ConfigureAsBool( "VisualDebug" );
31 this->m_Parameters.ConfigureAsBool( "StopAtOneFront" );
32 this->m_Parameters.SetBool( "VisualDebug", false );
33 this->m_Parameters.SetBool( "StopAtOneFront", false );
35 std::vector< std::string > orders;
36 orders.push_back( "1" );
37 orders.push_back( "2" );
38 this->m_Parameters.ConfigureAsChoices( "NeighborhoodOrder", orders );
39 this->m_Parameters.SetSelectedChoice( "NeighborhoodOrder", "1" );
42 // -------------------------------------------------------------------------
43 fpaPlugins::BaseImageFilter::