]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/BasicFilters/DoubleFloodImageFilter.cxx
...
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / DoubleFloodImageFilter.cxx
index 61ff7d2e291b46a22e67b9fed0406d48735b64dc..aeaa590d0a85ce9a2b0cd34c53a934a7be389bd5 100644 (file)
@@ -1,7 +1,5 @@
 #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>
 
@@ -21,6 +19,7 @@ DoubleFloodImageFilter_Dialog(
   : QDialog( parent, f | Qt::WindowStaysOnTopHint ),
     m_Filter( filter )
 {
+/* TODO
   this->m_Title = new QLabel( this );
   this->m_Title->setText( "Execute simple vessel segmentation filter" );
 
@@ -36,21 +35,25 @@ DoubleFloodImageFilter_Dialog(
   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;
@@ -108,18 +111,20 @@ accept( )
       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
 
 // -------------------------------------------------------------------------
@@ -127,6 +132,7 @@ cpPlugins::BasicFilters::DoubleFloodImageFilter::
 DialogResult cpPlugins::BasicFilters::DoubleFloodImageFilter::
 ExecConfigurationDialog( QWidget* parent )
 {
+/* TODO
 #ifdef cpPlugins_Interface_QT4
 
   typedef cpExtensions::Interaction::ImageInteractorStyle _TImageStyle;
@@ -159,6 +165,8 @@ ExecConfigurationDialog( QWidget* parent )
 #else // cpPlugins_Interface_QT4
   return( false );
 #endif // cpPlugins_Interface_QT4
+*/
+  return( false );
 }
 
 // -------------------------------------------------------------------------
@@ -166,6 +174,7 @@ cpPlugins::BasicFilters::DoubleFloodImageFilter::
 DoubleFloodImageFilter( )
   : Superclass( )
 {
+  /* TODO
   this->_AddInput( "Input" );
   this->_MakeOutput< cpPlugins::Interface::Image >( "Output" );
 
@@ -180,6 +189,7 @@ DoubleFloodImageFilter( )
   this->m_Parameters->SetReal( "Level", 0 );
   this->m_Parameters->SetUint( "InsideValue", 255 );
   this->m_Parameters->SetUint( "OutsideValue", 0 );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -192,6 +202,7 @@ cpPlugins::BasicFilters::DoubleFloodImageFilter::
 std::string cpPlugins::BasicFilters::DoubleFloodImageFilter::
 _GenerateData( )
 {
+  /* TODO
   cpPlugins::Interface::Image* image =
     this->GetInput< cpPlugins::Interface::Image >( "Input" );
   if( image == NULL )
@@ -203,6 +214,8 @@ _GenerateData( )
   else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
   else r = "DoubleFloodImageFilter: Input image type not supported.";
   return( r );
+  */
+  return( "" );
 }
 
 // -------------------------------------------------------------------------
@@ -210,14 +223,19 @@ template< class I >
 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 >
@@ -301,12 +319,14 @@ protected:
   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;
@@ -359,6 +379,8 @@ _RealGD( itk::DataObject* image )
   }
   else
     return( "DoubleFloodImageFilter: output not correctly created." );
+  */
+  return( "" );
 }
 
 // eof - $RCSfile$