]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/BasicFilters/MacheteFilter.cxx
...
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / MacheteFilter.cxx
index e8e9b101e8888c32f6c5d5769e4e2d574d3fdfc7..6a077f500c2106a25309010fb18a9d21ed175628 100644 (file)
@@ -130,7 +130,7 @@ ExecConfigurationDialog( QWidget* parent )
   
   // Get bounding box
   double bbox[ 6 ];
-  auto image = this->GetInputData< cpPlugins::Interface::Image >( "Input" );
+  auto image = this->GetInputData( "Input" );
   bool input_found = false;
   if( image != NULL )
   {
@@ -138,7 +138,7 @@ ExecConfigurationDialog( QWidget* parent )
     input_found = true;
 
   } // fi
-  auto mesh = this->GetInputData< cpPlugins::Interface::Mesh >( "Input" );
+  auto mesh = this->GetInputData( "Input" );
   if( mesh != NULL )
   {
     mesh->GetVTK< vtkPolyData >( )->GetBounds( bbox );
@@ -216,10 +216,10 @@ cpPlugins::BasicFilters::MacheteFilter::
 std::string cpPlugins::BasicFilters::MacheteFilter::
 _GenerateData( )
 {
-  auto image = this->GetInputData< cpPlugins::Interface::Image >( "Input" );
+  auto image = this->GetInputData( "Input" );
   if( image != NULL )
     return( this->_FromImage( image ) );
-  auto mesh = this->GetInputData< cpPlugins::Interface::Mesh >( "Input" );
+  auto mesh = this->GetInputData( "Input" );
   if( mesh == NULL )
     return( this->_FromMesh( mesh ) );
   return( "MacheteFilter: No valid input." );
@@ -227,7 +227,7 @@ _GenerateData( )
 
 // -------------------------------------------------------------------------
 std::string cpPlugins::BasicFilters::MacheteFilter::
-_FromImage( cpPlugins::Interface::Image* image )
+_FromImage( cpPlugins::Interface::DataObject* image )
 {
   itk::DataObject* itk_image = NULL;
   std::string r = "";
@@ -239,7 +239,7 @@ _FromImage( cpPlugins::Interface::Image* image )
 
 // -------------------------------------------------------------------------
 std::string cpPlugins::BasicFilters::MacheteFilter::
-_FromMesh( cpPlugins::Interface::Mesh* mesh )
+_FromMesh( cpPlugins::Interface::DataObject* mesh )
 {
   return( "" );
 }
@@ -286,18 +286,18 @@ _RealImage( itk::DataObject* dobj )
   filter->Update( );
 
   // Connect outputs (and correct their types and names)
-  _TImage* pos_out = this->GetOutputData< _TImage >( "PositiveOutput" );
+  _TObj* pos_out = this->GetOutputData( "PositiveOutput" );
   if( pos_out == NULL )
   {
     this->_AddOutput< _TImage >( "PositiveOutput" );
-    pos_out = this->GetOutputData< _TImage >( "PositiveOutput" );
+    pos_out = this->GetOutputData( "PositiveOutput" );
 
   } // fi
-  _TImage* neg_out = this->GetOutputData< _TImage >( "NegativeOutput" );
+  _TObj* neg_out = this->GetOutputData( "NegativeOutput" );
   if( neg_out == NULL )
   {
     this->_AddOutput< _TImage >( "NegativeOutput" );
-    neg_out = this->GetOutputData< _TImage >( "NegativeOutput" );
+    neg_out = this->GetOutputData( "NegativeOutput" );
 
   } // fi