Graphical User Interface. More...
#include <Qtcv.h>
Public Slots | |
void | ActivateButton (int) |
(De)activates buttons in the GUI | |
void | SetCenterImage (QImage) |
Sets a new portrait image to be displayed. | |
void | SetInfo (QString) |
Sets the text of the information label. | |
void | SetLeftImage (QImage) |
Sets a new image to be displayed in the wide_stereo camera stream window. | |
void | SetRightImage (QImage) |
Sets a new mask image to be displayed. | |
void | SetStatus (QString) |
Sets the text of the status bar. | |
void | UpdateStatusMessage (int, QString) |
Adds new info text to another stage's message box. | |
Signals | |
void | abortButtonClick () |
A signal indicating that the abort button was activated. | |
void | cornerButtonClick () |
A signal indicating that the PAINTER button was activated. | |
void | edgeButtonClick () |
A signal indicating that the CONTOUR DETECTOR button was activated. | |
void | headButtonClick () |
A signal indicating that the reset head position button was activated. | |
void | loadEdgeImage (const char *filename) |
Signals an filename containing an edge image to be loaded. | |
void | loadPhoto (const char *filename1, const char *filename2) |
void | mirror () |
change the mirror variable for the face point cloud | |
void | paintButtonClick () |
A signal indicating that the PAINTER button was activated. | |
void | penButtonClick () |
A signal indicating that the PEN GRIPPER button was activated. | |
void | sendMouseEvent (int, int, int) |
sends the mouse position | |
Public Member Functions | |
UserInterface () | |
constructor | |
Private Slots | |
void | AbortBClick () |
A slot to process clicks to the abort button. | |
void | About () |
Shows the "About" dialog. | |
void | ChangeMirror (int) |
Sets the pointcloud mirroring. | |
void | CornerBClick () |
A slot to process clicks to the PAINTER button. | |
void | EdgeBClick () |
A slot to process clicks to the CONTOUR DETECTOR button. | |
void | HeadBClick () |
A slot to process clicks to the head button. | |
void | loadEdgeImageButton () |
Shows the Open dialog for the edge image. | |
void | loadPhotoButton () |
Shows two file open dialogs, first for photo, second for mask. | |
void | Manual () |
Shows the "Manual" dialog. | |
void | PaintBClick () |
A slot to process clicks to the PAINTER button. | |
void | PenBClick () |
A slot to process clicks to the PEN GRIPPER button. | |
Private Member Functions | |
void | CreateActions () |
void | CreateMenus () |
bool | eventFilter (QObject *obj, QEvent *event) |
function to process mouse click events in the video stream window | |
Private Attributes | |
QPushButton * | abortButton |
QAction * | aboutAct |
QString * | aboutText |
QLabel * | cameraImageLabel |
QTextEdit * | contourDetectorLog |
bool | contourDetectorLogStarted |
QPushButton * | cornerButton |
bool | drawingAvailable |
QPushButton * | edgeButton |
QLabel * | edgeLabel |
QAction * | exitAct |
QMenu * | fileMenu |
QPushButton * | headButton |
QMenu * | helpMenu |
QLabel * | infoLabel |
QAction * | loadEdgeAct |
QAction * | loadPhotoAct |
QAction * | manualAct |
QString * | manualText |
QLabel * | maskImageLabel |
QCheckBox * | mirrorCBox |
QPushButton * | paintButton |
QTextEdit * | painterLog |
bool | painterLogStarted |
QLabel * | paintLabel |
QPushButton * | penButton |
QTextEdit * | penGripperLog |
bool | penGripperLogStarted |
QLabel * | penLabel |
QLabel * | photoImageLabel |
QLabel * | statusLabel |
void UserInterface::AbortBClick | ( | ) | [private, slot] |
A slot to process clicks to the abort button.
void UserInterface::abortButtonClick | ( | ) | [signal] |
A signal indicating that the abort button was activated.
void UserInterface::About | ( | ) | [private, slot] |
void UserInterface::ActivateButton | ( | int | buttonID | ) | [slot] |
(De)activates buttons in the GUI
The CONTOUR DETECTOR cannot be run unless there is a portrait image / mask image pair, and the PAINTER cannot be run without an edge image computed by the CONTOUR DETECTOR.
Activating the buttons one after another leads the user through the project's stages.
buttonID | identifier for the button to be (de)activated: 1 - PEN GRIPPER, left button 2 - CONTOUR DETECTOR, center button 3 - PAINTER, right button (the PEN GRIPPER button is initially active since there is no prerequisite for its action) |
void UserInterface::ChangeMirror | ( | int | state | ) | [private, slot] |
void UserInterface::CornerBClick | ( | ) | [private, slot] |
A slot to process clicks to the PAINTER button.
void UserInterface::cornerButtonClick | ( | ) | [signal] |
A signal indicating that the PAINTER button was activated.
void UserInterface::CreateActions | ( | ) | [private] |
void UserInterface::CreateMenus | ( | ) | [private] |
void UserInterface::EdgeBClick | ( | ) | [private, slot] |
A slot to process clicks to the CONTOUR DETECTOR button.
void UserInterface::edgeButtonClick | ( | ) | [signal] |
A signal indicating that the CONTOUR DETECTOR button was activated.
bool UserInterface::eventFilter | ( | QObject * | obj, |
QEvent * | event | ||
) | [private] |
void UserInterface::HeadBClick | ( | ) | [private, slot] |
A slot to process clicks to the head button.
void UserInterface::headButtonClick | ( | ) | [signal] |
A signal indicating that the reset head position button was activated.
void UserInterface::loadEdgeImage | ( | const char * | filename | ) | [signal] |
Signals an filename containing an edge image to be loaded.
void UserInterface::loadEdgeImageButton | ( | ) | [private, slot] |
void UserInterface::loadPhoto | ( | const char * | filename1, |
const char * | filename2 | ||
) | [signal] |
void UserInterface::loadPhotoButton | ( | ) | [private, slot] |
void UserInterface::Manual | ( | ) | [private, slot] |
void UserInterface::mirror | ( | ) | [signal] |
change the mirror variable for the face point cloud
Connected to FaceFind::Mirror.
Emitted by UserInterface::ChangeMirror.
void UserInterface::PaintBClick | ( | ) | [private, slot] |
A slot to process clicks to the PAINTER button.
void UserInterface::paintButtonClick | ( | ) | [signal] |
A signal indicating that the PAINTER button was activated.
void UserInterface::PenBClick | ( | ) | [private, slot] |
A slot to process clicks to the PEN GRIPPER button.
void UserInterface::penButtonClick | ( | ) | [signal] |
A signal indicating that the PEN GRIPPER button was activated.
void UserInterface::sendMouseEvent | ( | int | , |
int | , | ||
int | |||
) | [signal] |
sends the mouse position
Sends the mouse cursor position to FaceFind.
Connected to FaceFind::ReceiveMouseEvent.
Emitted by UserInterface::eventFilter.
- | (for parameters see FaceFind::ReceiveMouseEvent) |
void UserInterface::SetCenterImage | ( | QImage | qimage | ) | [slot] |
void UserInterface::SetInfo | ( | QString | message | ) | [slot] |
void UserInterface::SetLeftImage | ( | QImage | qimage | ) | [slot] |
void UserInterface::SetRightImage | ( | QImage | qimage | ) | [slot] |
void UserInterface::SetStatus | ( | QString | message | ) | [slot] |
void UserInterface::UpdateStatusMessage | ( | int | ID, |
QString | message | ||
) | [slot] |
Adds new info text to another stage's message box.
The message boxes provide an overview so the user always stays informed about what's happening.
ID | identifier for the sending stage: 1 - PEN GRIPPER, left message box 2 - CONTOUR DETECTOR, center message box 3 - PAINTER, right message box |
message | the new info text to be added |
QPushButton* UserInterface::abortButton [private] |
QAction* UserInterface::aboutAct [private] |
QString* UserInterface::aboutText [private] |
QLabel* UserInterface::cameraImageLabel [private] |
QTextEdit* UserInterface::contourDetectorLog [private] |
bool UserInterface::contourDetectorLogStarted [private] |
QPushButton* UserInterface::cornerButton [private] |
bool UserInterface::drawingAvailable [private] |
QPushButton* UserInterface::edgeButton [private] |
QLabel* UserInterface::edgeLabel [private] |
QAction* UserInterface::exitAct [private] |
QMenu* UserInterface::fileMenu [private] |
QPushButton* UserInterface::headButton [private] |
QMenu* UserInterface::helpMenu [private] |
QLabel* UserInterface::infoLabel [private] |
QAction* UserInterface::loadEdgeAct [private] |
QAction* UserInterface::loadPhotoAct [private] |
QAction* UserInterface::manualAct [private] |
QString* UserInterface::manualText [private] |
QLabel* UserInterface::maskImageLabel [private] |
QCheckBox* UserInterface::mirrorCBox [private] |
QPushButton* UserInterface::paintButton [private] |
QTextEdit* UserInterface::painterLog [private] |
bool UserInterface::painterLogStarted [private] |
QLabel* UserInterface::paintLabel [private] |
QPushButton* UserInterface::penButton [private] |
QTextEdit* UserInterface::penGripperLog [private] |
bool UserInterface::penGripperLogStarted [private] |
QLabel* UserInterface::penLabel [private] |
QLabel* UserInterface::photoImageLabel [private] |
QLabel* UserInterface::statusLabel [private] |