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