-#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" );
}
// -------------------------------------------------------------------------