LiveFit
Track and plot projectiles for in-class demonstration
Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ProjectorDragCorner Class Reference

A draggable widget for managing where the projector corners lie in the video frame. More...

#include <ProjectorDragCorner.hpp>

Inheritance diagram for ProjectorDragCorner:
Inheritance graph
[legend]
Collaboration diagram for ProjectorDragCorner:
Collaboration graph
[legend]

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.
 

Detailed Description

A draggable widget for managing where the projector corners lie in the video frame.


The documentation for this class was generated from the following files: