ddt 1.2.1
|
#include <ddtPointGrabber.hpp>
Public Types | |
enum | { PG_MOUSE_RELEASED = 0 , PG_MOUSE_DOWN , PG_MOUSE_MOVING } |
Public Attributes | |
qreal | mouse_down_x = 0.0 |
qreal | mouse_down_y = 0.0 |
PointGrabber (QGraphicsItem *parent=nullptr, const int point_num=0) | |
int | GetPointNumber () const |
void | SetMouseState (const int state) |
int | GetMouseState () const |
Class for point grabbing.
|
explicit |
Constructor
parent | Pointer to the parent graphics item. |
point_number | The point number. |
int PointGrabber::GetMouseState | ( | ) | const |
Get the current mouse state
int PointGrabber::GetPointNumber | ( | ) | const |
Check which point was selected
void PointGrabber::SetMouseState | ( | const int | state | ) |
Record the current mouse state
state | The current mouse state. |
qreal PointGrabber::mouse_down_x = 0.0 |
Mouse coordinate x
qreal PointGrabber::mouse_down_y = 0.0 |
Mouse coordinate y