Renderer of the objects that are needed in the user interaction with the dataset.
More...
#include <ui_renderer.h>
Renderer of the objects that are needed in the user interaction with the dataset.
Definition at line 35 of file ui_renderer.h.
◆ UiRenderer()
UiRenderer::UiRenderer |
( |
| ) |
|
◆ draw()
void UiRenderer::draw |
( |
const View & |
v | ) |
|
◆ init()
bool UiRenderer::init |
( |
| ) |
|
◆ is_rect_pressed()
bool UiRenderer::is_rect_pressed |
( |
glm::vec2 |
mouse_pos | ) |
|
◆ is_within_circle()
bool UiRenderer::is_within_circle |
( |
const glm::vec2 & |
vert, |
|
|
const glm::vec2 & |
pos, |
|
|
float |
radius |
|
) |
| |
◆ is_within_rect()
bool UiRenderer::is_within_rect |
( |
glm::vec2 |
point | ) |
const |
|
private |
◆ move_selection()
void UiRenderer::move_selection |
( |
glm::vec2 |
mouse_pos, |
|
|
LandmarkModel & |
landmarks |
|
) |
| |
◆ prepare_circle()
void UiRenderer::prepare_circle |
( |
float |
current_zoom | ) |
|
|
private |
◆ prepare_data()
void UiRenderer::prepare_data |
( |
float |
current_zoom | ) |
|
|
private |
◆ prepare_rectangle()
void UiRenderer::prepare_rectangle |
( |
| ) |
|
|
private |
Prepare rectangle data used for multiselect.
Definition at line 182 of file ui_renderer.cpp.
◆ set_rect_end_point()
void UiRenderer::set_rect_end_point |
( |
glm::vec2 |
mouse_pos, |
|
|
const LandmarkModel & |
model |
|
) |
| |
◆ set_rect_start_point()
void UiRenderer::set_rect_start_point |
( |
glm::vec2 |
mouse_pos | ) |
|
◆ should_draw_circle()
void UiRenderer::should_draw_circle |
( |
const View & |
view, |
|
|
glm::vec2 |
mouse_pos, |
|
|
float |
r |
|
) |
| |
◆ circle_pos
glm::vec2 UiRenderer::circle_pos |
|
private |
◆ circle_radius
float UiRenderer::circle_radius |
|
private |
◆ draw_circle
bool UiRenderer::draw_circle |
◆ draw_rect
bool UiRenderer::draw_rect |
◆ EBO_r
unsigned int UiRenderer::EBO_r |
|
private |
◆ is_brushing_active
bool UiRenderer::is_brushing_active |
◆ max_diff_x
float UiRenderer::max_diff_x |
|
private |
◆ max_diff_y
float UiRenderer::max_diff_y |
|
private |
◆ min_diff_x
float UiRenderer::min_diff_x |
|
private |
◆ min_diff_y
float UiRenderer::min_diff_y |
|
private |
◆ num_all_vtxs_circle
int UiRenderer::num_all_vtxs_circle |
|
private |
◆ rect_indices
const std::array<unsigned int, 6> UiRenderer::rect_indices |
|
private |
◆ rect_pressed
bool UiRenderer::rect_pressed |
◆ rect_vtxs
std::array<glm::vec2, 4> UiRenderer::rect_vtxs |
|
private |
◆ selected_landmarks
std::vector<size_t> UiRenderer::selected_landmarks |
|
private |
◆ shader_c
◆ shader_r
◆ update_rect_pos
bool UiRenderer::update_rect_pos |
◆ VAO_c
unsigned int UiRenderer::VAO_c |
|
private |
◆ VAO_r
unsigned int UiRenderer::VAO_r |
|
private |
◆ VBO_c
unsigned int UiRenderer::VBO_c |
|
private |
◆ VBO_r
unsigned int UiRenderer::VBO_r |
|
private |
The documentation for this struct was generated from the following files: