Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
QHyodaGL.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7#ifndef Q_HYODA_GL_H
8#define Q_HYODA_GL_H
9
10#include <QVector4D>
11#include <QVector2D>
12#include <QOpenGLWidget>
13#include <QWheelEvent>
14
15class QHyodaGL: public QOpenGLWidget{
16 Q_OBJECT
17public:
18 explicit QHyodaGL(QWidget* = 0);
19 ~QHyodaGL(){}
20 virtual void draw() const =0;
21protected:
22 void initializeGL() Q_DECL_OVERRIDE;
23 void resizeGL(int,int) Q_DECL_OVERRIDE;
24 void paintGL() Q_DECL_OVERRIDE;
25protected:
26 void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
27 void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
28 void wheelEvent(QWheelEvent*) Q_DECL_OVERRIDE;
29public:
30 QVector2D mouse;
31 QVector4D pov;
32};
33
34#endif // Q_HYODA_GL_H