Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Go to the source code of this file.
Functions | |
void | CheckRWSize (int width, int height) |
int | mitkVTKRenderWindowSizeTest (int, char *[]) |
void CheckRWSize | ( | int | width, |
int | height | ||
) |
Definition at line 22 of file mitkVTKRenderWindowSizeTest.cpp.
References MITK_TEST_CONDITION, MITK_TEST_OUTPUT, and mitk::New().
Referenced by mitkVTKRenderWindowSizeTest().
int mitkVTKRenderWindowSizeTest | ( | int | , |
char * | [] | ||
) |
Check if a patch to VTK is applied as in http://paraview.org/Bug/view.php?id=14122
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().