The QCameraFocusControl class supplies control for focusing related camera parameters. 更多...
头: | #include <QCameraFocusControl> |
qmake: | QT += multimedia |
继承: | QMediaControl |
virtual | ~QCameraFocusControl () |
virtual QPointF | customFocusPoint () const = 0 |
virtual QCameraFocus::FocusModes | focusMode () const = 0 |
virtual QCameraFocus::FocusPointMode | focusPointMode () const = 0 |
virtual QCameraFocusZoneList | focusZones () const = 0 |
virtual bool | isFocusModeSupported (QCameraFocus::FocusModes mode ) const = 0 |
virtual bool | isFocusPointModeSupported (QCameraFocus::FocusPointMode mode ) const = 0 |
virtual void | setCustomFocusPoint (const QPointF & point ) = 0 |
virtual void | setFocusMode (QCameraFocus::FocusModes mode ) = 0 |
virtual void | setFocusPointMode (QCameraFocus::FocusPointMode mode ) = 0 |
void | customFocusPointChanged (const QPointF & point ) |
void | focusModeChanged (QCameraFocus::FocusModes mode ) |
void | focusPointModeChanged (QCameraFocus::FocusPointMode mode ) |
void | focusZonesChanged () |
const QMetaObject | staticMetaObject |
QCameraFocusControl (QObject * parent = nullptr) |
QCameraFocusControl_iid |
The QCameraFocusControl class supplies control for focusing related camera parameters.
接口名称对于
QCameraFocusControl
is
org.qt-project.qt.camerafocuscontrol/5.0
作为定义在
QCameraFocusControl_iid
.
另请参阅 QMediaService::requestControl () 和 QCamera .
[protected]
QCameraFocusControl::
QCameraFocusControl
(
QObject
*
parent
= nullptr)
Constructs a camera control object with parent .
[虚拟]
QCameraFocusControl::
~QCameraFocusControl
()
Destruct the camera control object.
[pure virtual]
QPointF
QCameraFocusControl::
customFocusPoint
() const
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.
另请参阅 setCustomFocusPoint ().
[signal]
void
QCameraFocusControl::
customFocusPointChanged
(const
QPointF
&
point
)
Signal is emitted when the custom focus point 改变。
另请参阅 QCameraFocusControl::customFocusPoint () 和 QCameraFocusControl::setCustomFocusPoint ().
[pure virtual]
QCameraFocus::FocusModes
QCameraFocusControl::
focusMode
() const
Returns the focus mode being used.
另请参阅 setFocusMode ().
[signal]
void
QCameraFocusControl::
focusModeChanged
(
QCameraFocus::FocusModes
mode
)
Signal is emitted when the focus mode is changed, usually in result of QCameraFocusControl::setFocusMode call or capture mode changes.
另请参阅 QCameraFocusControl::focusMode () 和 QCameraFocusControl::setFocusMode ().
[pure virtual]
QCameraFocus::FocusPointMode
QCameraFocusControl::
focusPointMode
() const
Returns the camera focus point selection mode.
另请参阅 setFocusPointMode ().
[signal]
void
QCameraFocusControl::
focusPointModeChanged
(
QCameraFocus::FocusPointMode
mode
)
Signal is emitted when the focus point mode is changed, usually in result of QCameraFocusControl::setFocusPointMode call or capture mode changes.
另请参阅 QCameraFocusControl::focusPointMode () 和 QCameraFocusControl::setFocusPointMode ().
[pure virtual]
QCameraFocusZoneList
QCameraFocusControl::
focusZones
() const
Returns the list of zones, the camera is using for focusing or focused on.
[signal]
void
QCameraFocusControl::
focusZonesChanged
()
Signal is emitted when the set of zones, camera focused on is changed.
Usually the zones list is changed when the camera is focused.
另请参阅 QCameraFocusControl::focusZones ().
[pure virtual]
bool
QCameraFocusControl::
isFocusModeSupported
(
QCameraFocus::FocusModes
mode
) const
Returns true if focus mode is supported.
[pure virtual]
bool
QCameraFocusControl::
isFocusPointModeSupported
(
QCameraFocus::FocusPointMode
mode
) const
Returns true if the camera focus point mode is supported.
[pure virtual]
void
QCameraFocusControl::
setCustomFocusPoint
(const
QPointF
&
point
)
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 ().
另请参阅 QCameraFocusControl::customFocusPoint () 和 QCameraFocusControl::focusZones ().
[pure virtual]
void
QCameraFocusControl::
setFocusMode
(
QCameraFocus::FocusModes
mode
)
Set the focus mode to mode .
另请参阅 focusMode ().
[pure virtual]
void
QCameraFocusControl::
setFocusPointMode
(
QCameraFocus::FocusPointMode
mode
)
Sets the camera focus point selection mode .
另请参阅 focusPointMode ().
org.qt-project.qt.camerafocuscontrol/5.0
定义接口名为 QCameraFocusControl 类。