ddt  0.1
ddtGraphicalElementText.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 ddtGraphicalElementText.hpp
8 // @brief DDT Graphics. Class for text
9 //
10 // Class for the Graphical Elements - Text
11 //
12 // @author Carsten Mannel, CGI
13 // @since 2021/01/15
14 //
15 
16 #ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_TEXT_HPP
17 #define DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_TEXT_HPP
18 
19 #include "ddtGraphicalElement.hpp"
20 
25  public:
29  explicit DdtGraphicalElementText(
31  QString text);
32 
37 
41  virtual void DrawElement(QPainter* painter);
42 
47  QRectF boundingRect() const;
48 
53  int type() const;
54 
55  protected:
59  int x;
60 
64  int y;
65 
69  QString text;
70 
71  private:
72 };
73 
74 #endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_TEXT_HPP
DdtGraphicalElementText
Definition: ddtGraphicalElementText.hpp:24
DdtGraphicalElement::element_properties
DdtGraphicalElementProperties element_properties
Definition: ddtGraphicalElement.hpp:145
DdtGraphicalElement
Definition: ddtGraphicalElement.hpp:78
DdtGraphicalElementText::boundingRect
QRectF boundingRect() const
Definition: ddtGraphicalElementText.cpp:30
ddtGraphicalElement.hpp
DdtGraphicalElementText::type
int type() const
Definition: ddtGraphicalElementText.cpp:36
DdtGraphicalElementText::DrawElement
virtual void DrawElement(QPainter *painter)
Definition: ddtGraphicalElementText.cpp:44
DdtGraphicalElementText::y
int y
Definition: ddtGraphicalElementText.hpp:64
DdtGraphicalElementText::~DdtGraphicalElementText
virtual ~DdtGraphicalElementText()
DdtGraphicalElementProperties
Definition: ddtGraphicalElementProperties.hpp:27
DdtGraphicalElementText::text
QString text
Definition: ddtGraphicalElementText.hpp:69
DdtGraphicalElementText::DdtGraphicalElementText
DdtGraphicalElementText(DdtGraphicalElementProperties element_properties, int x, int y, QString text)
Definition: ddtGraphicalElementText.cpp:21
DdtGraphicalElementText::x
int x
Definition: ddtGraphicalElementText.hpp:59