LiveFit
Track and plot projectiles for in-class demonstration
|
A draggable widget for managing where the projector corners lie in the video frame. More...
#include <ProjectorDragCorner.hpp>
Signals | |
void | moveCompleted (QPoint loc) |
Sent when a "move" action of this drag corner is finished. | |
Public Member Functions | |
ProjectorDragCorner (QWidget *parent=0) | |
Default constructor. | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
Paint this drag corner. | |
void | mousePressEvent (QMouseEvent *event) |
Called when a mouse press happens; "select" and consider drag. | |
void | mouseMoveEvent (QMouseEvent *event) |
Called when a mouse move happens; consider drag if selected and moved. | |
void | mouseReleaseEvent (QMouseEvent *event) |
Called when a mouse release happens; consider drop after drag. | |
Private Attributes | |
int | cornerIndex |
The (extrinsic) index of this corner in [UL,BL,BR,UL]. | |
QPoint | dragStartPos |
Where this drag was initiated. | |
bool | selected = false |
Whether this corner is selected. | |
bool | dragging = false |
Whether this corner is being dragged. | |
int | radius |
Display/click radius of this widget. | |
A draggable widget for managing where the projector corners lie in the video frame.