Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
UserInterface Class Reference

Graphical User Interface. More...

#include <Qtcv.h>

List of all members.

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

Detailed Description

Graphical User Interface.

Qt GUI for the FaceFind stage of the project

Definition at line 21 of file Qtcv.h.


Constructor & Destructor Documentation

constructor

sets up the GUI layout

Definition at line 18 of file Qtcv.cpp.


Member Function Documentation

void UserInterface::AbortBClick ( ) [private, slot]

A slot to process clicks to the abort button.

Emits UserInterface::abortButtonClick.

Definition at line 294 of file Qtcv.cpp.

A signal indicating that the abort button was activated.

void UserInterface::About ( ) [private, slot]

Shows the "About" dialog.

Definition at line 341 of file Qtcv.cpp.

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.

Parameters:
buttonIDidentifier 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)

Definition at line 305 of file Qtcv.cpp.

void UserInterface::ChangeMirror ( int  state) [private, slot]

Sets the pointcloud mirroring.

Parameters:
state0 - deactivate mirroring
(other) - activate mirroring

Definition at line 215 of file Qtcv.cpp.

void UserInterface::CornerBClick ( ) [private, slot]

A slot to process clicks to the PAINTER button.

Emits UserInterface::cornerButtonClick.

Definition at line 271 of file Qtcv.cpp.

A signal indicating that the PAINTER button was activated.

void UserInterface::CreateActions ( ) [private]

Definition at line 364 of file Qtcv.cpp.

void UserInterface::CreateMenus ( ) [private]

Definition at line 393 of file Qtcv.cpp.

void UserInterface::EdgeBClick ( ) [private, slot]

A slot to process clicks to the CONTOUR DETECTOR button.

Emits UserInterface::edgeButtonClick.

Definition at line 263 of file Qtcv.cpp.

void UserInterface::edgeButtonClick ( ) [signal]

A signal indicating that the CONTOUR DETECTOR button was activated.

bool UserInterface::eventFilter ( QObject *  obj,
QEvent *  event 
) [private]

function to process mouse click events in the video stream window

Definition at line 228 of file Qtcv.cpp.

void UserInterface::HeadBClick ( ) [private, slot]

A slot to process clicks to the head button.

Emits UserInterface::headButtonClick.

Definition at line 286 of file Qtcv.cpp.

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]

Shows the Open dialog for the edge image.

Definition at line 330 of file Qtcv.cpp.

void UserInterface::loadPhoto ( const char *  filename1,
const char *  filename2 
) [signal]
void UserInterface::loadPhotoButton ( ) [private, slot]

Shows two file open dialogs, first for photo, second for mask.

Definition at line 334 of file Qtcv.cpp.

void UserInterface::Manual ( ) [private, slot]

Shows the "Manual" dialog.

Definition at line 347 of file Qtcv.cpp.

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.

Emits UserInterface::paintButtonClick.

Definition at line 278 of file Qtcv.cpp.

A signal indicating that the PAINTER button was activated.

void UserInterface::PenBClick ( ) [private, slot]

A slot to process clicks to the PEN GRIPPER button.

Emits UserInterface::penButtonClick.

Definition at line 256 of file Qtcv.cpp.

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.

Parameters:
-(for parameters see FaceFind::ReceiveMouseEvent)
void UserInterface::SetCenterImage ( QImage  qimage) [slot]

Sets a new portrait image to be displayed.

Parameters:
qimagethe new QImage to be displayed

Definition at line 190 of file Qtcv.cpp.

void UserInterface::SetInfo ( QString  message) [slot]

Sets the text of the information label.

Parameters:
messagethe new text to be displayed

Definition at line 209 of file Qtcv.cpp.

void UserInterface::SetLeftImage ( QImage  qimage) [slot]

Sets a new image to be displayed in the wide_stereo camera stream window.

Parameters:
qimagethe new QImage to be displayed

Definition at line 183 of file Qtcv.cpp.

void UserInterface::SetRightImage ( QImage  qimage) [slot]

Sets a new mask image to be displayed.

Parameters:
qimagethe new QImage to be displayed

Definition at line 197 of file Qtcv.cpp.

void UserInterface::SetStatus ( QString  message) [slot]

Sets the text of the status bar.

Parameters:
messagethe new text to be displayed

Definition at line 204 of file Qtcv.cpp.

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.

Parameters:
IDidentifier for the sending stage:
1 - PEN GRIPPER, left message box
2 - CONTOUR DETECTOR, center message box
3 - PAINTER, right message box
messagethe new info text to be added

Definition at line 406 of file Qtcv.cpp.


Member Data Documentation

QPushButton* UserInterface::abortButton [private]

Definition at line 193 of file Qtcv.h.

QAction* UserInterface::aboutAct [private]

Definition at line 179 of file Qtcv.h.

QString* UserInterface::aboutText [private]

Definition at line 171 of file Qtcv.h.

Definition at line 182 of file Qtcv.h.

QTextEdit* UserInterface::contourDetectorLog [private]

Definition at line 196 of file Qtcv.h.

Definition at line 199 of file Qtcv.h.

QPushButton* UserInterface::cornerButton [private]

Definition at line 191 of file Qtcv.h.

Definition at line 201 of file Qtcv.h.

QPushButton* UserInterface::edgeButton [private]

Definition at line 189 of file Qtcv.h.

QLabel* UserInterface::edgeLabel [private]

Definition at line 186 of file Qtcv.h.

QAction* UserInterface::exitAct [private]

Definition at line 175 of file Qtcv.h.

QMenu* UserInterface::fileMenu [private]

Definition at line 173 of file Qtcv.h.

QPushButton* UserInterface::headButton [private]

Definition at line 192 of file Qtcv.h.

QMenu* UserInterface::helpMenu [private]

Definition at line 174 of file Qtcv.h.

QLabel* UserInterface::infoLabel [private]

Definition at line 180 of file Qtcv.h.

QAction* UserInterface::loadEdgeAct [private]

Definition at line 177 of file Qtcv.h.

QAction* UserInterface::loadPhotoAct [private]

Definition at line 176 of file Qtcv.h.

QAction* UserInterface::manualAct [private]

Definition at line 178 of file Qtcv.h.

QString* UserInterface::manualText [private]

Definition at line 172 of file Qtcv.h.

QLabel* UserInterface::maskImageLabel [private]

Definition at line 184 of file Qtcv.h.

QCheckBox* UserInterface::mirrorCBox [private]

Definition at line 194 of file Qtcv.h.

QPushButton* UserInterface::paintButton [private]

Definition at line 190 of file Qtcv.h.

QTextEdit* UserInterface::painterLog [private]

Definition at line 197 of file Qtcv.h.

Definition at line 200 of file Qtcv.h.

QLabel* UserInterface::paintLabel [private]

Definition at line 187 of file Qtcv.h.

QPushButton* UserInterface::penButton [private]

Definition at line 188 of file Qtcv.h.

QTextEdit* UserInterface::penGripperLog [private]

Definition at line 195 of file Qtcv.h.

Definition at line 198 of file Qtcv.h.

QLabel* UserInterface::penLabel [private]

Definition at line 185 of file Qtcv.h.

QLabel* UserInterface::photoImageLabel [private]

Definition at line 183 of file Qtcv.h.

QLabel* UserInterface::statusLabel [private]

Definition at line 181 of file Qtcv.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


face_finder
Author(s): Nikolaus Mayer, Christian Schilling
autogenerated on Wed Dec 26 2012 16:22:45