44 void render(
const glm::vec2 &fb_size,
const State &state,
const View &view);
Handles rendering of the graph and scatter plot and handles IO.
void render(const glm::vec2 &fb_size, const State &state, const View &view)
Render graph and scatterplot.
void stop_cursor_radius()
void check_pressed_vertex(const View &view, glm::vec2 mouse_pos)
Check whether the vertex was pressed and set flags.
void add_vert(State &state, View &view, glm::vec2 mouse_pos)
GraphRenderer graph_renderer
ScatterRenderer scatter_renderer
void draw_cursor_radius(const View &v, glm::vec2 mouse_pos, float r)
bool is_active_multiselect()
std::vector< size_t > get_landmarks_within_circle(const View &view, const glm::vec2 &pos, float radius, const LandmarkModel &landmarks)
void start_multiselect(glm::vec2 mouse_pos)
void move_vert(State &state, View &view, glm::vec2 mouse_pos)
void remove_vert(State &state)
void reset_pressed_vert()
bool is_passive_multiselect()
void move_selection(glm::vec2 mouse_pos, LandmarkModel &landmarks)
void update_multiselect(glm::vec2 mouse_pos, const LandmarkModel &model)
bool is_brushing_active()
bool check_pressed_rect(glm::vec2 mouse_pos)
A small utility class that manages the viewport coordinates, together with the virtual "camera" posit...
Renderer of the 2D landmark graph.
Model of the high- and low-dimensional landmarks.
Renderer of the 2D data points.
Storage of data of used algorithms and input events.
Renderer of the objects that are needed in the user interaction with the dataset.
bool is_brushing_active
If the brushing is active.