Tornado-Visualization/datenvisualisierung_sose2024/horizontalcontourlinesrenderer.h

25 lines
744 B
C
Raw Normal View History

2024-05-20 17:42:22 +00:00
#ifndef HORIZONTALCONTOURLINESRENDERER_H
#define HORIZONTALCONTOURLINESRENDERER_H
2024-06-11 11:02:20 +00:00
#include "horizontalslicetocontourlinemapper.h"
#include <QOpenGLShaderProgram>
#include <QOpenGLBuffer>
#include <QOpenGLVertexArrayObject>
2024-05-20 17:42:22 +00:00
class HorizontalContourLinesRenderer
{
public:
HorizontalContourLinesRenderer();
2024-06-11 11:02:20 +00:00
virtual ~HorizontalContourLinesRenderer();
void initOpenGLShaders();
void setContourMapper(HorizontalSliceToContourLineMapper *mappery);
void initContours();
void draw(QMatrix4x4 mvpMatrix);
private:
HorizontalSliceToContourLineMapper* mapper;
QOpenGLShaderProgram shaderProgram;
QOpenGLBuffer vertexBuffer;
QOpenGLVertexArrayObject vertexArrayObject;
2024-05-20 17:42:22 +00:00
};
#endif // HORIZONTALCONTOURLINESRENDERER_H