Parallel Coordinate System with Time Series Data
Painter2D.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Shader.h"
4 
14 class Painter2D : protected QOpenGLFunctions
15 {
16 private:
17  QOpenGLVertexArrayObject vao;
18  QOpenGLBuffer vbo[2];
19 
20  std::vector<GLfloat> vertices;
21  std::vector<GLfloat> colors;
22 
23  Shader* shaders;
24 public:
25  Painter2D(Shader* shaders);
26  ~Painter2D();
27 
28  void drawLine(QVector2D point1, QVector2D point2, QVector3D color, float thickness, float alpha);
29  void drawLineStrip(std::vector<QVector2D> points, QVector3D color, float thickness, float alpha);
30  void drawBezier(QVector2D point1, QVector2D point2, QVector2D controlpoint1, QVector2D controlpoint2, QVector3D color, float thickness, float alpha);
31 
32 };
33 
A 2D painter.
Definition: Painter2D.h:15
~Painter2D()
Destructor.
Definition: Painter2D.cpp:29
Painter2D(Shader *shaders)
Constructor.
Definition: Painter2D.cpp:15
void drawLine(QVector2D point1, QVector2D point2, QVector3D color, float thickness, float alpha)
Draw line.
Definition: Painter2D.cpp:49
void drawLineStrip(std::vector< QVector2D > points, QVector3D color, float thickness, float alpha)
Draw line strip.
Definition: Painter2D.cpp:118
void drawBezier(QVector2D point1, QVector2D point2, QVector2D controlpoint1, QVector2D controlpoint2, QVector3D color, float thickness, float alpha)
Draw bezier.
Definition: Painter2D.cpp:184
A shader.
Definition: Shader.h:15