4 #include <opencv2/core.hpp>
21 #pragma region constructors
28 #pragma endregion constructors
34 return isEqual(*
this, b);
46 return !isEqual(*
this, b);
52 void paint(
const cv::Mat&);
53 void paintAddPointButton(
const Point&,
const cv::Mat& image);
54 void onMouseMove(
const gui_point_t&);
55 void onMouseDown(
const gui_point_t&);
56 void onMouseUp(
const gui_point_t&);
57 void setMouseOver(
bool mouseOver);
58 void defineContours();
63 void setDefaultPoints();
64 gui_point_t getMiddlePoint();
65 void shiftPosition(gui_point_t);
Widget that represents a point.
Definition: Point.hpp:13
bool operator!=(const Polygon &b)
Checks if 2 Polygons are different.
Definition: Polygon.hpp:38
bool operator==(const Polygon &b)
Creates polygon from a list of points.
Definition: Polygon.hpp:31
Polygon()
Default constructor. Create a Polygon in undefined state.
Widget that represents a polygon defined by a set of points.
Definition: Polygon.hpp:15
static Polygon UNDEFINED
Represents a Polygon for which points were not yet set.
Definition: Polygon.hpp:19
virtual void setPosition(gui_point_t position)
Moves the widget.