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

Displays a video stream and tracking data. More...

#include <TrackVideoWidget.hpp>

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

Public Slots

void setImage (const QImage &image)
 Set the current display image of the widget to image.
 
void setCorners (QList< QPoint > corners)
 Set all 4 corners of the projector screen (in-frame coordinates)
 
void ulCornerDropped (QPoint point)
 Called when the UL corner widget is dropped at point.
 
void blCornerDropped (QPoint point)
 Called when the BL corner widget is dropped at point.
 
void brCornerDropped (QPoint point)
 Called when the BR corner widget is dropped at point.
 
void urCornerDropped (QPoint point)
 Called when the UR corner widget is dropped at point.
 
void pushBall (TrackingBall ball)
 Push the TrackingBall ball to the list of balls.
 
void pushPred (KFPrediction pred)
 Push the KFPrediction pred to the list of predictions.
 

Signals

void resized (QSize size)
 Signal sent whenever the widget is resized.
 
void cornersChanged (std::vector< cv::Point2f >)
 Signal sent whenever the corners of the projector in frame change.
 

Public Member Functions

 TrackVideoWidget (QWidget *parent=0)
 
void updateCorners ()
 Refresh the corners (ie send signal that corners changed to listeners)
 
QList< QPoint > getCorners ()
 Return the list of projector corners in image coordinates.
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 Called on paint event; drawing logic goes here (Draw frame, points, etc)
 
void resizeEvent (QResizeEvent *event)
 Called on resize event;.
 

Private Attributes

QList< TrackingBallmBalls
 A list of raw ball contour data in the frame.
 
QList< KFPredictionmPreds
 A list of KF prediction data in the frame.
 
Ui::trackVideoWidget ui
 UI data edited in QDesigner; see TrackVideoWidget.ui.
 
QImage currentFrame
 Current video frame to be displayed by widget.
 

Detailed Description

Displays a video stream and tracking data.

Allows manipulation of projector corners (where they should be in frame)


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