]> Creatis software - cpPlugins.git/blobdiff - appli/examples/example_View2DImage.cxx
...
[cpPlugins.git] / appli / examples / example_View2DImage.cxx
index 4e7733b0ac3ebb4b58cfa0c4fb67dea3e03da9d4..cc8a3e6e1eb61869ef1ab76e7177a292f3fd92f9 100644 (file)
@@ -93,6 +93,12 @@ int main( int argc, char* argv[] )
   image_actors->AddInputData( image->GetVTK< vtkImageData >( ), 2 );
   image_actors->PushActorsInto( window );
 
+  // Activate seed widget
+  TSliceActors::TStyle* style =
+    dynamic_cast< TSliceActors::TStyle* >( image_actors->GetStyle( ) );
+  if( style != NULL )
+    style->SeedWidgetOn( );
+
   // Begin interaction
   renderer->ResetCamera( );
   window->Render( );