[Paraview] FullScreen and No Boraders
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Mon Aug 3 07:55:19 EDT 2015
> renderWindow->BordersOff();
> renderWindow->SetFullScreen(true);
That should have done the trick. Try moving this code to right after
the RenderWIndow is created i.e. after
vtkSmartPointer<vtkRenderWindow>::New(); (more specifically, before
the RenderWindowInteractor is setup). If I remember correctly, the
setting up of the interactor does affect the render window state.
Utkarsh
On Mon, Aug 3, 2015 at 4:48 AM, 周恒众 <zhz1993622 at 163.com> wrote:
>
> 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->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
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
More information about the ParaView
mailing list