PosturePerfection
Public Slots | Signals | Public Member Functions
GUI::MainWindow Class Reference

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>

Inheritance diagram for GUI::MainWindow:
Inheritance graph
[legend]
Collaboration diagram for GUI::MainWindow:
Collaboration graph
[legend]

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...
 

Detailed Description

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:

Constructor & Destructor Documentation

◆ MainWindow()

GUI::MainWindow::MainWindow ( Pipeline::Pipeline Pipeline,
QWidget *  parent = 0 
)

Initialises the main page.

Parameters
*parentPointer to the parent interface.

◆ ~MainWindow()

GUI::MainWindow::~MainWindow ( )

Member Function Documentation

◆ createAboutPage()

void GUI::MainWindow::createAboutPage ( )

◆ createMainPage()

void GUI::MainWindow::createMainPage ( )

Creates the main page within the application.

◆ createSettingsPage()

void GUI::MainWindow::createSettingsPage ( )

Creates the settings page within the application.

◆ currentFrameSignal

void GUI::MainWindow::currentFrameSignal ( cv::Mat  currentFrame)
signal

emit the newly captured frame

Parameters
currentFramecv::Mat object containing the current captured frame

◆ currentGoodBadPosture

void GUI::MainWindow::currentGoodBadPosture ( PostureEstimating::PostureState  postureState)
signal

emit the newly captured good posture value

Parameters
postureStatethe current posture state

◆ decreaseVideoFramerate

void GUI::MainWindow::decreaseVideoFramerate ( )
slot

Decreases the video frame rate.

◆ emitNewFrame()

void GUI::MainWindow::emitNewFrame ( cv::Mat  currentFrame)

Refresh the video feed to the most recent frame.

Parameters
currentFramea cv::Mat object

◆ increaseVideoFramerate

void GUI::MainWindow::increaseVideoFramerate ( )
slot

Increases the video frame rate.

◆ openAboutPage

void GUI::MainWindow::openAboutPage ( void  )
slot

Switch to the help and about page.

◆ openMainPage

void GUI::MainWindow::openMainPage ( void  )
slot

Switch to the main page with the video feed.

◆ openSettingsPage

void GUI::MainWindow::openSettingsPage ( void  )
slot

Switch to the settings page.

◆ setIdealPosture

void GUI::MainWindow::setIdealPosture ( )
slot

sets the current pose to the ideal posture

◆ setOutputFramerate()

void GUI::MainWindow::setOutputFramerate ( )

Outputs the framerate to the GUI.

◆ setPoseChangeThresholdValue

void GUI::MainWindow::setPoseChangeThresholdValue ( int  scaledValue)
slot

Updates the PostureEstimating::pose_change_threshold value.

◆ setThresholdValue

void GUI::MainWindow::setThresholdValue ( int  scaledValue)
slot

Updates the threshold value.

◆ updatePose()

void GUI::MainWindow::updatePose ( PostureEstimating::PoseStatus  poseStatus)

Updates the current pose.

◆ updatePostureNotification

void GUI::MainWindow::updatePostureNotification ( PostureEstimating::PostureState  postureState)
slot

update the posture notification using the posture status "good" value

Parameters
postureStatethe state of the posture currently captured

◆ updateVideoFrame

void GUI::MainWindow::updateVideoFrame ( cv::Mat  currentFrame)
slot

update the video ouput once a new frame has been captured


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