4 #include <opencv2/core.hpp>
19 #pragma region constructors
24 Point(
int _x,
int _y);
27 Point(
const gui_point_t & pt);
28 #pragma endregion constructors
32 #pragma region operators
41 return static_cast<gui_point_t
>(*this) == b;
49 return static_cast<gui_point_t
>(*this) != b;
51 #pragma endregion operators
57 void paint(
const cv::Mat&);
Widget that represents a point.
Definition: Point.hpp:13
void onMouseUp(const gui_point_t &)
The user released the left mouse button over the widget.
Point()
Default constructor.
bool operator==(const Point &b)
Checks if 2 points are equal.
Definition: Point.hpp:37
static Point UNDEFINED
Definition: Point.hpp:30
void onMouseMove(const gui_point_t &)
The user moved the mouse pointer over the widget.
virtual void setPosition(gui_point_t position)
Move point widget.
void paint(const cv::Mat &)
Overlay the point widget on an image.
bool operator!=(const Point &b)
Checks if 2 points are different.
Definition: Point.hpp:45
void onMouseDown(const gui_point_t &)
The user pressed the left mouse button over the widget.
static const std::string CLASS_NAME
Definition: Point.hpp:17