CopperSpice API  1.7.2
QCameraFocusControl Class Referenceabstract

Supplies control for focusing related camera parameters. More...

Inheritance diagram for QCameraFocusControl:
QMediaControl QObject

Public Signals

void customFocusPointChanged (const QPointF &point)
 
void focusModeChanged (QCameraFocus::FocusModes mode)
 
void focusPointModeChanged (QCameraFocus::FocusPointMode mode)
 
void focusZonesChanged ()
 
- Public Signals inherited from QObject
void destroyed (QObject *obj=nullptr)
 
void objectNameChanged (const QString &objectName)
 

Public Methods

 ~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
 
- Public Methods inherited from QMediaControl
 ~QMediaControl ()
 
- Public Methods inherited from QObject
 QObject (QObject *parent=nullptr)
 
 ~QObject ()
 
bool blockSignals (bool block)
 
const QList< QObject * > & children () const
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool disconnect (const QObject *receiver, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod, const QString &location, const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod=QString (), const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QStringdynamicPropertyNames () const
 
virtual bool event (QEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
template<typename T >
findChild (const QString &childName=QString ()) const
 
template<class T >
QList< T > findChildren (const QRegularExpression &regExp, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<class T >
QList< T > findChildren (const QString &objName=QString (), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
bool inherits (const QString &className) const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const
 
bool isWindowType () const
 
void killTimer (int id)
 
const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const
 
QObject * parent () const
 
template<class T = QVariant>
property (const QString &name) const
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const QString &name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
QThreadthread () const
 

Protected Methods

 QCameraFocusControl (QObject *parent=nullptr)
 
- Protected Methods inherited from QMediaControl
 QMediaControl (QObject *parent=nullptr)
 
- Protected Methods inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signalMethod) const
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signalMethod) const
 
bool isSignalConnected (const QMetaMethod &signalMethod) const
 
int receivers (const QString &signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- Static Public Methods inherited from QObject
static bool connect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection, const QString &location=QString ())
 
static bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...), Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotLambda, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...))
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, std::nullptr_t slotMethod=nullptr)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotMethod)
 
static QMetaObjectstaticMetaObject ()
 
static QString tr (const char *text, const char *comment=nullptr, std::optional< int > numArg=std::optional< int >())
 
- Properties inherited from QObject
 objectName
 

Detailed Description

The QCameraFocusControl class supplies control for focusing related camera parameters.

The interface name of QCameraFocusControl is "com.copperspice.CS.cameraFocusControl/1.0" as defined in QCameraFocusControl_iid.

See also
QMediaService::requestControl(), QCamera

Constructor & Destructor Documentation

QCameraFocusControl::~QCameraFocusControl ( )

Destruct the camera control object.

QCameraFocusControl::QCameraFocusControl ( QObject parent = nullptr)
explicitprotected

Constructs a camera control object with parent.

Method Documentation

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.

See also
setCustomFocusPoint()
void QCameraFocusControl::customFocusPointChanged ( const QPointF point)
signal

Signal is emitted when the custom focus point is changed.

See also
QCameraFocusControl::customFocusPoint(), QCameraFocusControl::setCustomFocusPoint()
QCameraFocus::FocusModes QCameraFocusControl::focusMode ( ) const
pure virtual

Returns the focus mode being used.

See also
setFocusMode()
void QCameraFocusControl::focusModeChanged ( QCameraFocus::FocusModes  mode)
signal

Signal is emitted when the focus mode is changed, usually in result of QCameraFocusControl::setFocusMode call or capture mode changes.

See also
QCameraFocusControl::focusMode(), QCameraFocusControl::setFocusMode()
QCameraFocus::FocusPointMode QCameraFocusControl::focusPointMode ( ) const
pure virtual

Returns the camera focus point selection mode.

See also
setFocusPointMode()
void QCameraFocusControl::focusPointModeChanged ( QCameraFocus::FocusPointMode  mode)
signal

Signal is emitted when the focus point mode is changed, usually in result of QCameraFocusControl::setFocusPointMode call or capture mode changes.

See also
QCameraFocusControl::focusPointMode(), QCameraFocusControl::setFocusPointMode()
QCameraFocusZoneList QCameraFocusControl::focusZones ( ) const
pure virtual

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

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.

See also
QCameraFocusControl::focusZones()
bool QCameraFocusControl::isFocusModeSupported ( QCameraFocus::FocusModes  mode) const
pure virtual

Returns true if focus mode is supported.

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

Returns true if the camera focus point mode is supported.

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

See also
QCameraFocusControl::customFocusPoint(), QCameraFocusControl::focusZones()
void QCameraFocusControl::setFocusMode ( QCameraFocus::FocusModes  mode)
pure virtual

Set the focus mode to mode.

See also
focusMode()
void QCameraFocusControl::setFocusPointMode ( QCameraFocus::FocusPointMode  mode)
pure virtual

Sets the camera focus point selection mode.

See also
focusPointMode()