ddt 1.4.0
 
Loading...
Searching...
No Matches
ddtGraphicalElementCompass.hpp
Go to the documentation of this file.
1
9
10#ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_COMPASS_HPP
11#define DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_COMPASS_HPP
12
14
19 public:
30 const double y, const double w, const double h);
31
36
40 virtual void DrawElement(QPainter* painter) override;
41
46 QRectF boundingRect() const override;
47
52 int type() const override;
53
58 void SetFirstAxisLabel(const QString label);
59
64 void SetSecondAxisLabel(const QString label);
65
66 protected:
70 double x;
71
75 double y;
76
80 double width;
81
85 double height;
86
90 QString first_axis_label = "N";
91
95 QString second_axis_label = "E";
96};
97
98#endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_COMPASS_HPP
double height
Definition ddtGraphicalElementCompass.hpp:85
virtual ~DdtGraphicalElementCompass()
QString first_axis_label
Definition ddtGraphicalElementCompass.hpp:90
int type() const override
Definition ddtGraphicalElementCompass.cpp:29
double y
Definition ddtGraphicalElementCompass.hpp:75
void SetFirstAxisLabel(const QString label)
Definition ddtGraphicalElementCompass.cpp:106
DdtGraphicalElementCompass(const DdtGraphicalElementProperties element_properties, const double x, const double y, const double w, const double h)
Definition ddtGraphicalElementCompass.cpp:16
virtual void DrawElement(QPainter *painter) override
Definition ddtGraphicalElementCompass.cpp:37
QRectF boundingRect() const override
Definition ddtGraphicalElementCompass.cpp:25
QString second_axis_label
Definition ddtGraphicalElementCompass.hpp:95
double x
Definition ddtGraphicalElementCompass.hpp:70
void SetSecondAxisLabel(const QString label)
Definition ddtGraphicalElementCompass.cpp:110
double width
Definition ddtGraphicalElementCompass.hpp:80
Definition ddtGraphicalElementProperties.hpp:20
DdtGraphicalElementProperties element_properties
Definition ddtGraphicalElement.hpp:248
DdtGraphicalElement(DdtGraphicalElementProperties const &element_properties, const QString obj_name="", const QString elem_name="")
Definition ddtGraphicalElement.cpp:15
DDT Graphics. Base Class for the DDT Graphical Elements. Elements can be lines, ovals,...