]> Creatis software - FrontAlgorithms.git/blob - plugins/fpa/BaseImageFilter.cxx
cdd9f67c2e17403a5234163655d60d73f2c26ca6
[FrontAlgorithms.git] / plugins / fpa / BaseImageFilter.cxx
1 #include "BaseImageFilter.h"
2 #include <itkSimpleDataObjectDecorator.hxx>
3
4 // -------------------------------------------------------------------------
5 bool fpaPlugins::BaseImageFilter::
6 IsInteractive( )
7 {
8   return( true );
9 }
10
11 // -------------------------------------------------------------------------
12 void fpaPlugins::BaseImageFilter::
13 SetInteractionObjects( const std::vector< void* >& objs )
14 {
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 ] );
20 }
21
22 // -------------------------------------------------------------------------
23 fpaPlugins::BaseImageFilter::
24 BaseImageFilter( )
25   : Superclass( )
26 {
27   this->_AddInput( "Input" );
28   this->_AddInput( "Seeds" );
29   this->_AddOutput< cpPlugins::Image >( "Output" );
30
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 );
35
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" );
41 }
42
43 // -------------------------------------------------------------------------
44 fpaPlugins::BaseImageFilter::
45 ~BaseImageFilter( )
46 {
47 }
48
49 // eof - $RCSfile$