|
rock_widget_collection
0.1
|
#include <LineItem.h>
Inherits DrawItem.
Public Slots | |
| int | getEndX () |
| int | getEndY () |
| DrawType | getType () |
| void | setEndX (int endX) |
| void | setEndY (int endY) |
| void | renderOnGl (QGLWidget &widget, QRectF &source, QRectF &target) |
| void | draw (QPainter *painter, QRectF &source, QRectF &target) |
Public Slots inherited from DrawItem | |
| int | getPosX () |
| 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) |
Public Member Functions | |
| LineItem (int posX, int posY, int groupNr, const QColor &color, int endX, int endY) | |
| virtual | ~LineItem () |
Public Member Functions inherited from DrawItem | |
| DrawItem (int posX, int posY, int groupNr, const QColor &color) | |
| virtual | ~DrawItem () |
| virtual DrawType | getType ()=0 |
| virtual void | draw (QPainter *painter, QRectF &source, QRectF &target)=0 |
| bool | operator== (const DrawItem &other) |
| virtual void | renderOnGl (QGLWidget &widget, QRectF &source, QRectF &target) |
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 |
LineItem for drawing a line from one point to another
Definition at line 17 of file LineItem.h.
| LineItem::LineItem | ( | int | posX, |
| int | posY, | ||
| int | groupNr, | ||
| const QColor & | color, | ||
| int | endX, | ||
| int | endY | ||
| ) |
Creates a LIneItem
| posX | the x position of the starting point |
| posY | teh y position of the starting point |
| groupNr | teh group number |
| color | the color |
| endX | the x position of the endpoint |
| endY | the y position of the end point |
Definition at line 12 of file LineItem.cc.
|
inlinevirtual |
|
slot |
Definition at line 19 of file LineItem.cc.
|
inlineslot |
Returns the x position of the end point
Definition at line 41 of file LineItem.h.
|
inlineslot |
Retuns the y position of the end point
Definition at line 47 of file LineItem.h.
|
inlineslot |
Returns DrawType::Line
Definition at line 53 of file LineItem.h.
|
slot |
Definition at line 31 of file LineItem.cc.
|
inlineslot |
Sets the x position of the end point
| endX | the x position of the end point |
Definition at line 59 of file LineItem.h.
|
inlineslot |
Sets the y position the end point
| endY | the y position of the end point |
Definition at line 65 of file LineItem.h.
1.8.6