videoDisplayWidget Class Reference

A widget for displaying video or images. More...

#include <videoDisplayWidget.h>

List of all members.

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.


Detailed Description

A widget for displaying video or images.

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.


Constructor & Destructor Documentation

videoDisplayWidget::videoDisplayWidget ( QWidget *  parent = 0  ) 

The default constructor.

Parameters:
parent The parent widget.

Definition at line 9 of file videoDisplayWidget.cpp.


Member Function Documentation

void videoDisplayWidget::displayImage ( QImage *  i  )  [slot]

A slot for displaying QImages.

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

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

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

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

Parameters:
p The QPixmap to update with.

Definition at line 15 of file videoDisplayWidget.cpp.

Referenced by displayImage().


The documentation for this class was generated from the following files:
Generated on Thu Aug 17 12:15:00 2006 for VisualODF by  doxygen 1.4.7