MantisBT - VTK
View Issue Details
0007818VTK(No Category)public2008-10-15 21:012012-06-19 22:06
Clinton Stimpson 
Sean McBride 
normalminorhave not tried
closedfixed 
 
 
0007818: better mapping of cocoa concepts to vtk concepts

Assuming VTK uses the same concept as X11 and Win32 in their api (which is very likely), I suggest mapping these concepts for Cocoa...

NSView -- VTK WindowId
n/a -- VTK DisplayId
NSWindow -- new VTK concept, or keep it in Cocoa/Carbon implementations. Its possible for the code to get an NSWindow from an NSView, so one shouldn't be required to provide that info to vtkCocoaRenderWindow.

No tags attached.
txt VTK-bug-7818-patch.txt (18,086) 2009-02-10 18:55
https://www.vtk.org/Bug/file/7045/VTK-bug-7818-patch.txt
patch qt-cocoa.patch (1,198) 2009-02-11 13:10
https://www.vtk.org/Bug/file/7050/qt-cocoa.patch
Issue History
2008-10-15 21:01Clinton StimpsonNew Issue
2008-10-15 21:01Clinton StimpsonStatusbacklog => tabled
2008-10-15 21:01Clinton StimpsonAssigned To => Sean McBride
2008-10-16 10:03Sean McBrideNote Added: 0013893
2009-02-10 18:55Sean McBrideFile Added: VTK-bug-7818-patch.txt
2009-02-10 18:56Sean McBrideNote Added: 0014888
2009-02-11 12:39Clinton StimpsonNote Added: 0014897
2009-02-11 12:57Sean McBrideNote Added: 0014898
2009-02-11 13:10Clinton StimpsonFile Added: qt-cocoa.patch
2009-02-11 13:10Clinton StimpsonNote Added: 0014899
2009-08-14 13:03Sean McBrideNote Added: 0017134
2009-08-14 13:08Clinton StimpsonNote Added: 0017135
2011-01-13 17:00Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2012-06-19 22:06Clinton StimpsonNote Added: 0028704
2012-06-19 22:06Clinton StimpsonStatusbacklog => closed
2012-06-19 22:06Clinton StimpsonResolutionopen => fixed

Notes
(0013893)
Sean McBride   
2008-10-16 10:03   
See also vtkdev thread titled "vtkCocoaRenderWindow qq" on 2008-10-01.
(0014888)
Sean McBride   
2009-02-10 18:56   
Clinton, attached is a patch. Care to give it a try?

It changes:

WindowId -> RootWindow
DispayId -> WindowId
(0014897)
Clinton Stimpson   
2009-02-11 12:39   
tested with paraview and it worked fine. Let me know when you commit it, so I can update the Qt code at the same time.

Also, don't forget to update Common/vtkJavaAwt.h and replace SetDisplayId with SetWindowId.
(0014898)
Sean McBride   
2009-02-11 12:57   
Clinton, yes I missed vtkJavaAwt.h, thanks!

Could you add a patch with the necessary Qt code to this bug? Then I can create a mega patch. :) Also, it lets us both test the same changes locally for a while.
(0014899)
Clinton Stimpson   
2009-02-11 13:10   
I've uploaded a patch for changes on the Qt side.
(0017134)
Sean McBride   
2009-08-14 13:03   
/cvsroot/VTK/VTK/Common/vtkJavaAwt.h,v <-- Common/vtkJavaAwt.h
new revision: 1.27; previous revision: 1.26
/cvsroot/VTK/VTK/Examples/GUI/Cocoa/BasicVTKView.mm,v <-- Examples/GUI/Cocoa/BasicVTKView.mm
new revision: 1.6; previous revision: 1.5
/cvsroot/VTK/VTK/Rendering/vtkCocoaRenderWindow.h,v <-- Rendering/vtkCocoaRenderWindow.h
new revision: 1.40; previous revision: 1.39
/cvsroot/VTK/VTK/Rendering/vtkCocoaRenderWindow.mm,v <-- Rendering/vtkCocoaRenderWindow.mm
new revision: 1.67; previous revision: 1.66
/cvsroot/VTK/VTK/Rendering/vtkCocoaRenderWindowInteractor.mm,v <-- Rendering/vtkCocoaRenderWindowInteractor.mm
new revision: 1.28; previous revision: 1.27
(0017135)
Clinton Stimpson   
2009-08-14 13:08   
Removed all Cocoa specific code in #ifdefs.
/cvsroot/VTK/VTK/GUISupport/Qt/QVTKWidget.cxx,v <-- QVTKWidget.cxx
new revision: 1.44; previous revision: 1.43
(0028704)
Clinton Stimpson   
2012-06-19 22:06   
Already fixed a while back.