ddt  0.1
ddtGraphicalElementSlit.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 ddtGraphicalElementSlit.hpp
8 // @brief DDT Graphics. Class for slit elements
9 //
10 // Class for the Graphical Elements - Slit
11 //
12 // @author Christoph Bortlisz, CGI
13 // @since 2021/03/01
14 //
15 
16 #ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_SLIT_HPP
17 #define DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_SLIT_HPP
18 
19 #include "ddtGraphicalElement.hpp"
20 
25  public:
29  explicit DdtGraphicalElementSlit(
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 
55  protected:
59  double x;
60 
64  double y;
65 
69  double width;
70 
74  double height;
75 
76  private:
77 };
78 
79 #endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_SLIT_HPP
DdtGraphicalElementSlit::height
double height
Definition: ddtGraphicalElementSlit.hpp:74
DdtGraphicalElementSlit
Definition: ddtGraphicalElementSlit.hpp:24
DdtGraphicalElement::element_properties
DdtGraphicalElementProperties element_properties
Definition: ddtGraphicalElement.hpp:145
DdtGraphicalElementSlit::boundingRect
QRectF boundingRect() const
Definition: ddtGraphicalElementSlit.cpp:30
DdtGraphicalElement
Definition: ddtGraphicalElement.hpp:78
DdtGraphicalElementSlit::DdtGraphicalElementSlit
DdtGraphicalElementSlit(const DdtGraphicalElementProperties element_properties, const double x, const double y, const double w, const double h)
Definition: ddtGraphicalElementSlit.cpp:21
ddtGraphicalElement.hpp
DdtGraphicalElementSlit::type
int type() const
Definition: ddtGraphicalElementSlit.cpp:34
DdtGraphicalElementSlit::x
double x
Definition: ddtGraphicalElementSlit.hpp:59
DdtGraphicalElementSlit::y
double y
Definition: ddtGraphicalElementSlit.hpp:64
DdtGraphicalElementSlit::DrawElement
virtual void DrawElement(QPainter *painter)
Definition: ddtGraphicalElementSlit.cpp:42
DdtGraphicalElementSlit::width
double width
Definition: ddtGraphicalElementSlit.hpp:69
DdtGraphicalElementProperties
Definition: ddtGraphicalElementProperties.hpp:27
DdtGraphicalElementSlit::~DdtGraphicalElementSlit
virtual ~DdtGraphicalElementSlit()