4 #include <opencv2/core.hpp>
22 #pragma region constructors
28 #pragma endregion constructors
34 operator double()
const{
35 return atan2(m_vertex.y - m_pointA.y, m_vertex.x - m_pointA.x);
52 void paint(
const cv::Mat&);
53 void onMouseMove(
const gui_point_t&);
54 void onMouseDown(
const gui_point_t&);
55 void onMouseUp(
const gui_point_t&);
56 void setMouseOver(
bool mouseOver);
57 void defineContours();
59 Point m_vertex, m_pointA, m_pointB;
Widget that represents a point.
Definition: Point.hpp:13
virtual void setPosition(gui_point_t position)
Moves the widget.
bool operator==(const Angle &b)
Checks if 2 contours are equal.
Definition: Angle.hpp:39
Widget that represents an angle between 2 points.
Definition: Angle.hpp:16
Angle()
Default constructor. Creates an undefined angle.
bool operator!=(const Angle &b)
Checks if 2 contours are different.
Definition: Angle.hpp:46
static Angle UNDEFINED
Represents an Angle_ for which user input was not collected.
Definition: Angle.hpp:20