|
rock_widget_collection
0.1
|
#include <PolylineItem.h>
Inherits FillItem.
Inherited by PolygonItem.
Public Member Functions | |
| 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) |
Protected Attributes | |
| 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 |
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) |
Static Protected Attributes inherited from DrawItem | |
| static int | _ID = 0 |
Polyline shape which draws multiple lines without filling.
Definition at line 18 of file PolylineItem.h.
| PolylineItem::PolylineItem | ( | const QColor & | color, |
| int | groupNr, | ||
| const QList< QPoint > & | points | ||
| ) |
Creates a PolyLine Item
| color | the line color |
| groupNr | the group number |
| points | array of QPoint |
| numberOfpoints | the number of QPoint objects in the points array |
Definition at line 15 of file PolylineItem.cc.
|
virtual |
| void PolylineItem::addPoint | ( | QPoint | point | ) |
Adds a point to the polyline
| point | the point to add |
Definition at line 30 of file PolylineItem.cc.
|
virtual |
| QPoint * PolylineItem::getAllPoints | ( | ) |
| int PolylineItem::getNumberOfPoints | ( | ) |
Returns the number of points
Definition at line 45 of file PolylineItem.cc.
|
inlinevirtual |
Returns DrawType::Polyline
Implements DrawItem.
Definition at line 68 of file PolylineItem.h.
| void PolylineItem::removeAllPoints | ( | ) |
removes all points
Definition at line 35 of file PolylineItem.cc.
| void PolylineItem::removePoint | ( | QPoint | point | ) |
|
protected |
List of points for the polyline
Definition at line 76 of file PolylineItem.h.
1.8.11