#include "DoubleFloodImageFilter.h"
#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/BaseApplication.h>
-#include <cpPlugins/Interface/Plugins.h>
#include <cpExtensions/Interaction/ImageInteractorStyle.h>
#include <cpExtensions/Visualization/ImageSliceActors.h>
: QDialog( parent, f | Qt::WindowStaysOnTopHint ),
m_Filter( filter )
{
+/* TODO
this->m_Title = new QLabel( this );
this->m_Title->setText( "Execute simple vessel segmentation filter" );
QObject::connect( bb, SIGNAL( accepted( ) ), this, SLOT( accept( ) ) );
QObject::connect( bb, SIGNAL( rejected( ) ), this, SLOT( reject( ) ) );
this->m_ToolsLayout->addWidget( bb );
+*/
}
// -------------------------------------------------------------------------
cpPlugins::BasicFilters::DoubleFloodImageFilter_Dialog::
~DoubleFloodImageFilter_Dialog( )
{
+/*
delete this->m_Title;
delete this->m_ToolsLayout;
delete this->m_MainLayout;
+*/
}
// -------------------------------------------------------------------------
void cpPlugins::BasicFilters::DoubleFloodImageFilter_Dialog::
accept( )
{
+/*
// Get interactive widget
if( this->m_Filter == NULL )
return;
app->UpdateActualFilter( );
} // fi
+*/
}
// -------------------------------------------------------------------------
void cpPlugins::BasicFilters::DoubleFloodImageFilter_Dialog::
reject( )
{
+/*
auto plugins = this->m_Filter->GetPlugins( );
if( plugins != NULL )
plugins->DeactivateFilter( );
this->Superclass::reject( );
+*/
}
-
#endif // cpPlugins_Interface_QT4
// -------------------------------------------------------------------------
DialogResult cpPlugins::BasicFilters::DoubleFloodImageFilter::
ExecConfigurationDialog( QWidget* parent )
{
+/* TODO
#ifdef cpPlugins_Interface_QT4
typedef cpExtensions::Interaction::ImageInteractorStyle _TImageStyle;
#else // cpPlugins_Interface_QT4
return( false );
#endif // cpPlugins_Interface_QT4
+*/
+ return( false );
}
// -------------------------------------------------------------------------
DoubleFloodImageFilter( )
: Superclass( )
{
+ /* TODO
this->_AddInput( "Input" );
this->_MakeOutput< cpPlugins::Interface::Image >( "Output" );
this->m_Parameters->SetReal( "Level", 0 );
this->m_Parameters->SetUint( "InsideValue", 255 );
this->m_Parameters->SetUint( "OutsideValue", 0 );
+ */
}
// -------------------------------------------------------------------------
std::string cpPlugins::BasicFilters::DoubleFloodImageFilter::
_GenerateData( )
{
+ /* TODO
cpPlugins::Interface::Image* image =
this->GetInput< cpPlugins::Interface::Image >( "Input" );
if( image == NULL )
else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
else r = "DoubleFloodImageFilter: Input image type not supported.";
return( r );
+ */
+ return( "" );
}
// -------------------------------------------------------------------------
std::string cpPlugins::BasicFilters::DoubleFloodImageFilter::
_GD0( itk::DataObject* image )
{
+ /* TODO
return(
this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
image
)
);
+ */
+ return( "" );
+
}
// -------------------------------------------------------------------------
+/* TODO
template< class I, class R = float >
class cpPlugins_BasicFilters_DoubleFloodImageFilter_Function
: public itk::ImageFunction< I, bool, R >
mutable unsigned char m_StartValue;
mutable bool m_Start;
};
+*/
// -------------------------------------------------------------------------
template< class I, class O >
inline std::string cpPlugins::BasicFilters::DoubleFloodImageFilter::
_RealGD( itk::DataObject* image )
{
+ /* TODO
typedef typename O::PixelType _OP;
typedef cpPlugins_BasicFilters_DoubleFloodImageFilter_Function< I > _F;
typedef itk::FloodFilledImageFunctionConditionalConstIterator< I, _F > _It;
}
else
return( "DoubleFloodImageFilter: output not correctly created." );
+ */
+ return( "" );
}
// eof - $RCSfile$