]> Creatis software - cpPlugins.git/blobdiff - appli/examples/example_MarchingCubes.cxx
...
[cpPlugins.git] / appli / examples / example_MarchingCubes.cxx
index 7894fe0e18a47b7b5f8cec4b2e23c0eca1ef5ef1..fbd43bb4dc21c3f1fca02195d21a5c3beda4c7c0 100644 (file)
@@ -30,6 +30,7 @@ int main( int argc, char* argv[] )
 
   // Create objects
   typedef cpPlugins::Interface::ProcessObject TProcessObject;
+  typedef cpPlugins::Interface::DataObject    TDataObject;
   typedef cpPlugins::Interface::Parameters    TParameters;
   cpPlugins::Interface::ProcessObject::Pointer reader, writer, mc;
   reader = plugins.CreateProcessObject( "cpPlugins::ImageReader" );
@@ -59,8 +60,8 @@ int main( int argc, char* argv[] )
   writer->SetParameters( writer_params );
 
   // Connect pipeline
-  mc->SetInput( 0, reader->GetOutput( 0 ) );
-  writer->SetInput( 0, mc->GetOutput( 0 ) );
+  mc->SetInput( 0, reader->GetOutput< TDataObject >( 0 ) );
+  writer->SetInput( 0, mc->GetOutput< TDataObject >( 0 ) );
 
   // Execute pipeline
   std::string err = writer->Update( );