MantisBT - VTK
View Issue Details
0004001VTK(No Category)public2006-10-30 15:052016-08-12 09:54
Sean McBride 
Clinton Stimpson 
lowmajoralways
closedmoved 
 
 
0004001: vtk uses deprecated functions in its Carbon support, must remove
vtk uses several deprecated APIs in vtkCarbonRenderWindow.cxx. They are:

NewRgn(), DiffRgn(), EqualRgn(), DisposeRgn()

This generates warnings on several build machines, such as:

http://www.vtk.org/Testing/Sites/atlantis.kitware/Darwin-i386-Xcode-Debug/20061030-0845-Experimental/BuildWarning.html [^]

But this issue is bigger than simple compiler warnings.

These functions are deprecated, which means that they will eventually be removed from the OS.

Because of my NDA with Apple I cannot really say more, except that I suggest vtk stop using any and all deprecated APIs. :)
No tags attached.
txt deprecated.txt (1,201) 2009-01-12 11:09
https://www.vtk.org/Bug/file/6988/deprecated.txt
Issue History
2007-10-18 13:23Sean McBrideAssigned ToMathieu Malaterre => Clinton Stimpson
2007-10-18 13:25Sean McBrideNote Edited: 0005608
2007-11-03 22:04Sean McBrideNote Added: 0009627
2007-11-03 22:04Sean McBrideDescription Updated
2009-01-12 11:09Sean McBrideNote Added: 0014531
2009-01-12 11:09Sean McBrideFile Added: deprecated.txt
2009-01-12 13:02Clinton StimpsonNote Added: 0014533
2009-01-12 13:06Sean McBrideNote Added: 0014534
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036892
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0005607)
Clinton Stimpson   
2006-10-30 15:13   
And when targeting 10.4, Apple said you have to live with those warnings, and there is no way around it, as the Apple AGL api depends on QuickDraw, until 10.5.

10.5 provides a new aglSetHIViewRef() which would replace the dependency on QuickDraw.
(0005608)
Sean McBride   
2006-10-30 15:18   
(edited on: 2007-10-18 13:25)
See also:
http://lists.apple.com/archives/mac-opengl/2006/Oct/msg00010.html [^]

Since vtk should support 10.4 for the foreseeable future, the code must be changed to use the new APIs conditionally, like so:

#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
  new APIs
#else
  old QD APIs
#endif

(0009627)
Sean McBride   
2007-11-03 22:04   
For the record, AGL is not available to 64 bit processes, see:

http://developer.apple.com/documentation/Carbon/Conceptual/Carbon64BitGuide/OtherAPIChanges/chapter_6_section_4.html#//apple_ref/doc/uid/TP40004381-CH5-DontLinkElementID_31 [^]
(0014531)
Sean McBride   
2009-01-12 11:09   
Clinton, can you review this partial patch?
(0014533)
Clinton Stimpson   
2009-01-12 13:02   
That patch looks correct to me. Thanks. My main Mac is still on 10.4.
(0014534)
Sean McBride   
2009-01-12 13:06   
/cvsroot/VTK/VTK/Rendering/vtkCarbonRenderWindow.cxx,v <-- vtkCarbonRenderWindow.cxx
new revision: 1.75; previous revision: 1.74
(0036892)
Kitware Robot   
2016-08-12 09:54   
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.