Renderer of the 2D data points.
More...
#include <scatter_renderer.h>
Renderer of the 2D data points.
Definition at line 34 of file scatter_renderer.h.
◆ ScatterRenderer()
| ScatterRenderer::ScatterRenderer |
( |
| ) |
|
◆ draw()
Draw event of the 2D data points.
Renders data points at given positions.
- Parameters
-
| v | View of the whole window. |
| m | Model that contains 2D coordinates. |
| colors | Data that contains colors of the points. |
Definition at line 43 of file scatter_renderer.cpp.
◆ init()
| void ScatterRenderer::init |
( |
| ) |
|
◆ prepare_data()
| void ScatterRenderer::prepare_data |
( |
size_t |
start_index, |
|
|
size_t |
points_size, |
|
|
const ScatterModel & |
model, |
|
|
const ColorData & |
colors |
|
) |
| |
|
private |
Prepare data to render scatterplot with colors.
Fill VBOs and VAO.
- Parameters
-
| model | Data source |
| colors | Source of the color data. |
Definition at line 76 of file scatter_renderer.cpp.
◆ shader
| Shader ScatterRenderer::shader |
|
private |
◆ texture_renderer
◆ VAO
| unsigned int ScatterRenderer::VAO |
|
private |
◆ VBO_col
| unsigned int ScatterRenderer::VBO_col |
|
private |
◆ VBO_pos
| unsigned int ScatterRenderer::VBO_pos |
|
private |
The documentation for this struct was generated from the following files: