QCamClient Class Reference

base class for objects that are using the frames generated by QCam objects. More...

#include <QCamClient.hpp>

Inheritance diagram for QCamClient:

Inheritance graph
[legend]
Collaboration diagram for QCamClient:

Collaboration graph
[legend]
List of all members.

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.
QCamcam () 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.

Detailed Description

base class for objects that are using the frames generated by QCam objects.

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.


Member Function Documentation

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]

return the connected QCam object.

Must not be called if no QCam object is connected.

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.


The documentation for this class was generated from the following files:
Generated on Sat Oct 27 09:21:07 2007 for QastroCam by  doxygen 1.5.1