CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkVTKOpenGLNativeWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Library: CTK
4 
5  Copyright (c) Kitware Inc.
6 
7  Licensed under the Apache License, Version 2.0 (the "License");
8  you may not use this file except in compliance with the License.
9  You may obtain a copy of the License at
10 
11  http://www.apache.org/licenses/LICENSE-2.0.txt
12 
13  Unless required by applicable law or agreed to in writing, software
14  distributed under the License is distributed on an "AS IS" BASIS,
15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  See the License for the specific language governing permissions and
17  limitations under the License.
18 
19 =========================================================================*/
20 
21 #ifndef __ctkVTKOpenGLNativeWidget_h
22 #define __ctkVTKOpenGLNativeWidget_h
23 
24 #include "ctkVisualizationVTKWidgetsExport.h"
25 
26 #if CTK_USE_QVTKOPENGLWIDGET
27 # if CTK_HAS_QVTKOPENGLNATIVEWIDGET_H
28 # include <QVTKOpenGLNativeWidget.h>
29 # else
30 # include <QVTKOpenGLWidget.h>
31 # endif
32 #else
33 # include <QVTKWidget.h>
34 #endif
35 
37 #if CTK_USE_QVTKOPENGLWIDGET
38 # if CTK_HAS_QVTKOPENGLNATIVEWIDGET_H
39 class CTK_VISUALIZATION_VTK_WIDGETS_EXPORT ctkVTKOpenGLNativeWidget : public QVTKOpenGLNativeWidget
40 {
41  Q_OBJECT
42 public:
43  typedef QVTKOpenGLNativeWidget Superclass;
44  explicit ctkVTKOpenGLNativeWidget(QWidget* parent = 0) : Superclass(parent){}
45  virtual ~ctkVTKOpenGLNativeWidget(){}
46 private:
47  Q_DISABLE_COPY(ctkVTKOpenGLNativeWidget);
48 };
49 # else
50 class CTK_VISUALIZATION_VTK_WIDGETS_EXPORT ctkVTKOpenGLNativeWidget : public QVTKOpenGLWidget
51 {
52  Q_OBJECT
53 public:
54  typedef QVTKOpenGLWidget Superclass;
55  explicit ctkVTKOpenGLNativeWidget(QWidget* parent = 0) : Superclass(parent){}
56  virtual ~ctkVTKOpenGLNativeWidget(){}
57 private:
58  Q_DISABLE_COPY(ctkVTKOpenGLNativeWidget);
59 };
60 # endif
61 #else
62 class CTK_VISUALIZATION_VTK_WIDGETS_EXPORT ctkVTKOpenGLNativeWidget : public QVTKWidget
63 {
64  Q_OBJECT
65 public:
66  typedef QVTKWidget Superclass;
67  explicit ctkVTKOpenGLNativeWidget(QWidget* parent = 0) : Superclass(parent){}
69 private:
70  Q_DISABLE_COPY(ctkVTKOpenGLNativeWidget);
71 };
72 #endif
73 
74 #endif
ctkVTKOpenGLNativeWidget(QWidget *parent=0)