|
rock_widget_collection
0.1
|
#include <FillItem.h>
Inherits DrawItem.
Inherited by ArrowItem, PolylineItem, and RectangleItem.
Public Member Functions | |
| FillItem (int posX, int posY, int groupNr, const QColor &color) | |
| bool | isDrawBorder () |
| QColor * | getInteriorColor () |
| void | setDrawBorder (bool drawBorder) |
| void | setInteriorColor (QColor *interiorColor) |
| 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) |
| 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 Member Functions | |
| void | addBrushStyle (QPainter *painter) |
Protected Member Functions inherited from DrawItem | |
| void | addPenStyle (QPainter *painter) |
Protected Attributes | |
| 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 () |
Static Protected Attributes inherited from DrawItem | |
| static int | _ID = 0 |
Abstract class which extends the DrawItem with fillable functionality. All shapes which need support for filling should subclass FillItem instead of DrawItem. Note that if no border is drawn and no interiorColor is given nothing will be drawn.
Definition at line 19 of file FillItem.h.
| FillItem::FillItem | ( | int | posX, |
| int | posY, | ||
| int | groupNr, | ||
| const QColor & | color | ||
| ) |
Generates a FillItem
| posX | the xposition |
| posY | the y poistion |
| groupNr | the group number |
| color | the border color |
Definition at line 11 of file FillItem.cc.
|
protected |
Adds the brush style handling filling the shape
| painter | the apinter with which to draw the shape afterwards |
Definition at line 18 of file FillItem.cc.
|
virtual |
Implements DrawItem.
Reimplemented in PolylineItem, RectangleItem, and PolygonItem.
Definition at line 26 of file FillItem.cc.
|
inline |
Retunrs the fill color or NULL if the shape shall not be filles
Definition at line 41 of file FillItem.h.
|
inline |
Returns whether the border is drawn
Definition at line 35 of file FillItem.h.
|
inline |
Sets whether a border shall be drawn
| drawBorder | if a border shall be drawn |
Definition at line 47 of file FillItem.h.
|
inline |
Sets the color to fill the shape
| interiorColor | the color to fill the shape or a NULL pointer if no filling is available |
Definition at line 53 of file FillItem.h.
|
protected |
Determines whether the border is drawn
Definition at line 66 of file FillItem.h.
|
protected |
The interior color if a fill shoud take place or NULL otherwise
Definition at line 68 of file FillItem.h.
1.8.13