File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 50
50
#include < vtkObjectFactory.h>
51
51
#include < vtkSmartPointer.h>
52
52
53
+ namespace cv { namespace viz {
54
+ vtkSmartPointer<vtkRenderWindowInteractor> vtkCocoaRenderWindowInteractorNew ();
55
+ }} // namespace
56
+
57
+ #if ((VTK_MAJOR_VERSION < 6) || ((VTK_MAJOR_VERSION == 6) && (VTK_MINOR_VERSION < 2)))
58
+
59
+
53
60
// ----------------------------------------------------------------------------
54
61
@interface vtkCocoaServerFix : NSObject
55
62
{
@@ -175,8 +182,6 @@ - (void)windowWillClose:(NSNotification*)aNotification
175
182
};
176
183
177
184
vtkStandardNewMacro (vtkCocoaRenderWindowInteractorFix)
178
-
179
- vtkSmartPointer<vtkRenderWindowInteractor> vtkCocoaRenderWindowInteractorNew ();
180
185
}}
181
186
182
187
void cv::viz::vtkCocoaRenderWindowInteractorFix::Start ()
@@ -209,3 +214,13 @@ - (void)windowWillClose:(NSNotification*)aNotification
209
214
{
210
215
return vtkSmartPointer<vtkCocoaRenderWindowInteractorFix>::New ();
211
216
}
217
+
218
+
219
+ #else
220
+
221
+ vtkSmartPointer<vtkRenderWindowInteractor> cv::viz::vtkCocoaRenderWindowInteractorNew ()
222
+ {
223
+ return vtkSmartPointer<vtkCocoaRenderWindowInteractor>::New ();
224
+ }
225
+
226
+ #endif
You can’t perform that action at this time.
0 commit comments