]> Creatis software - cpPlugins.git/blobdiff - appli/examples/plugins/ImageTracer.cxx
Raster filter updated. LUT image visualization strange bug :-(
[cpPlugins.git] / appli / examples / plugins / ImageTracer.cxx
index 00ff0e8e3e51bba97bd1d3d0614e81e975238a40..cff73bd429682fe983c287f966d16bc490953576 100644 (file)
@@ -63,6 +63,8 @@ int main( int argc, char* argv[] )
   auto spline = ws->GetFilter( "spline" );
   auto seeds = ws->GetFilter( "seeds" );
   auto axis = ws->GetFilter( "axis" );
+  auto writer = ws->GetFilter( "writer" );
+  auto raster = ws->GetFilter( "raster" );
 
   // Execute reader
   try
@@ -85,8 +87,8 @@ int main( int argc, char* argv[] )
     reader->GetOutputData< vtkImageData >( "Output" ), 2, "image"
     );
   spline->AddInteractor( view.GetInteractor( ) );
-  spline->Update( );
   seeds->AddInteractor( view.GetInteractor( ) );
+  spline->Update( );
   seeds->Update( );
 
   // Start application and show data
@@ -95,6 +97,8 @@ int main( int argc, char* argv[] )
   app.exec( );
   spline->Modified( );
   spline->Update( );
+  raster->Update( );
+  writer->Update( );
 
   wnd.show( );
   app.exec( );