pqQVTKWidgetBase.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqQVTKWidgetBase_h
5 #define pqQVTKWidgetBase_h
6 
7 #if defined(__APPLE__)
8 // on macOS, we never use QVTKOpenGLStereoWidget, but always the
9 // QVTKOpenGLNativeWidget. QVTKOpenGLStereoWidget which uses `QWidget::createWindowContainer`
10 // is not portable and only needed when quad-buffer stereo is being used. Since
11 // macOS doesn't support quad-buffer stereo, there's no need to use the
12 // non-portable version.
13 #include "QVTKOpenGLNativeWidget.h"
14 using pqQVTKWidgetBase = QVTKOpenGLNativeWidget;
15 #define PARAVIEW_USING_QVTKOPENGLNATIVEWIDGET 1
16 #define PARAVIEW_USING_QVTKOPENGLSTEREOWIDGET 0
17 #else
18 #include "QVTKOpenGLStereoWidget.h"
19 using pqQVTKWidgetBase = QVTKOpenGLStereoWidget;
20 #define PARAVIEW_USING_QVTKOPENGLNATIVEWIDGET 0
21 #define PARAVIEW_USING_QVTKOPENGLSTEREOWIDGET 1
22 #endif
23 
24 #endif
QVTKOpenGLStereoWidget pqQVTKWidgetBase