]> Creatis software - FrontAlgorithms.git/blob - plugins/fpa/BaseImageFilter.cxx
more experiments...
[FrontAlgorithms.git] / plugins / fpa / BaseImageFilter.cxx
1 #include "BaseImageFilter.h"
2 #include <cpPlugins/Image.h>
3 //#include <itkSimpleDataObjectDecorator.hxx>
4
5 // -------------------------------------------------------------------------
6 bool fpaPlugins::BaseImageFilter::
7 IsInteractive( )
8 {
9   return( true );
10 }
11
12 // -------------------------------------------------------------------------
13 void fpaPlugins::BaseImageFilter::
14 SetInteractionObjects( const std::vector< void* >& objs )
15 {
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 ] );
21 }
22
23 // -------------------------------------------------------------------------
24 fpaPlugins::BaseImageFilter::
25 BaseImageFilter( )
26   : Superclass( )
27 {
28   this->_AddInput( "Input" );
29   this->_AddInput( "Seeds" );
30   this->_AddOutput< cpPlugins::Image >( "Output" );
31
32   this->m_Parameters.ConfigureAsBool( "VisualDebug" );
33   this->m_Parameters.ConfigureAsBool( "StopAtOneFront" );
34   this->m_Parameters.SetBool( "VisualDebug", false );
35   this->m_Parameters.SetBool( "StopAtOneFront", false );
36
37   std::vector< std::string > orders;
38   orders.push_back( "1" );
39   orders.push_back( "2" );
40   this->m_Parameters.ConfigureAsChoices( "NeighborhoodOrder", orders );
41   this->m_Parameters.SetSelectedChoice( "NeighborhoodOrder", "1" );
42 }
43
44 // -------------------------------------------------------------------------
45 fpaPlugins::BaseImageFilter::
46 ~BaseImageFilter( )
47 {
48 }
49
50 // eof - $RCSfile$