|
ddt
0.1
|
#include <ddtGraphicalElementRefLine.hpp>
Public Member Functions | |
| DdtGraphicalElementRefLine (const DdtGraphicalElementProperties element_properties, const double x1, const double y1, const double x2, const double y2) | |
| virtual | ~DdtGraphicalElementRefLine () |
| virtual void | DrawElement (QPainter *painter) |
| QRectF | boundingRect () const |
| int | type () const |
| void | ReDrawLine (const QPointF start, const QPointF end) |
| void | RedrawCorners (QGraphicsScene *scene) |
| QPointF | Start () const |
| QPointF | End () 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 [2] |
| bool | installed_event_filters |
Protected Attributes inherited from DdtGraphicalElement | |
| DdtGraphicalElementProperties | element_properties |
| DdtOverlayType | element_type |
Class for the graphical elements drawing a resizeable reference line
|
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 DdtGraphicalElementRefLine::End | ( | ) | const |
Returns the end point of the line
| void DdtGraphicalElementRefLine::RedrawCorners | ( | QGraphicsScene * | scene | ) |
Redraw the corner grabbers
| scene | Scene to add the grabbers |
| void DdtGraphicalElementRefLine::ReDrawLine | ( | const QPointF | start, |
| const QPointF | end | ||
| ) |
Redraw the line at new coordinates
| start | Start point |
| end | End point |
| void DdtGraphicalElementRefLine::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 DdtGraphicalElementRefLine::Start | ( | ) | const |
Returns the starting point of the line
| int DdtGraphicalElementRefLine::type | ( | ) | const |
Check type of graphics item
|
protected |
Corner grabbers for resizable reference line
|
protected |
Flag for event filters
|
protected |
x position of one end of the line
|
protected |
x position of the other end of the line
|
protected |
y position of one end of the line
|
protected |
x position of the other end of the line