MantisBT - VTK
View Issue Details
0014122VTK(No Category)public2013-06-07 10:532013-07-22 19:35
Andy Kula 
David Cole 
normalminorhave not tried
closedfixed 
5.8.0 
6.0.0 
Kitware
incorrect functionality
0014122: vtkRenderWindow GetSize() returns unexpected results with VS2012 builds
From: Andy Kula [mailto:akula@sympatico.ca]
Sent: June-07-13 12:48 AM
To: 'Julien Jomier'; 'Joachim Pouderoux'
Cc: 'Yves Berquin'
Subject: FW: VERTIGO-949 Guided Biopsy image artifacts

Hi Julien,

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.

I wanted to check with you to see if this issue has been reported to you, and if you had planned to address it in VTK.

http://stackoverflow.com/questions/15936363/cant-understand-why-my-window-size-math-is-not-working-with-some-particular-com [^]

Thanks,
-Andy

From: Andy Kula [mailto:akula@sympatico.ca]
Sent: June-07-13 9:53 AM
To: 'Joachim Pouderoux'; 'Yves Berquin'
Cc: 'Julien Jomier'
Subject: RE: FW: VERTIGO-949 Guided Biopsy image artifacts

We are working with Win7-64b SP1 VS2012 Update 2.

-Andy

No tags attached.
Issue History
2013-06-07 10:53Andy KulaNew Issue
2013-06-07 11:13David ColeNote Added: 0030975
2013-06-07 11:13David ColeAssigned To => David Cole
2013-06-07 11:13David ColeStatusbacklog => tabled
2013-06-07 11:14David ColeNote Added: 0030976
2013-06-07 11:14David ColeStatustabled => customer review
2013-06-07 11:14David ColeResolutionopen => fixed
2013-06-07 11:14David ColeFixed in Version => 6.0.0
2013-07-22 19:35Dave DeMarleStatuscustomer review => closed

Notes
(0030975)
David Cole   
2013-06-07 11:13   
Is 5.8 the version of VTK you're using?

This problem was already fixed in this commit:

    http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=5f8b3c0c03c6ebc8accd6bb6cf6bff629b6370cb [^]

The fix is available in 'master' and in the VTK 6.0 release candidates.

If you look at the diff, it's very local and isolated, and it should be fairly easy to apply a similar change to your own build of an earlier VTK if you must continue using the older version.
(0030976)
David Cole   
2013-06-07 11:14   
See previous note for link to commit that fixes this