[Paraview] FullScreen and No Boraders

周恒众 zhz1993622 at 163.com
Mon Aug 3 04:48:27 EDT 2015


    
        I want to ask some question about VTK. Now I want to create a renderwindow without borders and full of screen . I write code like this:
  vtkSmartPointer<vtkSphereSource> sphereSource =
    vtkSmartPointer<vtkSphereSource>::New();


  vtkSmartPointer<vtkPolyDataMapper> mapper =
    vtkSmartPointer<vtkPolyDataMapper>::New();
  mapper->SetInputConnection(sphereSource->GetOutputPort());


  vtkSmartPointer<vtkActor> actor =
    vtkSmartPointer<vtkActor>::New();
  actor->SetMapper(mapper);


  vtkSmartPointer<vtkRenderer> renderer =
    vtkSmartPointer<vtkRenderer>::New();
  vtkSmartPointer<vtkRenderWindow> renderWindow =
    vtkSmartPointer<vtkRenderWindow>::New();
  renderWindow->AddRenderer(renderer);
  vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =
    vtkSmartPointer<vtkRenderWindowInteractor>::New();
  renderWindowInteractor->SetRenderWindow(renderWindow);


  renderer->AddActor(actor);
  
  renderWindow->BordersOff();
  renderWindow->SetFullScreen(true);


  renderWindow->Render();
  renderWindowInteractor->Start();


        But when I run this program . The renderwindow also have borders. How can I do to make the renderwindow without borders . Thank you for your help.
                                                                                                                                                                                                                                                                                        zhz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150803/a34ff2b6/attachment.html>


More information about the ParaView mailing list