|
rock_widget_collection
0.1
|
#include <RectangleItem.h>
Inherits FillItem.
Inherited by EllipseItem.
Public Member Functions | |
| RectangleItem (int posX, int posY, int groupNr, const QColor &color, int width, int height) | |
| virtual | ~RectangleItem () |
| int | getWidth () |
| int | getHeight () |
| DrawType | getType () |
| void | setWidth (int width) |
| void | setHeight (int height) |
| 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 | |
| int | width |
| int | height |
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 |
Rectangle shape extending the fill item
Definition at line 16 of file RectangleItem.h.
| RectangleItem::RectangleItem | ( | int | posX, |
| int | posY, | ||
| int | groupNr, | ||
| const QColor & | color, | ||
| int | width, | ||
| int | height | ||
| ) |
Creates a rectangle item
| posX | the starting x position |
| posY | the starting y position |
| groupNr | the group number |
| color | the border color |
| width | the width of the rectangle |
| height | the height of the rectangle |
Definition at line 12 of file RectangleItem.cc.
|
inlinevirtual |
|
virtual |
Reimplemented from FillItem.
Definition at line 19 of file RectangleItem.cc.
|
inline |
Returns the height of the rectangle
Definition at line 45 of file RectangleItem.h.
|
inlinevirtual |
Returns DrawType::Rectangle
Implements DrawItem.
Definition at line 51 of file RectangleItem.h.
|
inline |
Returns the width of the rectangle
Definition at line 39 of file RectangleItem.h.
|
inline |
Sets the height of the rectangle
| height | the height of the rectangle |
Definition at line 63 of file RectangleItem.h.
|
inline |
Sets the width of the rectangle
| width | the width of the rectangle |
Definition at line 57 of file RectangleItem.h.
|
protected |
The height of the Rectangle
Definition at line 73 of file RectangleItem.h.
|
protected |
The width of the Rectangle
Definition at line 71 of file RectangleItem.h.
1.8.11