ddt  0.1
ddtGraphicalElementLine.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 ddtGraphicalElementCross.hpp
8 // @brief DDT Graphics. Class for lines
9 //
10 // Class for the Graphical Elements - Line
11 //
12 // @author Carsten Mannel, CGI
13 // @since 2021/01/15
14 //
15 
16 #ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_LINE_HPP
17 #define DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_LINE_HPP
18 
19 #include "ddtGraphicalElement.hpp"
20 
25  public:
29  explicit DdtGraphicalElementLine(
31  int y2);
32 
37 
41  virtual void DrawElement(QPainter* painter);
42 
47  QRectF boundingRect() const;
48 
53  int type() const;
54 
55  protected:
59  int x1;
60 
64  int y1;
65 
69  int x2;
70 
74  int y2;
75 
76  private:
77 };
78 
79 #endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_LINE_HPP
DdtGraphicalElementLine::y1
int y1
Definition: ddtGraphicalElementLine.hpp:64
DdtGraphicalElementLine::DrawElement
virtual void DrawElement(QPainter *painter)
Definition: ddtGraphicalElementLine.cpp:45
DdtGraphicalElementLine::DdtGraphicalElementLine
DdtGraphicalElementLine(DdtGraphicalElementProperties element_properties, int x1, int y1, int x2, int y2)
Definition: ddtGraphicalElementLine.cpp:20
DdtGraphicalElementLine::~DdtGraphicalElementLine
virtual ~DdtGraphicalElementLine()
DdtGraphicalElement::element_properties
DdtGraphicalElementProperties element_properties
Definition: ddtGraphicalElement.hpp:145
DdtGraphicalElement
Definition: ddtGraphicalElement.hpp:78
DdtGraphicalElementLine::y2
int y2
Definition: ddtGraphicalElementLine.hpp:74
DdtGraphicalElementLine
Definition: ddtGraphicalElementLine.hpp:24
DdtGraphicalElementLine::type
int type() const
Definition: ddtGraphicalElementLine.cpp:37
ddtGraphicalElement.hpp
DdtGraphicalElementLine::boundingRect
QRectF boundingRect() const
Definition: ddtGraphicalElementLine.cpp:29
DdtGraphicalElementLine::x1
int x1
Definition: ddtGraphicalElementLine.hpp:59
DdtGraphicalElementLine::x2
int x2
Definition: ddtGraphicalElementLine.hpp:69
DdtGraphicalElementProperties
Definition: ddtGraphicalElementProperties.hpp:27