]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/BasicFilters/SphereMeshSource.cxx
Widget integration (step 6/6): Interactive architecture finished. Needs to be tested...
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / SphereMeshSource.cxx
index 78aff5fbebf3ec19d0e5e0db59d279444a9f3c3f..c7c671b6e3e3a6871bc4ef1421ab12e3d330ab91 100644 (file)
@@ -10,9 +10,7 @@ cpPlugins::BasicFilters::SphereMeshSource::
 SphereMeshSource( )
   : Superclass( )
 {
-  this->SetNumberOfInputs( 0 );
-  this->SetNumberOfOutputs( 1 );
-  this->_MakeOutput< cpPlugins::Interface::Mesh >( 0 );
+  this->_MakeOutput< cpPlugins::Interface::Mesh >( "Output" );
 
   double point[ 3 ] = { double( 0 ) };
   this->m_Parameters->ConfigureAsPoint( "Center", 3, point );
@@ -47,7 +45,7 @@ _GenerateData( )
 
   // Execute filter
   cpPlugins::Interface::Mesh* out =
-    this->GetOutput< cpPlugins::Interface::Mesh >( 0 );
+    this->GetOutput< cpPlugins::Interface::Mesh >( "Output" );
   out->SetVTK( src->GetOutput( ) );
   return( "" );
 }