|
ddt
0.1
|
#include <ddtGraphicalElementStatRectangle.hpp>
Public Member Functions | |
| DdtGraphicalElementStatRectangle (const DdtGraphicalElementProperties element_properties, const double x1, const double y1, const double x2, const double y2) | |
| virtual | ~DdtGraphicalElementStatRectangle () |
| virtual void | DrawElement (QPainter *painter) |
| QRectF | boundingRect () const |
| void | RedrawCorners (QGraphicsScene *scene) |
| int | type () const |
| void | ReDrawRectangle (const QPointF p1, const QPointF p2) |
| QPointF | Start () const |
| QPointF | End () const |
| QPointF | UpperRight () const |
| QPointF | LowerLeft () const |
| void | ResetEventFilter () |
Public Member Functions inherited from DdtGraphicalElement | |
| DdtGraphicalElement (DdtGraphicalElementProperties element_properties) | |
| virtual | ~DdtGraphicalElement () |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| virtual bool | IsHidden () |
| virtual float | ScaleThreshold () |
| virtual void | SetShowFlag (bool show) |
| virtual DdtOverlayType | GetType () |
| virtual QString | GetTypeString () |
| virtual QString | GetTag () |
Protected Attributes | |
| double | x1 |
| double | y1 |
| double | x2 |
| double | y2 |
| CornerGrabber * | corners [4] |
| bool | installed_event_filters |
Protected Attributes inherited from DdtGraphicalElement | |
| DdtGraphicalElementProperties | element_properties |
| DdtOverlayType | element_type |
Class for the graphical elements drawing resizeable rectangles
|
explicit |
Constructor
|
virtual |
Destructor
|
virtual |
Function returning the bounding box of the graphics item
Reimplemented from DdtGraphicalElement.
|
virtual |
Virtual function for rendering the graphical element
Implements DdtGraphicalElement.
| QPointF DdtGraphicalElementStatRectangle::End | ( | ) | const |
Returns the end point of the rectangle
| QPointF DdtGraphicalElementStatRectangle::LowerLeft | ( | ) | const |
Returns the lower left coordinates of the rectangle
| void DdtGraphicalElementStatRectangle::RedrawCorners | ( | QGraphicsScene * | scene | ) |
Method which can be called to redraw the corner grabbers of this rectangle
| scene | Scene to add the corners to |
| void DdtGraphicalElementStatRectangle::ReDrawRectangle | ( | const QPointF | p1, |
| const QPointF | p2 | ||
| ) |
Redraw the rectangle at new coordinates
| start | Start point |
| end | End point |
| void DdtGraphicalElementStatRectangle::ResetEventFilter | ( | ) |
Reset the event filter flag; used after item had been removed from the scene, so that the event filter is re-installed in the corner grabbers
| QPointF DdtGraphicalElementStatRectangle::Start | ( | ) | const |
Returns the starting point of the rectangle
| int DdtGraphicalElementStatRectangle::type | ( | ) | const |
Check type of graphics item
| QPointF DdtGraphicalElementStatRectangle::UpperRight | ( | ) | const |
|
protected |
Corner grabbers for resizable rectangle
|
protected |
Flag for event filters
|
protected |
x position of one corner of the rectangle
|
protected |
x position of the other corner of the rectangle
|
protected |
y position of one corner of the rectangle
|
protected |
x position of the other corner of the rectangle