1 #include "BaseImageFilter.h"
2 #include <cpPlugins/DataObjects/Image.h>
4 // -------------------------------------------------------------------------
5 bool fpaPlugins::BaseImageFilter::
11 // -------------------------------------------------------------------------
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 ] );
24 // -------------------------------------------------------------------------
25 fpaPlugins::BaseImageFilter::
29 this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
30 this->_ConfigureInput< cpPlugins::BaseObjects::DataObject >( "Seeds", true, false );
31 this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
33 this->m_Parameters.ConfigureAsBool( "VisualDebug" );
34 this->m_Parameters.ConfigureAsBool( "StopAtOneFront" );
35 this->m_Parameters.SetBool( "VisualDebug", false );
36 this->m_Parameters.SetBool( "StopAtOneFront", false );
38 std::vector< std::string > orders;
39 orders.push_back( "1" );
40 orders.push_back( "2" );
41 this->m_Parameters.ConfigureAsChoices( "NeighborhoodOrder", orders );
42 this->m_Parameters.SetSelectedChoice( "NeighborhoodOrder", "1" );
45 // -------------------------------------------------------------------------
46 fpaPlugins::BaseImageFilter::