]> Creatis software - FrontAlgorithms.git/blobdiff - plugins/Plugins/BaseImageFilter.cxx
...
[FrontAlgorithms.git] / plugins / Plugins / BaseImageFilter.cxx
index 335f9e1f92f9913075d678d1c89425c9a5502137..cb3f433872744d5e7f2355d32759fcaf8e84f0c3 100644 (file)
@@ -1,45 +1,23 @@
-#include "BaseImageFilter.h"
+#include <plugins/Plugins/BaseImageFilter.h>
 #include <cpPlugins/DataObjects/Image.h>
 
-// -------------------------------------------------------------------------
-bool fpaPlugins::BaseImageFilter::
-IsInteractive( )
-{
-  return( true );
-}
-
-// -------------------------------------------------------------------------
-/* TODO
-   void fpaPlugins::BaseImageFilter::
-   SetInteractionObjects( const std::vector< void* >& objs )
-   {
-   if( objs.size( ) > 0 )
-   this->m_SingleInteractor =
-   reinterpret_cast< vtkRenderWindowInteractor* >( objs[ 0 ] );
-   if( objs.size( ) > 1 )
-   this->m_MPRViewer = reinterpret_cast< TMPRWidget* >( objs[ 1 ] );
-   }
-*/
-
 // -------------------------------------------------------------------------
 fpaPlugins::BaseImageFilter::
 BaseImageFilter( )
   : Superclass( )
 {
-  this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
-  this->_ConfigureInput< cpPlugins::BaseObjects::DataObject >( "Seeds", true, false );
-  this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+  typedef cpPlugins::BaseObjects::DataObject _TData;
+  typedef cpPlugins::DataObjects::Image _TImage;
+
+  this->_ConfigureInput< _TImage >( "Input", true, false );
+  this->_ConfigureInput< _TData >( "Seeds", true, false );
+  this->_ConfigureInput< _TData >( "Neighborhood", false, false );
+  this->_ConfigureOutput< _TImage >( "Output" );
 
   this->m_Parameters.ConfigureAsBool( "VisualDebug" );
   this->m_Parameters.ConfigureAsBool( "StopAtOneFront" );
   this->m_Parameters.SetBool( "VisualDebug", false );
   this->m_Parameters.SetBool( "StopAtOneFront", false );
-
-  std::vector< std::string > orders;
-  orders.push_back( "1" );
-  orders.push_back( "2" );
-  this->m_Parameters.ConfigureAsChoices( "NeighborhoodOrder", orders );
-  this->m_Parameters.SetSelectedChoice( "NeighborhoodOrder", "1" );
 }
 
 // -------------------------------------------------------------------------