ddt 1.2.1
Loading...
Searching...
No Matches
ddtGraphicalElementCompass.hpp
Go to the documentation of this file.
1
19#ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_COMPASS_HPP
20#define DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_COMPASS_HPP
21
23
28 public:
39 const double y, const double w, const double h);
40
45
49 virtual void DrawElement(QPainter* painter) override;
50
55 QRectF boundingRect() const override;
56
61 int type() const override;
62
67 void SetFirstAxisLabel(const QString label);
68
73 void SetSecondAxisLabel(const QString label);
74
75 protected:
79 double x;
80
84 double y;
85
89 double width;
90
94 double height;
95
99 QString first_axis_label = "N";
100
104 QString second_axis_label = "E";
105};
106
107#endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_COMPASS_HPP
108
Definition ddtGraphicalElementCompass.hpp:27
double height
Definition ddtGraphicalElementCompass.hpp:94
virtual ~DdtGraphicalElementCompass()
QString first_axis_label
Definition ddtGraphicalElementCompass.hpp:99
int type() const override
Definition ddtGraphicalElementCompass.cpp:38
double y
Definition ddtGraphicalElementCompass.hpp:84
void SetFirstAxisLabel(const QString label)
Definition ddtGraphicalElementCompass.cpp:115
DdtGraphicalElementCompass(const DdtGraphicalElementProperties element_properties, const double x, const double y, const double w, const double h)
Definition ddtGraphicalElementCompass.cpp:25
virtual void DrawElement(QPainter *painter) override
Definition ddtGraphicalElementCompass.cpp:46
QRectF boundingRect() const override
Definition ddtGraphicalElementCompass.cpp:34
QString second_axis_label
Definition ddtGraphicalElementCompass.hpp:104
double x
Definition ddtGraphicalElementCompass.hpp:79
void SetSecondAxisLabel(const QString label)
Definition ddtGraphicalElementCompass.cpp:119
double width
Definition ddtGraphicalElementCompass.hpp:89
Definition ddtGraphicalElementProperties.hpp:29
Definition ddtGraphicalElement.hpp:89
DdtGraphicalElementProperties element_properties
Definition ddtGraphicalElement.hpp:257
DDT Graphics. Base Class for the DDT Graphical Elements. Elements can be lines, ovals,...