#include <QCamClient.hpp>
Inheritance diagram for QCamClient:


Public Slots | |
| void | disable (bool active) |
| wrapper slot for pause()/resume() | |
Public Member Functions | |
| void | connectCam (QCam &cam) |
| to connect a new camera. | |
| void | disconnectCam () |
| disconnect the current camera | |
| void | pause () |
| stop the delivery of newFrame signal. | |
| void | resume () |
| resume the delivery of newFrame signal. | |
| bool | isConnected () const |
| predicat to know if a QCam object is connected | |
| bool | isActive () const |
| indicate if the client is active. | |
| QCam & | cam () const |
| return the connected QCam object. | |
| QWidget * | buildGUI (QWidget *parent) |
| build the GUI related tgo the camera client. | |
| virtual const QString & | label () const |
| return the quick description of this client | |
Protected Slots | |
| virtual void | newFrame ()=0 |
| Slot to implement. | |
Protected Member Functions | |
| virtual void | camDisconnected () |
| is called when a cam is connected. | |
| virtual void | camConnected () |
| is called whne the current cam is deconnected. | |
The slot newFrame() wich must be implemented will be called when a new frame is avable on the associated QCam and when the QCamClient object is not paused.
| bool QCamClient::isActive | ( | ) | const [inline] |
indicate if the client is active.
if true, the clien is connected to a cam, and is not paused.
| QCam& QCamClient::cam | ( | ) | const [inline] |
| QWidget * QCamClient::buildGUI | ( | QWidget * | parent | ) |
build the GUI related tgo the camera client.
buildGUI of base class should also be called
Reimplemented in QCamFindShift, and QCamFindShift_hotSpot.
| virtual void QCamClient::newFrame | ( | ) | [protected, pure virtual, slot] |
Slot to implement.
is is called for every new frame. Use cam().yuvFrame() to acces the to frame.
Implemented in CamHistogram, QCamDisplay, and QCamFindShift.
1.5.1