View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009087VTK(No Category)public2009-06-01 08:202016-08-12 09:55
ReporterFrançois Bertel 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0009087: No interaction in X11 Fullscreen mode
DescriptionThe interaction does not work if the renderwindow is set to fullscreen on X11.

The problem was first reported on the vtkusers list:
http://www.vtk.org/pipermail/vtkusers/2009-June/101148.html [^]

I have been able to reproduce it with the following minimal code. There are
4 lines where we attempt to call FullScreenOn(). Each of them is called
once in 4 different tests. The first 3 FullScreenOn calls don't show the issue.

Call 1 and 2 are canceled by the later call to SetSize().
Call 3 gives a fullscreen window with decoration and interaction.
Call 4 gives a fullscreen window without decoration and a black screen. We can see the mouse cursor moving. It shows there is no rendering because in the code, the background is set to a green color.

Tried on Ubuntu 9.04 x86_64 with nVidia Quadro FX 3600M, 512 MB, driver 180.44.


#include "vtkTestUtilities.h"
#include "vtkRegressionTestImage.h"

#include "vtkRenderWindowInteractor.h"
#include "vtkRenderWindow.h"
#include "vtkRenderer.h"
#include "vtkActor.h"

#include "vtkPolyDataMapper.h"

#include "vtkConeSource.h"

int TestFullScreen(int argc, char* argv[])
{
  vtkRenderWindowInteractor *iren=vtkRenderWindowInteractor::New();
  vtkRenderWindow *renWin = vtkRenderWindow::New();
// renWin->FullScreenOn(); // 1
  iren->SetRenderWindow(renWin);
// renWin->FullScreenOn(); // 2
  renWin->Delete();
  
  vtkRenderer *renderer = vtkRenderer::New();
  renWin->AddRenderer(renderer);
  renderer->Delete();

  vtkConeSource *coneSource=vtkConeSource::New();
  vtkPolyDataMapper *coneMapper=vtkPolyDataMapper::New();
  coneMapper->SetInputConnection(coneSource->GetOutputPort());
  coneSource->Delete();
  vtkActor *coneActor=vtkActor::New();
  coneActor->SetMapper(coneMapper);
  coneMapper->Delete();
  renderer->AddActor(coneActor);
  coneActor->Delete();
  
  renderer->SetBackground(0.1,0.3,0.0);
  renWin->SetSize(200,200); // SetSize override previous calls to FullScreenOn
// renWin->FullScreenOn(); // 3
  renWin->Render();
  renWin->FullScreenOn(); // 4
  
  int retVal = vtkRegressionTestImage( renWin );
  if ( retVal == vtkRegressionTester::DO_INTERACTOR)
    {
    iren->Start();
    }
  iren->Delete();
  
  return !retVal;
}
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0016598)
François Bertel (developer)
2009-06-01 08:21

Using VTK CVS.
(0037082)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2009-06-01 08:20 François Bertel New Issue
2009-06-01 08:21 François Bertel Note Added: 0016598
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:55 Kitware Robot Note Added: 0037082
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team