Parallel Coordinate System with Time Series Data
QtOpenGLWidget.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QtWidgets/QWidget>
4 #include <QtOpenGL>
5 #include "Painter2D.h"
6 #include "Calendar.h"
7 #include "PCSystem.h"
8 #include "Multilist.h"
9 
19 class QtOpenGLWidget : public QOpenGLWidget, protected QOpenGLFunctions
20 {
21  Q_OBJECT
22 
23 private:
24  int resX, resY;
25 public:
26  QtOpenGLWidget(PCSystem* pcSystem, QWidget *parent = 0);
28 
30  Painter2D* painter2D; //for implementing our own stuff
31  QPainter* qPainter; //using already graphics stuff of QT
32 
34  QSlider* timeSlider;
35  int tmp = 0;
36 protected:
37  void initializeGL() Q_DECL_OVERRIDE;
38  void resizeGL(int w, int h) Q_DECL_OVERRIDE;
39  void paintGL() Q_DECL_OVERRIDE;
40  void mouseMoveEvent(QMouseEvent* e) Q_DECL_OVERRIDE;
41  void mousePressEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
42  void mouseReleaseEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
43 
44 };
A PC system. Representing all parts of the Parallel Coordinate System including VP_Widgets,...
Definition: PCSystem.h:18
A 2D painter.
Definition: Painter2D.h:15
A qt open gl widget.
Definition: QtOpenGLWidget.h:20
PCSystem * pcSystem
Definition: QtOpenGLWidget.h:33
QSlider * timeSlider
Definition: QtOpenGLWidget.h:34
void mouseMoveEvent(QMouseEvent *e) Q_DECL_OVERRIDE
Mouse move event.
Definition: QtOpenGLWidget.cpp:108
Painter2D * painter2D
Definition: QtOpenGLWidget.h:30
QtOpenGLWidget(PCSystem *pcSystem, QWidget *parent=0)
Constructor.
Definition: QtOpenGLWidget.cpp:16
Shader * shaders
Definition: QtOpenGLWidget.h:29
QPainter * qPainter
Definition: QtOpenGLWidget.h:31
int tmp
Definition: QtOpenGLWidget.h:35
void initializeGL() Q_DECL_OVERRIDE
Initializes the gl.
Definition: QtOpenGLWidget.cpp:53
~QtOpenGLWidget()
Destructor.
Definition: QtOpenGLWidget.cpp:39
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE
Mouse release event.
Definition: QtOpenGLWidget.cpp:139
void resizeGL(int w, int h) Q_DECL_OVERRIDE
Resize gl.
Definition: QtOpenGLWidget.cpp:76
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE
Mouse press event.
Definition: QtOpenGLWidget.cpp:124
void paintGL() Q_DECL_OVERRIDE
Paints the gl.
Definition: QtOpenGLWidget.cpp:89
A shader.
Definition: Shader.h:15