|
ddt
0.1
|
#include <ddtGraphicalElementCompass.hpp>
Public Member Functions | |
| DdtGraphicalElementCompass (const DdtGraphicalElementProperties element_properties, const double x, const double y, const double w, const double h) | |
| virtual | ~DdtGraphicalElementCompass () |
| virtual void | DrawElement (QPainter *painter) |
| QRectF | boundingRect () const |
| int | type () const |
| void | SetFirstAxisLabel (const QString label) |
| void | SetSecondAxisLabel (const QString label) |
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 | x |
| double | y |
| double | width |
| double | height |
| QString | first_axis_label = "N" |
| QString | second_axis_label = "E" |
Protected Attributes inherited from DdtGraphicalElement | |
| DdtGraphicalElementProperties | element_properties |
| DdtOverlayType | element_type |
Class for the graphical elements drawing rectangles
|
explicit |
Constructor
|
virtualdefault |
Destructor
|
virtual |
Function returning the bounding box of the graphics item
Reimplemented from DdtGraphicalElement.
|
virtual |
Virtual function for rendering the graphical element
Implements DdtGraphicalElement.
| void DdtGraphicalElementCompass::SetFirstAxisLabel | ( | const QString | label | ) |
Set the label for the first axis (is initialized to "N")
| void DdtGraphicalElementCompass::SetSecondAxisLabel | ( | const QString | label | ) |
Set the label for the second axis (is initialized to "E")
| int DdtGraphicalElementCompass::type | ( | ) | const |
Check type of graphics item
|
protected |
Label for the first axis
|
protected |
Height of rectangle
|
protected |
Label for the second axis
|
protected |
Width of rectangle
|
protected |
x position of rectangle
|
protected |
y position of rectangle