BlosSOM
Interactive dimensionality reduction on large datasets (EmbedSOM and FLOWER combined)
|
Handles rendering of the graph and scatter plot and handles IO. More...
#include <renderer.h>
Public Member Functions | |
Renderer () | |
bool | init () |
void | render (const glm::vec2 &fb_size, const State &state, const View &view) |
Render graph and scatterplot. More... | |
void | check_pressed_vertex (const View &view, glm::vec2 mouse_pos) |
Check whether the vertex was pressed and set flags. More... | |
void | reset_pressed_vert () |
bool | get_vert_pressed () |
size_t | get_vert_ind () |
void | add_vert (State &state, View &view, glm::vec2 mouse_pos) |
void | remove_vert (State &state) |
void | move_vert (State &state, View &view, glm::vec2 mouse_pos) |
void | start_multiselect (glm::vec2 mouse_pos) |
bool | is_active_multiselect () |
bool | is_passive_multiselect () |
void | update_multiselect (glm::vec2 mouse_pos, const LandmarkModel &model) |
void | reset_multiselect () |
void | stop_multiselect () |
bool | check_pressed_rect (glm::vec2 mouse_pos) |
bool | get_rect_pressed () |
void | move_selection (glm::vec2 mouse_pos, LandmarkModel &landmarks) |
void | start_brushing () |
bool | is_brushing_active () |
void | stop_brushing () |
void | draw_cursor_radius (const View &v, glm::vec2 mouse_pos, float r) |
void | stop_cursor_radius () |
std::vector< size_t > | get_landmarks_within_circle (const View &view, const glm::vec2 &pos, float radius, const LandmarkModel &landmarks) |
Private Attributes | |
ScatterRenderer | scatter_renderer |
GraphRenderer | graph_renderer |
UiRenderer | ui_renderer |
Handles rendering of the graph and scatter plot and handles IO.
Definition at line 32 of file renderer.h.
Renderer::Renderer | ( | ) |
Definition at line 26 of file renderer.cpp.
Definition at line 83 of file renderer.cpp.
bool Renderer::check_pressed_rect | ( | glm::vec2 | mouse_pos | ) |
Definition at line 150 of file renderer.cpp.
void Renderer::check_pressed_vertex | ( | const View & | view, |
glm::vec2 | mouse_pos | ||
) |
Check whether the vertex was pressed and set flags.
view | |
mouse | |
vert_ind |
Definition at line 54 of file renderer.cpp.
void Renderer::draw_cursor_radius | ( | const View & | v, |
glm::vec2 | mouse_pos, | ||
float | r | ||
) |
Definition at line 162 of file renderer.cpp.
std::vector< size_t > Renderer::get_landmarks_within_circle | ( | const View & | view, |
const glm::vec2 & | pos, | ||
float | radius, | ||
const LandmarkModel & | landmarks | ||
) |
Definition at line 168 of file renderer.cpp.
|
inline |
size_t Renderer::get_vert_ind | ( | ) |
bool Renderer::get_vert_pressed | ( | ) |
bool Renderer::init | ( | ) |
Definition at line 29 of file renderer.cpp.
bool Renderer::is_active_multiselect | ( | ) |
|
inline |
bool Renderer::is_passive_multiselect | ( | ) |
void Renderer::move_selection | ( | glm::vec2 | mouse_pos, |
LandmarkModel & | landmarks | ||
) |
Definition at line 156 of file renderer.cpp.
Definition at line 104 of file renderer.cpp.
void Renderer::remove_vert | ( | State & | state | ) |
Definition at line 94 of file renderer.cpp.
Render graph and scatterplot.
state | |
view |
Definition at line 42 of file renderer.cpp.
void Renderer::reset_multiselect | ( | ) |
void Renderer::reset_pressed_vert | ( | ) |
|
inline |
void Renderer::start_multiselect | ( | glm::vec2 | mouse_pos | ) |
Definition at line 113 of file renderer.cpp.
|
inline |
|
inline |
void Renderer::stop_multiselect | ( | ) |
void Renderer::update_multiselect | ( | glm::vec2 | mouse_pos, |
const LandmarkModel & | model | ||
) |
Definition at line 131 of file renderer.cpp.
|
private |
Definition at line 96 of file renderer.h.
|
private |
Definition at line 95 of file renderer.h.
|
private |
Definition at line 97 of file renderer.h.