Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVTKRenderWindowSizeTest.cpp File Reference
#include <vtkRenderWindow.h>
#include <vtkSmartPointer.h>
#include "mitkTestingMacros.h"

Go to the source code of this file.


void CheckRWSize (int width, int height)
int mitkVTKRenderWindowSizeTest (int, char *[])

Function Documentation

void CheckRWSize ( int  width,
int  height 
int mitkVTKRenderWindowSizeTest ( int  ,
char *  [] 

Check if a patch to VTK is applied as in

Bug description from there:

" After moving over to Visual Studio 2012, we found a strange problem where vtkRenderWindow GetSize() returns something different than what was provided to SetSize(). Specifically, width and height are 8 pixels less than expected. I found a problem report which appears to describe what we are seeing. The problem goes away if we change the desktop theme to Windows Classic. "

the patch from this bug should be applied to MITK's default VTK version.

Test can be removed with VTK 6.

Definition at line 54 of file mitkVTKRenderWindowSizeTest.cpp.

References CheckRWSize(), MITK_TEST_BEGIN(), and MITK_TEST_END().