/usr/share/qt5/doc/qtmultimedia/qcamerafocuszone.html is in qtmultimedia5-doc-html 5.2.1-0ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qcamerafocus.cpp -->
<title>QCameraFocusZone Class | QtMultimedia 5.2</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.2</li>
<li><a href="qtmultimedia-index.html">Qt Multimedia</a></li>
<li><a href="qtmultimedia-module.html">C++ Classes</a></li>
<li>QCameraFocusZone</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QCameraFocusZone Class</h1>
<!-- $$$QCameraFocusZone-brief -->
<p>The QCameraFocusZone class provides information on zones used for autofocusing a camera. <a href="#details">More...</a></p>
<!-- @@@QCameraFocusZone -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QCameraFocusZone></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += multimedia</tt></td></tr></table><ul>
<li><a href="qcamerafocuszone-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qcamerafocuszone.html#FocusZoneStatus-enum">FocusZoneStatus</a></b> { Invalid, Unused, Selected, Focused }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qcamerafocuszone.html#QCameraFocusZone">QCameraFocusZone</a></b>(const QCameraFocusZone &<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qcamerafocuszone.html#dtor.QCameraFocusZone">~QCameraFocusZone</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qcamerafocuszone.html#area">area</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcamerafocuszone.html#isValid">isValid</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> FocusZoneStatus </td><td class="memItemRight bottomAlign"><b><a href="qcamerafocuszone.html#status">status</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcamerafocuszone.html#operator-not-eq">operator!=</a></b>(const QCameraFocusZone &<i> other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QCameraFocusZone & </td><td class="memItemRight bottomAlign"><b><a href="qcamerafocuszone.html#operator-eq">operator=</a></b>(const QCameraFocusZone &<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcamerafocuszone.html#operator-eq-eq">operator==</a></b>(const QCameraFocusZone &<i> other</i>) const</td></tr>
</table>
<a name="details"></a>
<!-- $$$QCameraFocusZone-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QCameraFocusZone class provides information on zones used for autofocusing a camera.</p>
<p>For cameras that support autofocusing, in order for a camera to autofocus on part of a sensor frame, it considers different zones within the frame. Which zones to use, and where the zones are located vary between different cameras.</p>
<p>This class exposes what zones are used by a particular camera, and a list of the zones can be retrieved by a <a href="qcamerafocus.html">QCameraFocus</a> instance.</p>
<p>You can use this information to present visual feedback - for example, drawing rectangles around areas of the camera frame that are in focus, or changing the color of a zone as it comes into focus.</p>
<pre class="cpp">focus<span class="operator">-</span><span class="operator">></span>setFocusPointMode(<span class="type"><a href="qcamerafocus.html">QCameraFocus</a></span><span class="operator">::</span>FocusPointAuto);
<span class="type">QList</span><span class="operator"><</span><span class="type">QCameraFocusZone</span><span class="operator">></span> zones <span class="operator">=</span> focus<span class="operator">-</span><span class="operator">></span>focusZones();
foreach (<span class="type">QCameraFocusZone</span> zone<span class="operator">,</span> zones) {
<span class="keyword">if</span> (zone<span class="operator">.</span>status() <span class="operator">=</span><span class="operator">=</span> <span class="type">QCameraFocusZone</span><span class="operator">::</span>Focused) {
<span class="comment">// Draw a green box at zone.area()</span>
} <span class="keyword">else</span> <span class="keyword">if</span> (zone<span class="operator">.</span>status() <span class="operator">=</span><span class="operator">=</span> <span class="type">QCameraFocusZone</span><span class="operator">::</span>Selected) {
<span class="comment">// This area is selected for autofocusing, but is not in focus</span>
<span class="comment">// Draw a yellow box at zone.area()</span>
}
}</pre>
</div>
<p><b>See also </b><a href="qcamerafocus.html">QCameraFocus</a>.</p>
<!-- @@@QCameraFocusZone -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$FocusZoneStatus$$$Invalid$$$Unused$$$Selected$$$Focused -->
<h3 class="fn"><a name="FocusZoneStatus-enum"></a>enum QCameraFocusZone::<span class="name">FocusZoneStatus</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QCameraFocusZone::Invalid</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">This zone is not valid</td></tr>
<tr><td class="topAlign"><tt>QCameraFocusZone::Unused</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">This zone may be used for autofocusing, but is not currently.</td></tr>
<tr><td class="topAlign"><tt>QCameraFocusZone::Selected</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">This zone is currently being used for autofocusing, but is not in focus.</td></tr>
<tr><td class="topAlign"><tt>QCameraFocusZone::Focused</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">This zone is being used for autofocusing and is currently in focus.</td></tr>
</table>
<!-- @@@FocusZoneStatus -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCameraFocusZone[overload1]$$$QCameraFocusZoneconstQCameraFocusZone& -->
<h3 class="fn"><a name="QCameraFocusZone"></a>QCameraFocusZone::<span class="name">QCameraFocusZone</span>(const <span class="type">QCameraFocusZone</span> &<i> other</i>)</h3>
<p>Creates a new <a href="qcamerafocuszone.html">QCameraFocusZone</a> as a copy of <i>other</i>.</p>
<!-- @@@QCameraFocusZone -->
<!-- $$$~QCameraFocusZone[overload1]$$$~QCameraFocusZone -->
<h3 class="fn"><a name="dtor.QCameraFocusZone"></a>QCameraFocusZone::<span class="name">~QCameraFocusZone</span>()</h3>
<p>Destroys this <a href="qcamerafocuszone.html">QCameraFocusZone</a>.</p>
<!-- @@@~QCameraFocusZone -->
<!-- $$$area[overload1]$$$area -->
<h3 class="fn"><a name="area"></a><span class="type">QRectF</span> QCameraFocusZone::<span class="name">area</span>() const</h3>
<p>Returns the area of the camera frame that this focus zone encompasses.</p>
<p>Coordinates are in frame relative coordinates - <tt>QPointF(0,0)</tt> is the top left of the frame, and <tt>QPointF(1,1)</tt> is the bottom right.</p>
<!-- @@@area -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn"><a name="isValid"></a><span class="type">bool</span> QCameraFocusZone::<span class="name">isValid</span>() const</h3>
<p>Returns true if this focus zone has a valid area and status.</p>
<!-- @@@isValid -->
<!-- $$$status[overload1]$$$status -->
<h3 class="fn"><a name="status"></a><span class="type"><a href="qcamerafocuszone.html#FocusZoneStatus-enum">FocusZoneStatus</a></span> QCameraFocusZone::<span class="name">status</span>() const</h3>
<p>Returns the current status of this focus zone.</p>
<!-- @@@status -->
<!-- $$$operator!=[overload1]$$$operator!=constQCameraFocusZone& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QCameraFocusZone::<span class="name">operator!=</span>(const <span class="type">QCameraFocusZone</span> &<i> other</i>) const</h3>
<p>Returns true if this focus zone is not the same as <i>other</i>.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQCameraFocusZone& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QCameraFocusZone</span> & QCameraFocusZone::<span class="name">operator=</span>(const <span class="type">QCameraFocusZone</span> &<i> other</i>)</h3>
<p>Assigns <i>other</i> to this <a href="qcamerafocuszone.html">QCameraFocusZone</a>.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQCameraFocusZone& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QCameraFocusZone::<span class="name">operator==</span>(const <span class="type">QCameraFocusZone</span> &<i> other</i>) const</h3>
<p>Returns true if this focus zone is the same as <i>other</i>.</p>
<!-- @@@operator== -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|