|
ddt
0.1
|
#include <ddtGraphicalElement.hpp>
Public Member Functions | |
| DdtGraphicalElement (DdtGraphicalElementProperties element_properties) | |
| virtual | ~DdtGraphicalElement () |
| virtual void | DrawElement (QPainter *painter)=0 |
| virtual QRectF | boundingRect () const |
| 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 | |
| DdtGraphicalElementProperties | element_properties |
| DdtOverlayType | element_type |
Base class for the graphical elements
|
explicit |
Constructor
|
virtualdefault |
Destructor
|
virtual |
Function returning the bounding box of the graphics item
Reimplemented in DdtGraphicalElementImage, DdtGraphicalElementText, DdtGraphicalElementStatRectangle, DdtGraphicalElementSlit, DdtGraphicalElementRefLine, DdtGraphicalElementRectangle, DdtGraphicalElementLine, DdtGraphicalElementEllipse, DdtGraphicalElementCross, and DdtGraphicalElementCompass.
|
pure virtual |
Virtual function for rendering the graphical element
Implemented in DdtGraphicalElementImage, DdtGraphicalElementText, DdtGraphicalElementStatRectangle, DdtGraphicalElementSlit, DdtGraphicalElementRefLine, DdtGraphicalElementRectangle, DdtGraphicalElementLine, DdtGraphicalElementEllipse, DdtGraphicalElementCross, and DdtGraphicalElementCompass.
|
virtual |
Getter for tags
|
virtual |
Getter of element type
|
virtual |
Getter of element type string representation
|
virtual |
Checks if the graphical element shall be hidden
| void DdtGraphicalElement::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | option, | ||
| QWidget * | widget | ||
| ) |
Method used to paint the graphics item
| painter | Pointer to the painter painting the graphics item |
| option | Pointer to the style options |
| widget | Pointer to the parent widget |
|
virtual |
Check the threshold scale value for this graphical element
|
virtual |
Set show flag
|
protected |
Element properties
|
protected |
Type of overlay element