#include <videoDisplayWidget.h>
Public Slots | |
| void | displayImage (QPixmap *p) |
| A slot for displaying a QPixmap. | |
| void | displayImage (QImage *i) |
| A slot for displaying QImages. | |
Public Member Functions | |
| videoDisplayWidget (QWidget *parent=0) | |
| The default constructor. | |
| QSizePolicy | sizePolicy () const |
| void | loadImage (const QString *str) |
| Used for loading one of the supported image formats from a file and display. | |
Private Member Functions | |
| void | updateImage (QPixmap *p) |
| Updates the display widget with a QPixmap. | |
| void | updateImage (QImage *i) |
| Updates the display widget with a QImage. | |
The important aspects of this class are the two slots that can be connected directly to another class via signals. These slots accept as a parameter either a QPixmap or a QImage, which is then automatically displayed inside the widget. This would be idea for connecting to another class that has a periodic signal with image information, such as a frame server or processing algorithm.
Definition at line 26 of file videoDisplayWidget.h.
| videoDisplayWidget::videoDisplayWidget | ( | QWidget * | parent = 0 |
) |
The default constructor.
| parent | The parent widget. |
Definition at line 9 of file videoDisplayWidget.cpp.
| void videoDisplayWidget::displayImage | ( | QImage * | i | ) | [slot] |
A slot for displaying QImages.
| i | The QImage to be displayed. |
Definition at line 37 of file videoDisplayWidget.cpp.
References updateImage().
| void videoDisplayWidget::displayImage | ( | QPixmap * | p | ) | [slot] |
A slot for displaying a QPixmap.
| p | The QPixmap to be displayed. |
Definition at line 32 of file videoDisplayWidget.cpp.
References updateImage().
| void videoDisplayWidget::loadImage | ( | const QString * | str | ) |
Used for loading one of the supported image formats from a file and display.
| str | A string with the location (filesystem) of the image to be displayed. |
Definition at line 26 of file videoDisplayWidget.cpp.
| void videoDisplayWidget::updateImage | ( | QImage * | i | ) | [private] |
Updates the display widget with a QImage.
| i | The QImage to update with. |
Definition at line 20 of file videoDisplayWidget.cpp.
| void videoDisplayWidget::updateImage | ( | QPixmap * | p | ) | [private] |
Updates the display widget with a QPixmap.
| p | The QPixmap to update with. |
Definition at line 15 of file videoDisplayWidget.cpp.
Referenced by displayImage().
1.4.7