QPolygonF Class Reference

QPolygonF Class Reference

#include <qpolygon.h>

Class Description

Definition at line 134 of file qpolygon.h.

+ Inheritance diagram for QPolygonF:

Public Member Functions

 QPolygonF ()
 
 ~QPolygonF ()
 
 QPolygonF (int size)
 
 QPolygonF (const QPolygonF &a)
 
 QPolygonF (const QVector< QPointF > &v)
 
 QPolygonF (const QRectF &r)
 
 QPolygonF (const QPolygon &a)
 
void swap (QPolygonF &other)
 
void translate (qreal dx, qreal dy)
 
void translate (const QPointF &offset)
 
QPolygonF translated (qreal dx, qreal dy) const
 
QPolygonF translated (const QPointF &offset) const
 
QPolygon toPolygon () const
 
bool isClosed () const
 
QRectF boundingRect () const
 
bool containsPoint (const QPointF &pt, Qt::FillRule fillRule) const
 
QPolygonF united (const QPolygonF &r) const
 
QPolygonF intersected (const QPolygonF &r) const
 
QPolygonF subtracted (const QPolygonF &r) const
 
- Public Member Functions inherited from QVector< QPointF >
 QVector ()
 
 QVector (int size)
 
 QVector (int size, const QPointF &t)
 
 QVector (const QVector< QPointF > &v)
 
 ~QVector ()
 
QVector< QPointF > & operator= (const QVector< QPointF > &v)
 
void swap (QVector< QPointF > &other)
 
bool operator== (const QVector< QPointF > &v) const
 
bool operator!= (const QVector< QPointF > &v) const
 
int size () const
 
bool isEmpty () const
 
void resize (int size)
 
int capacity () const
 
void reserve (int size)
 
void squeeze ()
 
void detach ()
 
bool isDetached () const
 
void setSharable (bool sharable)
 
bool isSharedWith (const QVector< QPointF > &other) const
 
QPointFdata ()
 
const QPointFdata () const
 
const QPointFconstData () const
 
void clear ()
 
const QPointFat (int i) const
 
QPointFoperator[] (int i)
 
const QPointFoperator[] (int i) const
 
void append (const QPointF &t)
 
void prepend (const QPointF &t)
 
void insert (int i, const QPointF &t)
 
void insert (int i, int n, const QPointF &t)
 
iterator insert (iterator before, int n, const QPointF &x)
 
iterator insert (iterator before, const QPointF &x)
 
void replace (int i, const QPointF &t)
 
void remove (int i)
 
void remove (int i, int n)
 
QVector< QPointF > & fill (const QPointF &t, int size=-1)
 
int indexOf (const QPointF &t, int from=0) const
 
int lastIndexOf (const QPointF &t, int from=-1) const
 
bool contains (const QPointF &t) const
 
int count (const QPointF &t) const
 
int count () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator constBegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator constEnd () const
 
iterator erase (iterator begin, iterator end)
 
iterator erase (iterator pos)
 
QPointFfirst ()
 
const QPointFfirst () const
 
QPointFlast ()
 
const QPointFlast () const
 
bool startsWith (const QPointF &t) const
 
bool endsWith (const QPointF &t) const
 
QVector< QPointFmid (int pos, int length=-1) const
 
QPointF value (int i) const
 
QPointF value (int i, const QPointF &defaultValue) const
 
void push_back (const QPointF &t)
 
void push_front (const QPointF &t)
 
void pop_back ()
 
void pop_front ()
 
bool empty () const
 
QPointFfront ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
QVector< QPointF > & operator+= (const QVector< QPointF > &l)
 
QVector< QPointF > & operator+= (const QPointF &t)
 
QVector< QPointFoperator+ (const QVector< QPointF > &l) const
 
QVector< QPointF > & operator<< (const QPointF &t)
 
QVector< QPointF > & operator<< (const QVector< QPointF > &l)
 
QList< QPointFtoList () const
 
std::vector< QPointFtoStdVector () const
 

Additional Inherited Members

- Public Types inherited from QVector< QPointF >
typedef QPointFiterator
 
typedef const QPointFconst_iterator
 
typedef QPointF value_type
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef qptrdiff difference_type
 
typedef iterator Iterator
 
typedef const_iterator ConstIterator
 
typedef int size_type
 
- Static Public Member Functions inherited from QVector< QPointF >
static QVector< QPointFfromList (const QList< QPointF > &list)
 
static QVector< QPointFfromStdVector (const std::vector< QPointF > &vector)
 
- Public Attributes inherited from QVector< QPointF >
QVectorDatad
 
Datap
 

Constructor & Destructor Documentation

QPolygonF ( )
inline

Definition at line 137 of file qpolygon.h.

137 {}
~QPolygonF ( )
inline

Definition at line 138 of file qpolygon.h.

138 {}
QPolygonF ( int  size)
inline

Definition at line 165 of file qpolygon.h.

QPolygonF ( const QPolygonF a)
inline

Definition at line 140 of file qpolygon.h.

140 : QVector<QPointF>(a) {}
GLubyte GLubyte GLubyte a
Definition: GLee.h:5404
QPolygonF ( const QVector< QPointF > &  v)
inline

Definition at line 141 of file qpolygon.h.

141 : QVector<QPointF>(v) {}
const GLdouble * v
Definition: GLee.h:1174
QPolygonF ( const QRectF r)
QPolygonF ( const QPolygon a)

Member Function Documentation

void swap ( QPolygonF other)
inline

Definition at line 144 of file qpolygon.h.

144 { QVector<QPointF>::swap(other); } // prevent QVector<QPointF><->QPolygonF swaps
void swap(QVector< T > &other)
Definition: qvector.h:130
void translate ( qreal  dx,
qreal  dy 
)
inline

Definition at line 179 of file qpolygon.h.

180 { translate(QPointF(dx, dy)); }
int int int int * dy
Definition: GLee.h:10535
void translate(qreal dx, qreal dy)
Definition: qpolygon.h:179
int int int * dx
Definition: GLee.h:10535
void translate ( const QPointF offset)
QPolygonF translated ( qreal  dx,
qreal  dy 
) const
inline

Definition at line 182 of file qpolygon.h.

183 { return translated(QPointF(dx, dy)); }
int int int int * dy
Definition: GLee.h:10535
int int int * dx
Definition: GLee.h:10535
QPolygonF translated(qreal dx, qreal dy) const
Definition: qpolygon.h:182
QPolygonF translated ( const QPointF offset) const
QPolygon toPolygon ( ) const
bool isClosed ( ) const
inline

Definition at line 154 of file qpolygon.h.

154 { return !isEmpty() && first() == last(); }
QPointF & last()
Definition: qvector.h:262
QPointF & first()
Definition: qvector.h:260
bool isEmpty() const
Definition: qvector.h:139
QRectF boundingRect ( ) const
bool containsPoint ( const QPointF pt,
Qt::FillRule  fillRule 
) const
QPolygonF united ( const QPolygonF r) const
QPolygonF intersected ( const QPolygonF r) const
QPolygonF subtracted ( const QPolygonF r) const

The documentation for this class was generated from the following file: