ddt  0.1
ddtGraphicalElementRectangle.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 ddtGraphicalElementRectangle.hpp
8 // @brief DDT Graphics. Class for rectangle elements
9 //
10 // Class for the Graphical Elements - Rectangles
11 //
12 // @author Carsten Mannel, CGI
13 // @since 2021/01/14
14 //
15 
16 #ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_RECTANGLE_HPP
17 #define DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_RECTANGLE_HPP
18 
19 #include "ddtGraphicalElement.hpp"
20 
25  public:
31  int h);
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  int width;
70 
74  int height;
75 
76  private:
77 };
78 
79 #endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_RECTANGLE_HPP
DdtGraphicalElementRectangle::boundingRect
QRectF boundingRect() const
Definition: ddtGraphicalElementRectangle.cpp:27
DdtGraphicalElement::element_properties
DdtGraphicalElementProperties element_properties
Definition: ddtGraphicalElement.hpp:145
DdtGraphicalElementRectangle::y
int y
Definition: ddtGraphicalElementRectangle.hpp:64
DdtGraphicalElement
Definition: ddtGraphicalElement.hpp:78
DdtGraphicalElementRectangle::type
int type() const
Definition: ddtGraphicalElementRectangle.cpp:31
DdtGraphicalElementRectangle::width
int width
Definition: ddtGraphicalElementRectangle.hpp:69
DdtGraphicalElementRectangle::~DdtGraphicalElementRectangle
virtual ~DdtGraphicalElementRectangle()
DdtGraphicalElementRectangle
Definition: ddtGraphicalElementRectangle.hpp:24
ddtGraphicalElement.hpp
DdtGraphicalElementRectangle::DdtGraphicalElementRectangle
DdtGraphicalElementRectangle(DdtGraphicalElementProperties element_properties, int x, int y, int w, int h)
Definition: ddtGraphicalElementRectangle.cpp:18
DdtGraphicalElementRectangle::DrawElement
virtual void DrawElement(QPainter *painter)
Definition: ddtGraphicalElementRectangle.cpp:39
DdtGraphicalElementRectangle::x
int x
Definition: ddtGraphicalElementRectangle.hpp:59
DdtGraphicalElementRectangle::height
int height
Definition: ddtGraphicalElementRectangle.hpp:74
DdtGraphicalElementProperties
Definition: ddtGraphicalElementProperties.hpp:27