]> Creatis software - cpPlugins.git/blobdiff - plugins/ITKSliceFilters/CPRImageFilter.cxx
...
[cpPlugins.git] / plugins / ITKSliceFilters / CPRImageFilter.cxx
index b2f14e4fd51642eac37e1a20b84b3a62338f439b..9c22570bb12e98ec4191d3a6ffd9c2240faa8996 100644 (file)
@@ -1,23 +1,28 @@
 #include <ITKSliceFilters/CPRImageFilter.h>
-#include <cpInstances/Image.h>
-#include <cpInstances/Simple3DCurve.h>
 
-#include <itkImage.h>
-#include <cpExtensions/DataStructures/Simple3DCurve.h>
-#include <cpExtensions/Algorithms/CPRImageFilter.h>
+/* TODO
+   #include <cpInstances/Image.h>
+   #include <cpInstances/Simple3DCurve.h>
+
+   #include <itkImage.h>
+   #include <cpExtensions/DataStructures/Simple3DCurve.h>
+   #include <cpExtensions/Algorithms/CPRImageFilter.h>
+*/
 
 // -------------------------------------------------------------------------
 cpPluginsITKSliceFilters::CPRImageFilter::
 CPRImageFilter( )
   : Superclass( )
 {
-  typedef cpInstances::Image         _TImage;
-  typedef cpInstances::Simple3DCurve _TCurve;
-  this->_ConfigureInput< _TImage >( "Image", true, false );
-  this->_ConfigureInput< _TCurve >( "Curve", true, false );
-  this->_ConfigureOutput< _TImage >( "Output" );
+  /* TODO
+     typedef cpInstances::Image         _TImage;
+     typedef cpInstances::Simple3DCurve _TCurve;
+     this->_ConfigureInput< _TImage >( "Image", true, false );
+     this->_ConfigureInput< _TCurve >( "Curve", true, false );
+     this->_ConfigureOutput< _TImage >( "Output" );
 
-  this->m_Parameters.ConfigureAsReal( "SliceRadius", 1 );
+     this->m_Parameters.ConfigureAsReal( "SliceRadius", 1 );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -30,9 +35,11 @@ cpPluginsITKSliceFilters::CPRImageFilter::
 void cpPluginsITKSliceFilters::CPRImageFilter::
 _GenerateData( )
 {
-  auto o = this->GetInputData( "Image" );
-  cpPlugins_Demangle_Image_ScalarPixels_1( o, _GD0, 3 )
-    this->_Error( "Invalid input image." );
+  /* TODO
+     auto o = this->GetInputData( "Image" );
+     cpPlugins_Demangle_Image_ScalarPixels_1( o, _GD0, 3 )
+     this->_Error( "Invalid input image." );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -40,9 +47,11 @@ template< class _TImage >
 void cpPluginsITKSliceFilters::CPRImageFilter::
 _GD0( _TImage* image )
 {
-  auto o = this->GetInputData( "Curve" );
-  cpPlugins_Demangle_Simple3DCurve_All_2( o, _GD1, image )
-    this->_Error( "Invalid input curve." );
+  /* TODO
+     auto o = this->GetInputData( "Curve" );
+     cpPlugins_Demangle_Simple3DCurve_All_2( o, _GD1, image )
+     this->_Error( "Invalid input curve." );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -50,14 +59,16 @@ template< class _TCurve, class _TImage >
 void cpPluginsITKSliceFilters::CPRImageFilter::
 _GD1( _TCurve* curve, _TImage* image )
 {
-  typedef cpExtensions::Algorithms::CPRImageFilter< _TImage, _TCurve > _TFilter;
-
-  auto filter = this->_CreateITK< _TFilter >( );
-  filter->SetInput( image );
-  filter->SetCurve( curve );
-  filter->SetSliceRadius( this->m_Parameters.GetReal( "SliceRadius" ) );
-  filter->Update( );
-  this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+  /* TODO
+     typedef cpExtensions::Algorithms::CPRImageFilter< _TImage, _TCurve > _TFilter;
+
+     auto filter = this->_CreateITK< _TFilter >( );
+     filter->SetInput( image );
+     filter->SetCurve( curve );
+     filter->SetSliceRadius( this->m_Parameters.GetReal( "SliceRadius" ) );
+     filter->Update( );
+     this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+  */
 }
 
 // eof - $RCSfile$