#include <measurement.h>
Classes | |
struct | mouse_control |
Public Member Functions | |
void | add_point (interest_point p) |
std::string | area_to_string (float area) |
float | calculate_area (std::vector< float3 > points) |
void | commit_state () |
void | disable () |
bool | display_mouse_picked_tooltip () const |
void | draw (ux_window &win) |
void | draw_label (ux_window &win, float3 pos, float distance, int height, bool is_area=false) |
void | draw_ruler (ux_window &win, float3 from, float3 to, float height, int selected) |
void | enable () |
bool | is_enabled () const |
std::string | length_to_string (float distance) |
bool | manipulating () const |
void | mouse_pick (ux_window &win, float3 picked, float3 normal) |
rs2::float2 | project_to_2d (rs2::float3 pos) |
void | restore_state () |
void | show_tooltip (ux_window &win) |
void | update_input (ux_window &win, const rs2::rect &viewer_rect) |
Public Attributes | |
std::function< bool()> | is_metric = [](){ return true; } |
std::function< void(std::string)> | log_function = [](std::string) {} |
Private Member Functions | |
int | edge_hovered (ux_window &win) |
int | point_hovered (ux_window &win) |
Private Attributes | |
float3 | _normal |
float3 | _picked |
int | current_hovered_point = -1 |
bool | dragging_measurement_point = false |
int | dragging_point_index = -1 |
int | hovered_edge_id = -1 |
int | id = 0 |
mouse_control | input_ctrl |
int | last_hovered_point = -1 |
bool | measurement_active = false |
bool | measurement_point_hovered = false |
temporal_event | mouse_picked_event { std::chrono::milliseconds(1000) } |
interest_point | selection_point |
measurement_state | state |
std::deque< measurement_state > | state_history |
Definition at line 40 of file measurement.h.
void measurement< T >::add_point | ( | interest_point | p | ) |
Definition at line 73 of file measurement.cpp.
std::string measurement< T >::area_to_string | ( | float | area | ) |
Definition at line 131 of file measurement.cpp.
float measurement< T >::calculate_area | ( | std::vector< float3 > | points | ) |
Definition at line 165 of file measurement.cpp.
void measurement< T >::commit_state | ( | ) |
Definition at line 406 of file measurement.cpp.
void measurement< T >::disable | ( | ) |
Definition at line 14 of file measurement.cpp.
bool measurement< T >::display_mouse_picked_tooltip | ( | ) | const |
Definition at line 22 of file measurement.cpp.
void measurement< T >::draw | ( | ux_window & | win | ) |
Definition at line 426 of file measurement.cpp.
void measurement< T >::draw_label | ( | ux_window & | win, |
float3 | pos, | ||
float | distance, | ||
int | height, | ||
bool | is_area = false |
||
) |
Definition at line 230 of file measurement.cpp.
void measurement< T >::draw_ruler | ( | ux_window & | win, |
float3 | from, | ||
float3 | to, | ||
float | height, | ||
int | selected | ||
) |
Definition at line 272 of file measurement.cpp.
|
private |
Definition at line 385 of file measurement.cpp.
void measurement< T >::enable | ( | ) |
Definition at line 10 of file measurement.cpp.
bool measurement< T >::is_enabled | ( | ) | const |
Definition at line 20 of file measurement.cpp.
std::string measurement< T >::length_to_string | ( | float | distance | ) |
Definition at line 136 of file measurement.cpp.
bool measurement< T >::manipulating | ( | ) | const |
Definition at line 26 of file measurement.cpp.
void measurement< T >::mouse_pick | ( | ux_window & | win, |
float3 | picked, | ||
float3 | normal | ||
) |
Definition at line 312 of file measurement.cpp.
|
private |
Definition at line 361 of file measurement.cpp.
rs2::float2 measurement< T >::project_to_2d | ( | rs2::float3 | pos | ) |
Definition at line 213 of file measurement.cpp.
void measurement< T >::restore_state | ( | ) |
Definition at line 415 of file measurement.cpp.
void measurement< T >::show_tooltip | ( | ux_window & | win | ) |
Definition at line 660 of file measurement.cpp.
void measurement< T >::update_input | ( | ux_window & | win, |
const rs2::rect & | viewer_rect | ||
) |
Definition at line 328 of file measurement.cpp.
|
private |
Definition at line 89 of file measurement.h.
|
private |
Definition at line 89 of file measurement.h.
|
private |
Definition at line 86 of file measurement.h.
|
private |
Definition at line 80 of file measurement.h.
|
private |
Definition at line 81 of file measurement.h.
|
private |
Definition at line 84 of file measurement.h.
|
private |
Definition at line 103 of file measurement.h.
|
private |
Definition at line 102 of file measurement.h.
std::function<bool()> rs2::measurement::is_metric = [](){ return true; } |
Definition at line 69 of file measurement.h.
|
private |
Definition at line 85 of file measurement.h.
std::function<void(std::string)> rs2::measurement::log_function = [](std::string) {} |
Definition at line 68 of file measurement.h.
|
private |
Definition at line 83 of file measurement.h.
|
private |
Definition at line 82 of file measurement.h.
|
private |
Definition at line 88 of file measurement.h.
|
private |
Definition at line 75 of file measurement.h.
|
private |
Definition at line 77 of file measurement.h.
|
private |
Definition at line 78 of file measurement.h.