[vtkusers] imageViewer size within QVTKWidget

mbcx9rb9 richard.j.brown at live.co.uk
Fri Nov 28 06:46:12 EST 2014


I am creating a DICOM viewer, which works fine on my Mac Thunderbolt display
but on my Macbook Pro 15" screen, the ImageViewer only fills the bottom
~quarter of the QVTKWidget. The relevant part of my code looks like this:

*    imageViewer->SetInputConnection(reader->GetOutputPort());
    imageViewer->SetRenderWindow(qvtk->GetRenderWindow());
    imageViewer->Render();
    qvtk->show();*

I also get these errors showing, but they do not cause the program to crash
(and only display for the first object I render for each run of the
program):

*ERROR: In
/Users/CRCT_Richard/Downloads/VTK-6.1.0/Rendering/OpenGL/vtkOpenGLRenderer.cxx,
line 1202
vtkOpenGLRenderer (0x10b284b60): failed after Clear 1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation


ERROR: In
/Users/CRCT_Richard/Downloads/VTK-6.1.0/Rendering/OpenGL/vtkOpenGLImageSliceMapper.cxx,
line 574
vtkOpenGLImageSliceMapper (0x10b280be0): failed after RenderPolygon 1 OpenGL
errors detected
  0 : (1286) Invalid framebuffer operation


ERROR: In
/Users/CRCT_Richard/Downloads/VTK-6.1.0/Rendering/OpenGL/vtkOpenGLImageSliceMapper.cxx,
line 574
vtkOpenGLImageSliceMapper (0x10b280be0): failed after RenderPolygon 1 OpenGL
errors detected
  0 : (1286) Invalid framebuffer operation*

Not sure if the two errors are linked, but any help would be appreciated.
Thanks



--
View this message in context: http://vtk.1045678.n5.nabble.com/imageViewer-size-within-QVTKWidget-tp5729578.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list