Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QPolygonF Class Reference

The QPolygonF class provides a vector of points using floating point precision. More...

Inheritance diagram for QtGui.QPolygonF:
Collaboration diagram for QtGui.QPolygonF:

Public Member Functions

 QPolygonF ()
 
 
 QPolygonF (QPolygonF a)
 
 
 QPolygonF (QRectF r)
 
 
 QPolygonF (QPolygon a)
 
 
 QPolygonF (int size)
 
 
 QPolygonF (System.Collections.Generic.List< QPointF > v)
 
 
virtual void CreateProxy ()
 
new QRectF BoundingRect ()
 
 
new bool ContainsPoint (QPointF pt, Qt.FillRule fillRule)
 
 
new QPolygonF Intersected (QPolygonF r)
 
 
new bool IsClosed ()
 
 
new QPolygonF Subtracted (QPolygonF r)
 
 
new void Swap (QPolygonF other)
 
 
new QPolygon ToPolygon ()
 
 
new void Translate (QPointF offset)
 
 
new void Translate (double dx, double dy)
 
 
new QPolygonF Translated (QPointF offset)
 
 
new QPolygonF Translated (double dx, double dy)
 
 
new QPolygonF United (QPolygonF r)
 
 
new void Dispose ()
 

Static Public Member Functions

static QPolygonF operator* (QPolygonF arg1, QTransform arg2)
 
static QPolygonF operator* (QPolygonF arg1, QMatrix arg2)
 

Protected Member Functions

 QPolygonF (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QPolygonF class provides a vector of points using floating point precision.

A QPolygonF is a QVector<QPointF>. The easiest way to add points to a QPolygonF is to use its streaming operator, as illustrated below:

QPolygonF polygon;

polygon << QPointF(10.4, 20.5) << QPointF(20.2, 30.2);

In addition to the functions provided by QVector, QPolygonF provides the boundingRect() and translate() functions for geometry operations. Use the QMatrix::map() function for more general transformations of QPolygonFs.

QPolygonF also provides the isClosed() function to determine whether a polygon's start and end points are the same, and the toPolygon() function returning an integer precision copy of this polygon.

The QPolygonF class is implicitly shared.

See also QVector, QPolygon, and QLineF.

Constructor & Destructor Documentation

QtGui.QPolygonF.QPolygonF ( System.Type  dummy)
protected
QtGui.QPolygonF.QPolygonF ( )

Constructs a polygon with no points.

See also QVector::isEmpty().

QtGui.QPolygonF.QPolygonF ( QPolygonF  a)

Constructs a copy of the given polygon.

QtGui.QPolygonF.QPolygonF ( QRectF  r)

Constructs a closed polygon from the specified rectangle.

The polygon contains the four vertices of the rectangle in clockwise order starting and ending with the top-left vertex.

See also isClosed().

QtGui.QPolygonF.QPolygonF ( QPolygon  a)

Constructs a float based polygon from the specified integer based polygon.

See also toPolygon().

QtGui.QPolygonF.QPolygonF ( int  size)

Constructs a polygon of the given size. Creates an empty polygon if size == 0.

See also QVector::isEmpty().

QtGui.QPolygonF.QPolygonF ( System.Collections.Generic.List< QPointF v)

Constructs a polygon containing the specified points.

Member Function Documentation

new QRectF QtGui.QPolygonF.BoundingRect ( )

Returns the bounding rectangle of the polygon, or QRectF(0,0,0,0) if the polygon is empty.

See also QVector::isEmpty().

new bool QtGui.QPolygonF.ContainsPoint ( QPointF  pt,
Qt.FillRule  fillRule 
)

Returns true if the given point is inside the polygon according to the specified fillRule; otherwise returns false.

This function was introduced in Qt 4.3.

virtual void QtGui.QPolygonF.CreateProxy ( )
virtual
new void QtGui.QPolygonF.Dispose ( )
new QPolygonF QtGui.QPolygonF.Intersected ( QPolygonF  r)

Returns a polygon which is the intersection of this polygon and r.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 4.3.

new bool QtGui.QPolygonF.IsClosed ( )

Returns true if the polygon is closed; otherwise returns false.

A polygon is said to be closed if its start point and end point are equal.

See also QVector::first() and QVector::last().

static QPolygonF QtGui.QPolygonF.operator* ( QPolygonF  arg1,
QTransform  arg2 
)
static
static QPolygonF QtGui.QPolygonF.operator* ( QPolygonF  arg1,
QMatrix  arg2 
)
static
new QPolygonF QtGui.QPolygonF.Subtracted ( QPolygonF  r)

Returns a polygon which is r subtracted from this polygon.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 4.3.

new void QtGui.QPolygonF.Swap ( QPolygonF  other)

Swaps polygon other with this polygon. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

new QPolygon QtGui.QPolygonF.ToPolygon ( )

Creates and returns a QPolygon by converting each QPointF to a QPoint.

See also QPointF::toPoint().

new void QtGui.QPolygonF.Translate ( QPointF  offset)

Translate all points in the polygon by the given offset.

See also translated().

new void QtGui.QPolygonF.Translate ( double  dx,
double  dy 
)

Translate all points in the polygon by the given offset.

See also translated().

new QPolygonF QtGui.QPolygonF.Translated ( QPointF  offset)

Returns a copy of the polygon that is translated by the given offset.

This function was introduced in Qt 4.6.

See also translate().

new QPolygonF QtGui.QPolygonF.Translated ( double  dx,
double  dy 
)

Returns a copy of the polygon that is translated by the given offset.

This function was introduced in Qt 4.6.

See also translate().

new QPolygonF QtGui.QPolygonF.United ( QPolygonF  r)

Returns a polygon which is the union of this polygon and r.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 4.3.

See also intersected() and subtracted().

Member Data Documentation

SmokeInvocation QtGui.QPolygonF.interceptor
protected

Property Documentation

virtual System.IntPtr QtGui.QPolygonF.SmokeObject
getset