15 #ifndef QVTKOpenGLWidget_h 
   16 #define QVTKOpenGLWidget_h 
   18 #include "vtkGUISupportQtModule.h"  
   27 class QVTKInteractorAdapter;
 
   28 class QVTKOpenGLWindow;
 
   29 class vtkGenericOpenGLRenderWindow;
 
   30 class vtkRenderWindow;
 
   31 class vtkRenderWindowInteractor;
 
   90     Qt::WindowFlags f = Qt::WindowFlags());
 
   92     Qt::WindowFlags f = Qt::WindowFlags());
 
   94     QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
 
   95   QVTKOpenGLWidget(vtkGenericOpenGLRenderWindow* w, QOpenGLContext *shareContext,
 
   96     QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
 
  102   void SetRenderWindow(vtkGenericOpenGLRenderWindow* win);
 
  103   void SetRenderWindow(vtkRenderWindow* win);
 
  108   virtual vtkRenderWindow* GetRenderWindow();
 
  113   virtual vtkRenderWindowInteractor* GetInteractor();
 
  118   virtual QVTKInteractorAdapter* GetInteractorAdapter();
 
  125   static QSurfaceFormat defaultFormat();
 
  130   void setFormat(
const QSurfaceFormat& format);
 
  135   virtual void setEnableHiDPI(
bool enable);
 
  141   void setQVTKCursor(
const QCursor &cursor);
 
  147   virtual bool isValid();
 
  157   virtual bool testingEvent(QEvent* e);
 
  163   QImage grabFramebuffer();
 
  169   void mouseEvent(QMouseEvent* event);
 
  179   void widgetEvent(QEvent* e);
 
  185   void windowEvent(QEvent* event);
 
  188   virtual void resizeEvent(QResizeEvent* event) Q_DECL_OVERRIDE;
 
  189   virtual bool event(QEvent* e) Q_DECL_OVERRIDE;
 
  191   bool EnableHiDPI = 
true;