Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
QHyodaIceT.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_ICE_T_H
8#define Q_HYODA_ICE_T_H
9
10#include <QVector4D>
11#include <QVector2D>
12#include <QOpenGLWidget>
13#include <QWheelEvent>
14class QHyoda;
15
16class QHyodaIceT : public QOpenGLWidget{
17 Q_OBJECT
18public:
19 QHyodaIceT(QWidget*);
21public:
22 void sxyz(double*);
23 void setPov(QVector4D);
24 void setImage(QImage*);
25 void saveGLState();
26 void restoreGLState();
27protected:
28 void initializeGL() Q_DECL_OVERRIDE;
29 void resizeGL(int,int) Q_DECL_OVERRIDE;
30 void paintGL() Q_DECL_OVERRIDE;
31protected:
32 void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
33 void mouseMoveEvent(QMouseEvent *) Q_DECL_OVERRIDE;
34 void wheelEvent(QWheelEvent *) Q_DECL_OVERRIDE;
35private:
36 QWidget *parent;
37 QVector2D mouse;
38 QVector4D pov;
39 QImage *image;
40 GLuint texture;
41};
42
43#endif // Q_HYODA_ICE_T_H