Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 1652

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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" />
<!-- qsensor.cpp -->
  <title>Qt Mobility 1.2: qoutputrange Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtsensors.html">QtSensors</a></li>
<li>qoutputrange</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-variables">Public Variables</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">qoutputrange Class Reference</h1>
<!-- $$$qoutputrange-brief -->
<p>The qoutputrange class holds the specifics of an output range. <a href="#details">More...</a></p>
<!-- @@@qoutputrange -->
<pre class="cpp"> <span class="preprocessor">#include &lt;qoutputrange&gt;</span></pre><p>This class was introduced in Qt Mobility 1.0.</p>
<ul>
<li><a href="qoutputrange-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-variables"></a>
<h2>Public Variables</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qoutputrange.html#accuracy-var">accuracy</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qoutputrange.html#maximum-var">maximum</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qoutputrange.html#minimum-var">minimum</a></b></td></tr>
</table>
<a name="details"></a>
<!-- $$$qoutputrange-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The qoutputrange class holds the specifics of an output range.</p>
<p>The class is defined as a simple struct.</p>
<pre class="cpp"> <span class="keyword">struct</span> qoutputrange
 {
     <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#qreal-typedef">qreal</a></span> maximum;
     <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#qreal-typedef">qreal</a></span> minimum;
     <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#qreal-typedef">qreal</a></span> accuracy;
 };</pre>
<p>Each output range specifies a minimum and maximum value as well as an accuracy value. The accuracy value represents the resolution of the sensor. It is the smallest change the sensor can detect and is expressed using the same units as the minimum and maximum.</p>
<p>Sensors must often trade off range for accuracy. To allow the user to determine which of these are more important the sensor may offer several output ranges. One output range may have reduced minimum and maximum values and increased sensitivity. Another output range may have higher minimum and maximum values with reduced sensitivity. Note that higher sensitivities will be represented by smaller accuracy values.</p>
<p>An example of this tradeoff can be seen by examining the LIS302DL accelerometer. It has only 256 possible values to report with. These values are scaled so that they can represent either -2G to +2G (with an accuracy value of 0.015G) or -8G to +8G (with an accuracy value of 0.06G).</p>
</div>
<p><b>See also </b><a href="qsensor.html#qoutputrangelist-typedef">qoutputrangelist</a> and <a href="qsensor.html#outputRanges-prop">QSensor::outputRanges</a>.</p>
<!-- @@@qoutputrange -->
<div class="vars">
<h2>Member Variable Documentation</h2>
<!-- $$$accuracy -->
<h3 class="fn"><a name="accuracy-var"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#qreal-typedef">qreal</a></span> qoutputrange::<span class="name">accuracy</span></h3>
<p>The accuracy value represents the resolution of the sensor. It is the smallest change the sensor can detect and is expressed using the same units as the minimum and maximum.</p>
<!-- @@@accuracy -->
<!-- $$$maximum -->
<h3 class="fn"><a name="maximum-var"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#qreal-typedef">qreal</a></span> qoutputrange::<span class="name">maximum</span></h3>
<p>This is the maximum value for this output range. The units are defined by the sensor.</p>
<!-- @@@maximum -->
<!-- $$$minimum -->
<h3 class="fn"><a name="minimum-var"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#qreal-typedef">qreal</a></span> qoutputrange::<span class="name">minimum</span></h3>
<p>This is the minimum value for this output range. The units are defined by the sensor.</p>
<!-- @@@minimum -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used 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.</p>
</div>
</body>
</html>