Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > ff187cb994c94c614ecc64c5a8528b1b > files > 6172

qt-doc-4.8.5-10.fc18.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" />
<!-- qpolygon.cpp -->
  <title>Qt 4.8: QPolygonF Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <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="qtgui.html">QtGui</a></li>
<li>QPolygonF</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></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-functions">Public Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QPolygonF Class Reference</h1>
<!-- $$$QPolygonF-brief -->
<p>The QPolygonF class provides a vector of points using floating point precision. <a href="#details">More...</a></p>
<!-- @@@QPolygonF -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QPolygonF&gt;</span></pre><p><b>Inherits: </b><a href="qvector.html">QVector&lt;QPointF&gt;</a>.</p>
<p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p>
<ul>
<li><a href="qpolygonf-members.html">List of all members, including inherited members</a></li>
</ul>
<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="qpolygonf.html#QPolygonF">QPolygonF</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-2">QPolygonF</a></b> ( int <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-3">QPolygonF</a></b> ( const QPolygonF &amp; <i>polygon</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-4">QPolygonF</a></b> ( const QVector&lt;QPointF&gt; &amp; <i>points</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-5">QPolygonF</a></b> ( const QRectF &amp; <i>rectangle</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-6">QPolygonF</a></b> ( const QPolygon &amp; <i>polygon</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#dtor.QPolygonF">~QPolygonF</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#boundingRect">boundingRect</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#containsPoint">containsPoint</a></b> ( const QPointF &amp; <i>point</i>, Qt::FillRule <i>fillRule</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#intersected">intersected</a></b> ( const QPolygonF &amp; <i>r</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#isClosed">isClosed</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#subtracted">subtracted</a></b> ( const QPolygonF &amp; <i>r</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#swap">swap</a></b> ( QPolygonF &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygon </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#toPolygon">toPolygon</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#translate">translate</a></b> ( const QPointF &amp; <i>offset</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#translate-2">translate</a></b> ( qreal <i>dx</i>, qreal <i>dy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#translated">translated</a></b> ( const QPointF &amp; <i>offset</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#translated-2">translated</a></b> ( qreal <i>dx</i>, qreal <i>dy</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#united">united</a></b> ( const QPolygonF &amp; <i>r</i> ) const</td></tr>
</table>
<ul>
<li class="fn">65 public functions inherited from <a href="qvector.html#public-functions">QVector</a></li>
</ul>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#operator-lt-lt-31">operator&lt;&lt;</a></b> ( QDataStream &amp; <i>stream</i>, const QPolygonF &amp; <i>polygon</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#operator-gt-gt-21">operator&gt;&gt;</a></b> ( QDataStream &amp; <i>stream</i>, QPolygonF &amp; <i>polygon</i> )</td></tr>
</table>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">2 static public members inherited from <a href="qvector.html#static-public-members">QVector</a></li>
</ul>
<a name="details"></a>
<!-- $$$QPolygonF-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QPolygonF class provides a vector of points using floating point precision.</p>
<p>A QPolygonF is a <a href="qvector.html">QVector</a>&lt;<a href="qpointf.html">QPointF</a>&gt;. The easiest way to add points to a QPolygonF is to use its streaming operator, as illustrated below:</p>
<pre class="cpp">         <span class="type">QPolygonF</span> polygon;
         polygon <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="type"><a href="qpointf.html">QPointF</a></span>(<span class="number">10.4</span><span class="operator">,</span> <span class="number">20.5</span>) <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="type"><a href="qpointf.html">QPointF</a></span>(<span class="number">20.2</span><span class="operator">,</span> <span class="number">30.2</span>);</pre>
<p>In addition to the functions provided by <a href="qvector.html">QVector</a>, QPolygonF provides the <a href="qpolygonf.html#boundingRect">boundingRect</a>() and <a href="qpolygonf.html#translate">translate</a>() functions for geometry operations. Use the <a href="qmatrix.html#map">QMatrix::map</a>() function for more general transformations of QPolygonFs.</p>
<p>QPolygonF also provides the <a href="qpolygonf.html#isClosed">isClosed</a>() function to determine whether a polygon's start and end points are the same, and the <a href="qpolygonf.html#toPolygon">toPolygon</a>() function returning an integer precision copy of this polygon.</p>
<p>The QPolygonF class is <a href="implicit-sharing.html#implicit-data-sharing">implicitly shared</a>.</p>
</div>
<p><b>See also </b><a href="qvector.html">QVector</a>, <a href="qpolygon.html">QPolygon</a>, and <a href="qlinef.html">QLineF</a>.</p>
<!-- @@@QPolygonF -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QPolygonF[overload1]$$$QPolygonF -->
<h3 class="fn"><a name="QPolygonF"></a>QPolygonF::<span class="name">QPolygonF</span> ()</h3>
<p>Constructs a polygon with no points.</p>
<p><b>See also </b><a href="qvector.html#isEmpty">QVector::isEmpty</a>().</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFint -->
<h3 class="fn"><a name="QPolygonF-2"></a>QPolygonF::<span class="name">QPolygonF</span> ( <span class="type">int</span> <i>size</i> )</h3>
<p>Constructs a polygon of the given <i>size</i>. Creates an empty polygon if <i>size</i> == 0.</p>
<p><b>See also </b><a href="qvector.html#isEmpty">QVector::isEmpty</a>().</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFconstQPolygonF& -->
<h3 class="fn"><a name="QPolygonF-3"></a>QPolygonF::<span class="name">QPolygonF</span> ( const <span class="type">QPolygonF</span> &amp; <i>polygon</i> )</h3>
<p>Constructs a copy of the given <i>polygon</i>.</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFconstQVector<QPointF>& -->
<h3 class="fn"><a name="QPolygonF-4"></a>QPolygonF::<span class="name">QPolygonF</span> ( const <span class="type"><a href="qvector.html">QVector</a></span>&lt;<span class="type"><a href="qpointf.html">QPointF</a></span>&gt; &amp; <i>points</i> )</h3>
<p>Constructs a polygon containing the specified <i>points</i>.</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFconstQRectF& -->
<h3 class="fn"><a name="QPolygonF-5"></a>QPolygonF::<span class="name">QPolygonF</span> ( const <span class="type"><a href="qrectf.html">QRectF</a></span> &amp; <i>rectangle</i> )</h3>
<p>Constructs a closed polygon from the specified <i>rectangle</i>.</p>
<p>The polygon contains the four vertices of the rectangle in clockwise order starting and ending with the top-left vertex.</p>
<p><b>See also </b><a href="qpolygonf.html#isClosed">isClosed</a>().</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFconstQPolygon& -->
<h3 class="fn"><a name="QPolygonF-6"></a>QPolygonF::<span class="name">QPolygonF</span> ( const <span class="type"><a href="qpolygon.html">QPolygon</a></span> &amp; <i>polygon</i> )</h3>
<p>Constructs a float based polygon from the specified integer based <i>polygon</i>.</p>
<p><b>See also </b><a href="qpolygonf.html#toPolygon">toPolygon</a>().</p>
<!-- @@@QPolygonF -->
<!-- $$$~QPolygonF[overload1]$$$~QPolygonF -->
<h3 class="fn"><a name="dtor.QPolygonF"></a>QPolygonF::<span class="name">~QPolygonF</span> ()</h3>
<p>Destroys the polygon.</p>
<!-- @@@~QPolygonF -->
<!-- $$$boundingRect[overload1]$$$boundingRect -->
<h3 class="fn"><a name="boundingRect"></a><span class="type"><a href="qrectf.html">QRectF</a></span> QPolygonF::<span class="name">boundingRect</span> () const</h3>
<p>Returns the bounding rectangle of the polygon, or <a href="qrectf.html">QRectF</a>(0,0,0,0) if the polygon is empty.</p>
<p><b>See also </b><a href="qvector.html#isEmpty">QVector::isEmpty</a>().</p>
<!-- @@@boundingRect -->
<!-- $$$containsPoint[overload1]$$$containsPointconstQPointF&Qt::FillRule -->
<h3 class="fn"><a name="containsPoint"></a><span class="type">bool</span> QPolygonF::<span class="name">containsPoint</span> ( const <span class="type"><a href="qpointf.html">QPointF</a></span> &amp; <i>point</i>, <span class="type"><a href="qt.html#FillRule-enum">Qt::FillRule</a></span> <i>fillRule</i> ) const</h3>
<p>Returns true if the given <i>point</i> is inside the polygon according to the specified <i>fillRule</i>; otherwise returns false.</p>
<p>This function was introduced in Qt 4.3.</p>
<!-- @@@containsPoint -->
<!-- $$$intersected[overload1]$$$intersectedconstQPolygonF& -->
<h3 class="fn"><a name="intersected"></a><span class="type">QPolygonF</span> QPolygonF::<span class="name">intersected</span> ( const <span class="type">QPolygonF</span> &amp; <i>r</i> ) const</h3>
<p>Returns a polygon which is the intersection of this polygon and <i>r</i>.</p>
<p>Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.</p>
<p>This function was introduced in Qt 4.3.</p>
<!-- @@@intersected -->
<!-- $$$isClosed[overload1]$$$isClosed -->
<h3 class="fn"><a name="isClosed"></a><span class="type">bool</span> QPolygonF::<span class="name">isClosed</span> () const</h3>
<p>Returns true if the polygon is closed; otherwise returns false.</p>
<p>A polygon is said to be closed if its start point and end point are equal.</p>
<p><b>See also </b><a href="qvector.html#first">QVector::first</a>() and <a href="qvector.html#last">QVector::last</a>().</p>
<!-- @@@isClosed -->
<!-- $$$subtracted[overload1]$$$subtractedconstQPolygonF& -->
<h3 class="fn"><a name="subtracted"></a><span class="type">QPolygonF</span> QPolygonF::<span class="name">subtracted</span> ( const <span class="type">QPolygonF</span> &amp; <i>r</i> ) const</h3>
<p>Returns a polygon which is <i>r</i> subtracted from this polygon.</p>
<p>Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.</p>
<p>This function was introduced in Qt 4.3.</p>
<!-- @@@subtracted -->
<!-- $$$swap[overload1]$$$swapQPolygonF& -->
<h3 class="fn"><a name="swap"></a><span class="type">void</span> QPolygonF::<span class="name">swap</span> ( <span class="type">QPolygonF</span> &amp; <i>other</i> )</h3>
<p>Swaps polygon <i>other</i> with this polygon. This operation is very fast and never fails.</p>
<p>This function was introduced in Qt 4.8.</p>
<!-- @@@swap -->
<!-- $$$toPolygon[overload1]$$$toPolygon -->
<h3 class="fn"><a name="toPolygon"></a><span class="type"><a href="qpolygon.html">QPolygon</a></span> QPolygonF::<span class="name">toPolygon</span> () const</h3>
<p>Creates and returns a <a href="qpolygon.html">QPolygon</a> by converting each <a href="qpointf.html">QPointF</a> to a <a href="qpoint.html">QPoint</a>.</p>
<p><b>See also </b><a href="qpointf.html#toPoint">QPointF::toPoint</a>().</p>
<!-- @@@toPolygon -->
<!-- $$$translate[overload1]$$$translateconstQPointF& -->
<h3 class="fn"><a name="translate"></a><span class="type">void</span> QPolygonF::<span class="name">translate</span> ( const <span class="type"><a href="qpointf.html">QPointF</a></span> &amp; <i>offset</i> )</h3>
<p>Translate all points in the polygon by the given <i>offset</i>.</p>
<p><b>See also </b><a href="qpolygonf.html#translated">translated</a>().</p>
<!-- @@@translate -->
<!-- $$$translate$$$translateqrealqreal -->
<h3 class="fn"><a name="translate-2"></a><span class="type">void</span> QPolygonF::<span class="name">translate</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>dx</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>dy</i> )</h3>
<p>This is an overloaded function.</p>
<p>Translates all points in the polygon by (<i>dx</i>, <i>dy</i>).</p>
<p><b>See also </b><a href="qpolygonf.html#translated">translated</a>().</p>
<!-- @@@translate -->
<!-- $$$translated[overload1]$$$translatedconstQPointF& -->
<h3 class="fn"><a name="translated"></a><span class="type">QPolygonF</span> QPolygonF::<span class="name">translated</span> ( const <span class="type"><a href="qpointf.html">QPointF</a></span> &amp; <i>offset</i> ) const</h3>
<p>Returns a copy of the polygon that is translated by the given <i>offset</i>.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qpolygonf.html#translate">translate</a>().</p>
<!-- @@@translated -->
<!-- $$$translated$$$translatedqrealqreal -->
<h3 class="fn"><a name="translated-2"></a><span class="type">QPolygonF</span> QPolygonF::<span class="name">translated</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>dx</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>dy</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns a copy of the polygon that is translated by (<i>dx</i>, <i>dy</i>).</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qpolygonf.html#translate">translate</a>().</p>
<!-- @@@translated -->
<!-- $$$united[overload1]$$$unitedconstQPolygonF& -->
<h3 class="fn"><a name="united"></a><span class="type">QPolygonF</span> QPolygonF::<span class="name">united</span> ( const <span class="type">QPolygonF</span> &amp; <i>r</i> ) const</h3>
<p>Returns a polygon which is the union of this polygon and <i>r</i>.</p>
<p>Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qpolygonf.html#intersected">intersected</a>() and <a href="qpolygonf.html#subtracted">subtracted</a>().</p>
<!-- @@@united -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$operator<<$$$operator<<QDataStream&constQPolygonF& -->
<h3 class="fn"><a name="operator-lt-lt-31"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&lt;&lt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>stream</i>, const <span class="type">QPolygonF</span> &amp; <i>polygon</i> )</h3>
<p>Writes the given <i>polygon</i> to the given <i>stream</i>, and returns a reference to the stream.</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator<< -->
<!-- $$$operator>>$$$operator>>QDataStream&QPolygonF& -->
<h3 class="fn"><a name="operator-gt-gt-21"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&gt;&gt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>stream</i>, <span class="type">QPolygonF</span> &amp; <i>polygon</i> )</h3>
<p>Reads a polygon from the given <i>stream</i> into the given <i>polygon</i>, and returns a reference to the stream.</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator>> -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      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.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      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. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>