ddt  0.1
ddtGraphicalElementCompass.hpp
Go to the documentation of this file.
1 // @copyright
2 // (c) Copyright ESO 2020
3 // All Rights Reserved
4 // ESO (eso.org) is an Intergovernmental Organization, and therefore special
5 // legal conditions apply.
6 //
7 // @file ddtGraphicalElementCompass.hpp
8 // @brief DDT Graphics. Class for compass elements
9 //
10 // Class for the Graphical Elements - Compass
11 //
12 // @author Christoph Bortlisz, CGI
13 // @since 2021/05/04
14 //
15 
16 #ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_COMPASS_HPP
17 #define DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_COMPASS_HPP
18 
19 #include "ddtGraphicalElement.hpp"
20 
25  public:
31  const double y, const double w, const double h);
32 
37 
41  virtual void DrawElement(QPainter* painter);
42 
47  QRectF boundingRect() const;
48 
53  int type() const;
54 
58  void SetFirstAxisLabel(const QString label);
59 
63  void SetSecondAxisLabel(const QString label);
64 
65  protected:
69  double x;
70 
74  double y;
75 
79  double width;
80 
84  double height;
85 
89  QString first_axis_label = "N";
90 
94  QString second_axis_label = "E";
95 };
96 
97 #endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_COMPASS_HPP
DdtGraphicalElementCompass::first_axis_label
QString first_axis_label
Definition: ddtGraphicalElementCompass.hpp:89
DdtGraphicalElement::element_properties
DdtGraphicalElementProperties element_properties
Definition: ddtGraphicalElement.hpp:145
DdtGraphicalElementCompass::width
double width
Definition: ddtGraphicalElementCompass.hpp:79
DdtGraphicalElement
Definition: ddtGraphicalElement.hpp:78
DdtGraphicalElementCompass
Definition: ddtGraphicalElementCompass.hpp:24
DdtGraphicalElementCompass::height
double height
Definition: ddtGraphicalElementCompass.hpp:84
DdtGraphicalElementCompass::DdtGraphicalElementCompass
DdtGraphicalElementCompass(const DdtGraphicalElementProperties element_properties, const double x, const double y, const double w, const double h)
Definition: ddtGraphicalElementCompass.cpp:22
DdtGraphicalElementCompass::~DdtGraphicalElementCompass
virtual ~DdtGraphicalElementCompass()
ddtGraphicalElement.hpp
DdtGraphicalElementCompass::second_axis_label
QString second_axis_label
Definition: ddtGraphicalElementCompass.hpp:94
DdtGraphicalElementCompass::SetSecondAxisLabel
void SetSecondAxisLabel(const QString label)
Definition: ddtGraphicalElementCompass.cpp:111
DdtGraphicalElementCompass::y
double y
Definition: ddtGraphicalElementCompass.hpp:74
DdtGraphicalElementCompass::type
int type() const
Definition: ddtGraphicalElementCompass.cpp:35
DdtGraphicalElementCompass::DrawElement
virtual void DrawElement(QPainter *painter)
Definition: ddtGraphicalElementCompass.cpp:43
DdtGraphicalElementCompass::x
double x
Definition: ddtGraphicalElementCompass.hpp:69
DdtGraphicalElementCompass::SetFirstAxisLabel
void SetFirstAxisLabel(const QString label)
Definition: ddtGraphicalElementCompass.cpp:107
DdtGraphicalElementProperties
Definition: ddtGraphicalElementProperties.hpp:27
DdtGraphicalElementCompass::boundingRect
QRectF boundingRect() const
Definition: ddtGraphicalElementCompass.cpp:31