QCam Class Reference

base class of any object producing frames. More...

#include <QCam.hpp>

Inheritance diagram for QCam:

Inheritance graph
[legend]
Collaboration diagram for QCam:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual QCamFrame yuvFrame () const=0
 return the frame in yuv 420P format.
virtual const QSize & size () const=0
 return the size of the current frame.
virtual void resize (const QSize &s)=0
 try to resize the current frame.
virtual const QSize * getAllowedSize () const=0
 return an array of supported size of th capture window.
void setProperty (const string &prop, const string &val, bool resetCapture=false)
 Set the value of a properties.
string getProperty (const string &prop) const
 get the value of a properties.
void importProperties (const QCam &other)
 import properties from an other QCam object.
void exportProperties (map< string, string > &dest) const
 export properties
const map< string, string > & getProperties () const
 get reference on properties
virtual QWidget * buildGUI (QWidget *parent)
 build the GUI
bool guiBuild () const
 indicate thet the GUI have been build
void writeProperties (const string &fileName) const
 wrtite the properties associated to the camera
bool saveFrame (const string &file) const
 save the current frame with the current selected format
void annotate (const Vector2D &pos) const
 put a small annotation on the frame

Protected Member Functions

void newFrameAvaible ()
 Must be called when a new YUV frame is avaible.
void setTime ()
 when called, will set the date of the frame to current date

Detailed Description

base class of any object producing frames.


Member Function Documentation

virtual QCamFrame QCam::yuvFrame (  )  const [pure virtual]

return the frame in yuv 420P format.

it is the native format used by all algoithms.

Implemented in QCamAdd, QCamAutoAlign, QCamMax, and QCamV4L.

virtual void QCam::resize ( const QSize &  s  )  [pure virtual]

try to resize the current frame.

it can failed. size() must be called to know the real new size.

Implemented in QCamAdd, QCamAutoAlign, QCamMax, and QCamV4L.

const QSize * QCam::getAllowedSize (  )  const [pure virtual]

return an array of supported size of th capture window.

The las entry of the table must be a null size (=QSize(0,0)). A minimal empty emplementation is given for no resizable QCam

Implemented in QCamAdd, QCamAutoAlign, QCamMax, QCamV4L, and QCamVesta.

void QCam::setProperty ( const string &  prop,
const string &  val,
bool  resetCapture = false 
)

Set the value of a properties.

Properties are dumped is file "<dirName>/properties.txt" in sequence capture mode. Properties are dumped is file "<fileName>.properties" in snapshot capture mode.

void QCam::newFrameAvaible (  )  [protected]

Must be called when a new YUV frame is avaible.

It is used by frame() to opimize conversion from YUV to QImage.


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