![]() |
PosturePerfection
|
Allows for navigation around the application from the main page by letting the user navigate to the data page, settings page and fullscreen page from the main window. More...
#include <mainwindow.h>
Public Slots | |
void | setThresholdValue (int) |
Updates the threshold value. More... | |
void | setPoseChangeThresholdValue (int) |
Updates the PostureEstimating::pose_change_threshold value. More... | |
void | increaseVideoFramerate () |
Increases the video frame rate. More... | |
void | decreaseVideoFramerate () |
Decreases the video frame rate. More... | |
void | setIdealPosture () |
sets the current pose to the ideal posture More... | |
void | updateVideoFrame (cv::Mat currentFrame) |
update the video ouput once a new frame has been captured More... | |
void | updatePostureNotification (PostureEstimating::PostureState postureState) |
update the posture notification using the posture status "good" value More... | |
void | openMainPage (void) |
Switch to the main page with the video feed. More... | |
void | openSettingsPage (void) |
Switch to the settings page. More... | |
void | openAboutPage (void) |
Switch to the help and about page. More... | |
Signals | |
void | currentFrameSignal (cv::Mat currentFrame) |
emit the newly captured frame More... | |
void | currentGoodBadPosture (PostureEstimating::PostureState postureState) |
emit the newly captured good posture value More... | |
Public Member Functions | |
MainWindow (Pipeline::Pipeline *Pipeline, QWidget *parent=0) | |
Initialises the main page. More... | |
~MainWindow () | |
void | emitNewFrame (cv::Mat currentFrame) |
Refresh the video feed to the most recent frame. More... | |
void | createMainPage () |
Creates the main page within the application. More... | |
void | createSettingsPage () |
Creates the settings page within the application. More... | |
void | createAboutPage () |
void | updatePose (PostureEstimating::PoseStatus poseStatus) |
Updates the current pose. More... | |
void | setOutputFramerate () |
Outputs the framerate to the GUI. More... | |
Allows for navigation around the application from the main page by letting the user navigate to the data page, settings page and fullscreen page from the main window.
This class handles:
GUI::MainWindow::MainWindow | ( | Pipeline::Pipeline * | Pipeline, |
QWidget * | parent = 0 |
||
) |
Initialises the main page.
*parent | Pointer to the parent interface. |
GUI::MainWindow::~MainWindow | ( | ) |
void GUI::MainWindow::createAboutPage | ( | ) |
void GUI::MainWindow::createMainPage | ( | ) |
Creates the main page within the application.
void GUI::MainWindow::createSettingsPage | ( | ) |
Creates the settings page within the application.
|
signal |
emit the newly captured frame
currentFrame | cv::Mat object containing the current captured frame |
|
signal |
emit the newly captured good posture value
postureState | the current posture state |
|
slot |
Decreases the video frame rate.
void GUI::MainWindow::emitNewFrame | ( | cv::Mat | currentFrame | ) |
Refresh the video feed to the most recent frame.
currentFrame | a cv::Mat object |
|
slot |
Increases the video frame rate.
|
slot |
Switch to the help and about page.
|
slot |
Switch to the main page with the video feed.
|
slot |
Switch to the settings page.
|
slot |
sets the current pose to the ideal posture
void GUI::MainWindow::setOutputFramerate | ( | ) |
Outputs the framerate to the GUI.
|
slot |
Updates the PostureEstimating::pose_change_threshold
value.
|
slot |
Updates the threshold value.
void GUI::MainWindow::updatePose | ( | PostureEstimating::PoseStatus | poseStatus | ) |
Updates the current pose.
|
slot |
update the posture notification using the posture status "good" value
postureState | the state of the posture currently captured |
|
slot |
update the video ouput once a new frame has been captured