MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QCameraFocusControl Class Reference

The QCameraFocusControl class supplies control for focusing related camera parameters. More...

 #include <QCameraFocusControl>

Inherits: QMediaControl.

This class was introduced in Qt Mobility 1.1.

Public Functions

~QCameraFocusControl ()
virtual QPointF customFocusPoint () const = 0
virtual qreal digitalZoom () const = 0
virtual QCameraFocus::FocusMode focusMode () const = 0
virtual QCameraFocus::FocusPointMode focusPointMode () const = 0
virtual QCameraFocusZoneList focusZones () const = 0
virtual bool isFocusModeSupported ( QCameraFocus::FocusMode mode ) const = 0
virtual bool isFocusPointModeSupported ( QCameraFocus::FocusPointMode mode ) const = 0
virtual qreal maximumDigitalZoom () const = 0
virtual qreal maximumOpticalZoom () const = 0
virtual qreal opticalZoom () const = 0
virtual void setCustomFocusPoint ( const QPointF & point ) = 0
virtual void setFocusMode ( QCameraFocus::FocusMode mode ) = 0
virtual void setFocusPointMode ( QCameraFocus::FocusPointMode mode ) = 0
virtual void zoomTo ( qreal optical, qreal digital ) = 0
  • 29 public functions inherited from QObject

Signals

void digitalZoomChanged ( qreal zoom )
void focusZonesChanged ()
void maximumDigitalZoomChanged ( qreal zoom )
void maximumOpticalZoomChanged ( qreal zoom )
void opticalZoomChanged ( qreal zoom )

Protected Functions

QCameraFocusControl ( QObject * parent = 0 )
  • 7 protected functions inherited from QObject

Macros

QCameraFocusControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QCameraFocusControl class supplies control for focusing related camera parameters.

The interface name of QCameraFocusControl is com.nokia.Qt.QCameraFocusControl/1.0 as defined in QCameraFocusControl_iid.

See also QMediaService::requestControl() and QCamera.

Member Function Documentation

QCameraFocusControl::QCameraFocusControl ( QObject * parent = 0 ) [protected]

Constructs a camera control object with parent.

QCameraFocusControl::~QCameraFocusControl ()

Destruct the camera control object.

QPointF QCameraFocusControl::customFocusPoint () const [pure virtual]

Return the position of custom focus point, in relative frame coordinates: QPointF(0,0) points to the left top frame point, QPointF(0.5,0.5) points to the frame center.

Custom focus point is used only in FocusPointCustom focus mode.

This function was introduced in Qt Mobility 1.1.

See also setCustomFocusPoint().

qreal QCameraFocusControl::digitalZoom () const [pure virtual]

Return the current digital zoom value.

This function was introduced in Qt Mobility 1.1.

void QCameraFocusControl::digitalZoomChanged ( qreal zoom ) [signal]

Signal emitted when the digital zoom value changed.

This function was introduced in Qt Mobility 1.1.

QCameraFocus::FocusMode QCameraFocusControl::focusMode () const [pure virtual]

Returns the focus mode being used.

This function was introduced in Qt Mobility 1.1.

See also setFocusMode().

QCameraFocus::FocusPointMode QCameraFocusControl::focusPointMode () const [pure virtual]

Returns the camera focus point selection mode.

This function was introduced in Qt Mobility 1.1.

See also setFocusPointMode().

QCameraFocusZoneList QCameraFocusControl::focusZones () const [pure virtual]

Returns the list of zones, the camera is using for focusing or focused on.

This function was introduced in Qt Mobility 1.1.

void QCameraFocusControl::focusZonesChanged () [signal]

Signal is emitted when the set of zones, camera focused on is changed.

Usually the zones list is changed when the camera is focused.

This function was introduced in Qt Mobility 1.1.

See also QCameraFocusControl::focusZones().

bool QCameraFocusControl::isFocusModeSupported ( QCameraFocus::FocusMode mode ) const [pure virtual]

Returns true if focus mode is supported.

This function was introduced in Qt Mobility 1.1.

bool QCameraFocusControl::isFocusPointModeSupported ( QCameraFocus::FocusPointMode mode ) const [pure virtual]

Returns true if the camera focus point mode is supported.

This function was introduced in Qt Mobility 1.1.

qreal QCameraFocusControl::maximumDigitalZoom () const [pure virtual]

Returns the maximum digital zoom value, or 1.0 if digital zoom is not supported.

This function was introduced in Qt Mobility 1.1.

void QCameraFocusControl::maximumDigitalZoomChanged ( qreal zoom ) [signal]

Signal emitted when the maximum supported digital zoom value changed.

The maximum supported zoom value can depend on other camera settings, like capture mode or resolution.

This function was introduced in Qt Mobility 1.1.

qreal QCameraFocusControl::maximumOpticalZoom () const [pure virtual]

Returns the maximum optical zoom value, or 1.0 if optical zoom is not supported.

This function was introduced in Qt Mobility 1.1.

void QCameraFocusControl::maximumOpticalZoomChanged ( qreal zoom ) [signal]

Signal emitted when the maximum supported optical zoom value changed.

This function was introduced in Qt Mobility 1.1.

qreal QCameraFocusControl::opticalZoom () const [pure virtual]

Return the current optical zoom value.

This function was introduced in Qt Mobility 1.1.

void QCameraFocusControl::opticalZoomChanged ( qreal zoom ) [signal]

Signal emitted when the optical zoom value changed.

This function was introduced in Qt Mobility 1.1.

void QCameraFocusControl::setCustomFocusPoint ( const QPointF & point ) [pure virtual]

Sets the custom focus point.

If camera supports fixed set of focus points, it should use the nearest supported focus point, and return the actual focus point with QCameraFocusControl::focusZones().

This function was introduced in Qt Mobility 1.1.

See also QCameraFocusControl::customFocusPoint() and QCameraFocusControl::focusZones().

void QCameraFocusControl::setFocusMode ( QCameraFocus::FocusMode mode ) [pure virtual]

Set the focus mode to mode.

This function was introduced in Qt Mobility 1.1.

See also focusMode().

void QCameraFocusControl::setFocusPointMode ( QCameraFocus::FocusPointMode mode ) [pure virtual]

Sets the camera focus point selection mode.

This function was introduced in Qt Mobility 1.1.

See also focusPointMode().

void QCameraFocusControl::zoomTo ( qreal optical, qreal digital ) [pure virtual]

Sets optical and digital zoom values.

This function was introduced in Qt Mobility 1.1.

Macro Documentation

QCameraFocusControl_iid

com.nokia.Qt.QCameraFocusControl/1.0

Defines the interface name of the QCameraFocusControl class.