|
rock_widget_collection
0.1
|
#include <PolygonItem.h>
Inherits PolylineItem.
Public Member Functions | |
| PolygonItem (const QColor &color, int groupNr, const QList< QPoint > &points) | |
| virtual | ~PolygonItem () |
| DrawType | getType () |
| void | draw (QPainter *painter, QRectF &source, QRectF &target) |
Public Member Functions inherited from PolylineItem | |
| PolylineItem (const QColor &color, int groupNr, const QList< QPoint > &points) | |
| virtual | ~PolylineItem () |
| void | removeAllPoints () |
| void | addPoint (QPoint point) |
| void | removePoint (QPoint point) |
| int | getNumberOfPoints () |
| QPoint * | getAllPoints () |
| DrawType | getType () |
| void | draw (QPainter *painter, QRectF &source, QRectF &target) |
Public Member Functions inherited from FillItem | |
| FillItem (int posX, int posY, int groupNr, const QColor &color) | |
| bool | isDrawBorder () |
| QColor * | getInteriorColor () |
| void | setDrawBorder (bool drawBorder) |
| void | setInteriorColor (QColor *interiorColor) |
Public Member Functions inherited from DrawItem | |
| DrawItem (int posX, int posY, int groupNr, const QColor &color) | |
| virtual | ~DrawItem () |
| bool | operator== (const DrawItem &other) |
| virtual void | renderOnGl (QGLWidget &widget, QRectF &source, QRectF &target) |
| int | getPosY () |
| int | getGroupNr () |
| QColor | getColor () |
| void | setPosX (int posX) |
| void | setPosY (int posY) |
| void | setGroupNr (int groupNr) |
| void | setColor (const QColor &color) |
| int | getLineWidth () |
| Qt::PenStyle | getPenStyle () |
| Qt::PenCapStyle | getPenCapStyle () |
| void | setLineWidth (int lineWidth) |
| void | setPenStyle (Qt::PenStyle penStyle) |
| void | setPenCapStyle (Qt::PenCapStyle penCapStyle) |
| int | getID () const |
| void | openGL (bool value) |
| bool | onOpenGL () |
| void | setPosFactor (float fx, float fy) |
Additional Inherited Members | |
Public Slots inherited from DrawItem | |
| int | getPosX () |
Protected Member Functions inherited from FillItem | |
| void | addBrushStyle (QPainter *painter) |
Protected Member Functions inherited from DrawItem | |
| void | addPenStyle (QPainter *painter) |
Protected Attributes inherited from PolylineItem | |
| QList< QPoint > | points |
Protected Attributes inherited from FillItem | |
| bool | drawBorder |
| QColor * | interiorColor |
Protected Attributes inherited from DrawItem | |
| int | groupNr |
| int | posX |
| int | posY |
| QColor | color |
| int | lineWidth |
| Qt::PenCapStyle | penCapStyle |
| Qt::PenStyle | penStyle |
| int | m_id |
| float | position_factor_x |
| float | position_factor_y |
| bool | brender_on_opengl |
Static Protected Attributes inherited from DrawItem | |
| static int | _ID = 0 |
Class whioch implements a polygon shape
Definition at line 16 of file PolygonItem.h.
| PolygonItem::PolygonItem | ( | const QColor & | color, |
| int | groupNr, | ||
| const QList< QPoint > & | points | ||
| ) |
Creates a polygon
| color | the color of the border |
| groupNr | the group number |
| points | array of Qpoint creating of the polygons edges |
| numberOfpoints | the number of points in the points array |
Definition at line 14 of file PolygonItem.cc.
|
virtual |
|
virtual |
Reimplemented from FillItem.
Definition at line 23 of file PolygonItem.cc.
|
inlinevirtual |
Returns DrawType::Polygon
Implements DrawItem.
Definition at line 37 of file PolygonItem.h.
1.8.13