|
rock_widget_collection
0.1
|
#include <PointItem.h>
Inherits DrawItem.
Public Slots | |
| void | setPoints (const QList< int > &points_x, const QList< int > &points_y) |
| DrawType | getType () |
Public Slots inherited from DrawItem | |
| int | getPosX () |
Public Member Functions | |
| PointItem (const QList< int > &points_x, const QList< int > &points_y, int groupNr, const QColor &color) | |
| virtual | ~PointItem () |
| void | renderOnGl (QGLWidget &widget, QRectF &source, QRectF &target) |
| void | draw (QPainter *painter, QRectF &source, QRectF &target) |
Public Member Functions inherited from DrawItem | |
| DrawItem (int posX, int posY, int groupNr, const QColor &color) | |
| virtual | ~DrawItem () |
| virtual DrawType | getType ()=0 |
| bool | operator== (const DrawItem &other) |
| 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 | |
Protected Member Functions inherited from DrawItem | |
| void | addPenStyle (QPainter *painter) |
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 |
PointItem for drawing a line from one point to another
Definition at line 18 of file PointItem.h.
| PointItem::PointItem | ( | const QList< int > & | points_x, |
| const QList< int > & | points_y, | ||
| int | groupNr, | ||
| const QColor & | color | ||
| ) |
Definition at line 13 of file PointItem.cc.
|
inlinevirtual |
Definition at line 23 of file PointItem.h.
|
virtual |
avstract method to draw the item
| painter | the painter with wich to draw the shape |
Implements DrawItem.
Definition at line 21 of file PointItem.cc.
|
inlineslot |
Definition at line 41 of file PointItem.h.
|
virtual |
Reimplemented from DrawItem.
Definition at line 27 of file PointItem.cc.
|
inlineslot |
Definition at line 26 of file PointItem.h.
1.8.11