ctkVTKOpenGLNativeWidget.h 2.1 KB

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