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