22 return (pos - other.
pos).length() < 0.001f;
29 std::vector<std::pair<int, int>>
edges;
37 std::vector<int> find_path(
int from,
int to);
45 bool is_enabled()
const;
47 bool display_mouse_picked_tooltip()
const;
48 bool manipulating()
const;
55 float calculate_area(std::vector<float3>
points);
68 std::function<void(std::string)> log_function = [](
std::string) {};
69 std::function<bool()> is_metric = [](){
return true; };
80 bool dragging_measurement_point =
false;
81 int dragging_point_index = -1;
82 bool measurement_point_hovered =
false;
83 bool measurement_active =
false;
84 int hovered_edge_id = -1;
85 int last_hovered_point = -1;
86 int current_hovered_point = -1;
93 bool mouse_down =
false;
94 bool prev_mouse_down =
false;
96 double selection_started = 0.0;
99 float click_time = 0.f;
std::vector< std::pair< int, int > > edges
std::deque< measurement_state > state_history
std::vector< interest_point > points
GLsizei const GLchar *const * string
GLsizei GLsizei GLfloat distance
interest_point selection_point
std::vector< std::vector< int > > polygons
bool operator==(const measurement_state &other) const
GLint GLsizei GLsizei height
bool operator==(const interest_point &other) const
float clamp(float x, float min, float max)