<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # QPolygonF Class Reference ## [[QtGui](index.htm) module] 該QPolygonF類提供了使用浮點精度點的矢量。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QPolygonF?a)` * `__init__ (self, list-of-QPointF?v)` * `__init__ (self, QRectF?r)` * `__init__ (self, QPolygon?a)` * `__init__ (self, int?asize)` * `append (self, QPointF?value)` * `QPointF at (self, int?i)` * `QRectF boundingRect (self)` * `clear (self)` * `bool contains (self, QPointF?value)` * `bool containsPoint (self, QPointF?pt, Qt.FillRule?fillRule)` * `int count (self, QPointF?value)` * `int count (self)` * `sip.voidptr data (self)` * `fill (self, QPointF?value, int?size?=?-1)` * `QPointF first (self)` * `int indexOf (self, QPointF?value, int?from?=?0)` * `insert (self, int?i, QPointF?value)` * `QPolygonF intersected (self, QPolygonF?r)` * `bool isClosed (self)` * `bool isEmpty (self)` * `QPointF last (self)` * `int lastIndexOf (self, QPointF?value, int?from?=?-1)` * `QPolygonF mid (self, int?pos, int?length?=?-1)` * `prepend (self, QPointF?value)` * `remove (self, int?i)` * `remove (self, int?i, int?count)` * `replace (self, int?i, QPointF?value)` * `int size (self)` * `QPolygonF subtracted (self, QPolygonF?r)` * `swap (self, QPolygonF?other)` * `QPolygon toPolygon (self)` * `translate (self, QPointF?offset)` * `translate (self, float?dx, float?dy)` * `QPolygonF translated (self, QPointF?offset)` * `QPolygonF translated (self, float?dx, float?dy)` * `QPolygonF united (self, QPolygonF?r)` * `QPointF value (self, int?i)` * `QPointF value (self, int?i, QPointF?defaultValue)` ### Special Methods * `QPolygonF __add__ (self, QPolygonF?other)` * `int __contains__ (self, QPointF?value)` * `__delitem__ (self, int?i)` * `__delitem__ (self, slice?slice)` * `bool __eq__ (self, QPolygonF?other)` * `QPointF __getitem__ (self, int?i)` * `QPolygonF __getitem__ (self, slice?slice)` * `QPolygonF __iadd__ (self, QPolygonF?other)` * `QPolygonF __iadd__ (self, QPointF?value)` * `__len__ (self)` * `object __lshift__ (self, QPointF?value)` * `QPolygonF __mul__ (self, QMatrix?m)` * `QPolygonF __mul__ (self, QTransform?m)` * `bool __ne__ (self, QPolygonF?other)` * `__setitem__ (self, int?i, QPointF?value)` * `__setitem__ (self, slice?slice, QPolygonF?list)` * * * ## Detailed Description 該QPolygonF類提供了使用浮點精度點的矢量。 一個QPolygonF是[QVector](index.htm)\u003c[QPointF](qpointf.html)\u003e 。把點添加到QPolygonF最簡單的方法是使用它的流媒體運營商,如下圖所示: ``` QPolygonF polygon; polygon << [QPointF](qpointf.html)(10.4, 20.5) << [QPointF](qpointf.html)(20.2, 30.2); ``` 除了由所提供的功能[QVector](index.htm), QPolygonF提供[boundingRect](qpolygonf.html#boundingRect)()和[translate](qpolygonf.html#translate)( )用于幾何運算功能。使用[QMatrix.map](qmatrix.html#map)()函數QPolygonFs的更一般的變換。 QPolygonF還提供了[isClosed](qpolygonf.html#isClosed)()函數來確定一個多邊形的起點和終點是否是相同的,并且[toPolygon](qpolygonf.html#toPolygon)( )函數返回此多邊形的整數精度副本。 該QPolygonF類是[implicitly shared](index.htm#implicit-data-sharing)。 * * * ## Method Documentation ``` QPolygonF.__init__ (self) ``` 構造一個多邊形,沒有分。 **See also** [QVector.isEmpty](index.htm#isEmpty)( ) 。 ``` QPolygonF.__init__ (self, QPolygonF?a) ``` 構造的給定的多邊形_size_。創建空的多邊形,如果_size_== 0 。 **See also** [QVector.isEmpty](index.htm#isEmpty)( ) 。 ``` QPolygonF.__init__ (self, list-of-QPointF?v) ``` 構造給定的一個副本_polygon_。 ``` QPolygonF.__init__ (self, QRectF?r) ``` 構建了含有指定一個多邊形_points_。 ``` QPolygonF.__init__ (self, QPolygon?a) ``` 構造一個封閉的多邊形從指定的_rectangle_。 多邊形包含四個頂點按順時針順序矩形的開始,并與左上頂點結束。 **See also** [isClosed](qpolygonf.html#isClosed)( ) 。 ``` QPolygonF.__init__ (self, int?asize) ``` 構造從指定的整數根據一個基于浮動多邊形_polygon_。 **See also** [toPolygon](qpolygonf.html#toPolygon)( ) 。 ``` QPolygonF.append (self, QPointF?value) ``` ``` QPointF QPolygonF.at (self, int?i) ``` [](qpointf.html) ``` QRectF QPolygonF.boundingRect (self) ``` [](qrectf.html) [返回多邊形的邊界矩形,或](qrectf.html)[QRectF](qrectf.html)(0,0,0,0) ,如果多邊形是空的。 **See also** [QVector.isEmpty](index.htm#isEmpty)( ) 。 ``` QPolygonF.clear (self) ``` ``` bool QPolygonF.contains (self, QPointF?value) ``` ``` bool QPolygonF.containsPoint (self, QPointF?pt, Qt.FillRule?fillRule) ``` 返回True如果給定的_point_在多邊形內根據指定的_fillRule_否則返回False 。 此功能被引入Qt的4.3 。 ``` int QPolygonF.count (self, QPointF?value) ``` ``` int QPolygonF.count (self) ``` ``` sip.voidptr QPolygonF.data (self) ``` ``` QPolygonF.fill (self, QPointF?value, int?size?=?-1) ``` ``` QPointF QPolygonF.first (self) ``` [ ``` int QPolygonF.indexOf (self, QPointF?value, int?from?=?0) ``` ``` QPolygonF.insert (self, int?i, QPointF?value) ``` ](qpointf.html) ``` QPolygonF QPolygonF.intersected (self, QPolygonF?r) ``` [ 返回一個多邊形是這個多邊形的交點_r_。 對多邊形集合運算將視作為多邊形區域。非封閉的多邊形將被隱式關閉處理。 此功能被引入Qt的4.3 。 ``` bool QPolygonF.isClosed (self) ``` 返回True如果多邊形是封閉的,否則返回False 。 多邊形被認為是封閉的,如果起點和終點都是平等的。 ](qpolygonf.html) [**See also**](qpolygonf.html) [QVector.first](index.htm#first)()和[QVector.last](index.htm#last)( ) 。 ``` bool QPolygonF.isEmpty (self) ``` ``` QPointF QPolygonF.last (self) ``` [ ``` int QPolygonF.lastIndexOf (self, QPointF?value, int?from?=?-1) ``` ](qpointf.html) ``` QPolygonF QPolygonF.mid (self, int?pos, int?length?=?-1) ``` [ ``` QPolygonF.prepend (self, QPointF?value) ``` ``` QPolygonF.remove (self, int?i) ``` ``` QPolygonF.remove (self, int?i, int?count) ``` ``` QPolygonF.replace (self, int?i, QPointF?value) ``` ``` int QPolygonF.size (self) ``` ](qpolygonf.html) ``` QPolygonF QPolygonF.subtracted (self, QPolygonF?r) ``` [ 返回一個多邊形是_r_減去這個多邊形。 對多邊形集合運算將視作為多邊形區域。非封閉的多邊形將被隱式關閉處理。 此功能被引入Qt的4.3 。 ``` QPolygonF.swap (self, QPolygonF?other) ``` 掉期多邊形_other_與此多邊形。這個操作是非常快的,而且永遠不會。 此功能被引入Qt的4.8 。 ](qpolygonf.html) ``` QPolygon QPolygonF.toPolygon (self) ``` [](qpolygon.html) [創建并返回一個](qpolygon.html)[QPolygon](qpolygon.html)把每個[QPointF](qpointf.html)到[QPoint](qpoint.html)。 **See also** [QPointF.toPoint](qpointf.html#toPoint)( ) 。 ``` QPolygonF.translate (self, QPointF?offset) ``` 翻譯所有點在多邊形由給定的_offset_。 **See also** [translated](qpolygonf.html#translated)( ) 。 ``` QPolygonF.translate (self, float?dx, float?dy) ``` 這是一個重載函數。 由(將所有的點在多邊形_dx_,_dy_) 。 **See also** [translated](qpolygonf.html#translated)( ) 。 ``` QPolygonF QPolygonF.translated (self, QPointF?offset) ``` [ 返回該多邊形的一個副本,是由給定的翻譯_offset_。 此功能被引入Qt的4.6 。 ](qpolygonf.html) [**See also**](qpolygonf.html) [translate](qpolygonf.html#translate)( ) 。 ``` QPolygonF QPolygonF.translated (self, float?dx, float?dy) ``` [ 這是一個重載函數。 返回由(翻譯多邊形的副本_dx_,_dy_) 。 此功能被引入Qt的4.6 。 ](qpolygonf.html) [**See also**](qpolygonf.html) [translate](qpolygonf.html#translate)( ) 。 ``` QPolygonF QPolygonF.united (self, QPolygonF?r) ``` [ 返回一個多邊形是這個多邊形和工會_r_。 對多邊形集合運算將視作為多邊形區域。非封閉的多邊形將被隱式關閉處理。 此功能被引入Qt的4.3 。 ](qpolygonf.html) [**See also**](qpolygonf.html) [intersected](qpolygonf.html#intersected)()和[subtracted](qpolygonf.html#subtracted)( ) 。 ``` QPointF QPolygonF.value (self, int?i) ``` [](qpointf.html) ``` QPointF QPolygonF.value (self, int?i, QPointF?defaultValue) ``` [](qpointf.html) ``` QPolygonF QPolygonF.__add__ (self, QPolygonF?other) ``` [ ``` int QPolygonF.__contains__ (self, QPointF?value) ``` ``` QPolygonF.__delitem__ (self, int?i) ``` ``` QPolygonF.__delitem__ (self, slice?slice) ``` ``` bool QPolygonF.__eq__ (self, QPolygonF?other) ``` ](qpolygonf.html) ``` QPointF QPolygonF.__getitem__ (self, int?i) ``` [](qpointf.html) ``` QPolygonF QPolygonF.__getitem__ (self, slice?slice) ``` [](qpolygonf.html) ``` QPolygonF QPolygonF.__iadd__ (self, QPolygonF?other) ``` [](qpolygonf.html) ``` QPolygonF QPolygonF.__iadd__ (self, QPointF?value) ``` [ ``` QPolygonF.__len__ (self) ``` ``` object QPolygonF.__lshift__ (self, QPointF?value) ``` ](qpolygonf.html) ``` QPolygonF QPolygonF.__mul__ (self, QMatrix?m) ``` [](qpolygonf.html) ``` QPolygonF QPolygonF.__mul__ (self, QTransform?m) ``` [ ``` bool QPolygonF.__ne__ (self, QPolygonF?other) ``` ``` QPolygonF.__setitem__ (self, int?i, QPointF?value) ``` ``` QPolygonF.__setitem__ (self, slice?slice, QPolygonF?list) ``` ](qpolygonf.html)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看