|
LiveFit
Track and plot projectiles for in-class demonstration
|
The window which manages all logic for the LiveFit application. More...
#include <LiveFitWindow.hpp>


Public Slots | |
| void | startStream (char *videoFile) |
| Start a new stream with video from videoFile. | |
| void | startStream (int cameraId) |
| Start a new stream with video from camera at index cameraId. | |
| void | startCamera0 () |
| Equivalent to startStream(0) | |
| void | startCamera1 () |
| Equivalent to startStream(1) | |
| void | startCamera2 () |
| Equivalent to startStream(2) | |
| void | sendCameraAction (QAction *) |
| Handle a camera-related QAction, like those in file>camera. | |
Public Member Functions | |
| LiveFitWindow (QWidget *parent=0) | |
| Default constructor; default to webcam 0. | |
| LiveFitWindow (char *videoFile) | |
| Create a LiveFitWindow with video stream at videoFile. | |
| LiveFitWindow (int cameraId) | |
| Create a LiveFitWindow with video stream from camera at index cameraId. | |
Protected Member Functions | |
| void | writeSettings () |
| Write this application's QSettings. | |
| void | readSettings () |
| Read in this application's QSettings. | |
| void | closeEvent (QCloseEvent *ev) |
| Called when this window is closed; destruct all necessary objects and close streams, etc cleanly. | |
Private Slots | |
| void | on_pauseButton_clicked () |
| Called when the pauseButton is clicked. | |
| void | on_action_Open_triggered () |
| Called when the Open action is triggered (ie file>open) | |
| void | on_actionFind_Projector_Window_triggered () |
Private Member Functions | |
| void | createMenus () |
| void | chooseVideoFile () |
| void | setupUi () |
| void | displayVideoStream () |
| void | setupCamera () |
| Set up the video stream and the converter, as well as requisite signals. More... | |
| void | setupSignalConnections () |
| Set up the ProjectorWindow which displays information to the class. | |
| void | populateCameraMenu () |
| Populate the file>camera menu. | |
Private Attributes | |
| QSize | mVideoSize |
| Pixel size of the video stream. | |
| Ui::liveFitWindow | ui |
| This window's QDesigner ui, LiveFitWindow.ui. | |
| TrackingStream | mTrackingStream |
| The TrackingStream object which manages the current video stream and tracking. | |
| FrameConverter | mFrameConverter |
| The FrameConverter which takes incoming frames from the stream and converts them into QImages to be sent to appropriate display widgets. | |
| QThread | mStreamThread |
| A QThread for the video stream. | |
| QThread | mConverterThread |
| A QThread for the video converter. | |
The window which manages all logic for the LiveFit application.
|
private |
Set up the video stream and the converter, as well as requisite signals.
We currently also set up a bunch of auxiliary signals here which should be moved out to their own respective method
1.8.11