ddt  0.1
ddtGraphicalElementImage.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 ddtGraphicalElementImage.hpp
8 // @brief DDT Graphics. Class for images
9 //
10 // Class for the Graphical Elements - Image
11 //
12 // @author Christoph Bortlisz, CGI
13 // @since 2021/06/17
14 //
15 
16 #ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_IMAGE_HPP
17 #define DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_IMAGE_HPP
18 
19 #include "ddtGraphicalElement.hpp"
20 
25  public:
29  explicit DdtGraphicalElementImage(
31  const int y, const int width, const int height, const QString file_name);
32 
37 
41  void DrawElement(QPainter* painter) override;
42 
47  QRectF boundingRect() const override;
48 
53  int type() const override;
54 
55  protected:
59  int x;
60 
64  int y;
65 
69  int width;
70 
74  int height;
75 
79  QString filename;
80 };
81 
82 #endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_IMAGE_HPP
DdtGraphicalElementImage::boundingRect
QRectF boundingRect() const override
Definition: ddtGraphicalElementImage.cpp:34
DdtGraphicalElement::element_properties
DdtGraphicalElementProperties element_properties
Definition: ddtGraphicalElement.hpp:145
DdtGraphicalElement
Definition: ddtGraphicalElement.hpp:78
DdtGraphicalElementImage::x
int x
Definition: ddtGraphicalElementImage.hpp:59
DdtGraphicalElementImage::width
int width
Definition: ddtGraphicalElementImage.hpp:69
DdtGraphicalElementImage::filename
QString filename
Definition: ddtGraphicalElementImage.hpp:79
ddtGraphicalElement.hpp
DdtGraphicalElementImage::height
int height
Definition: ddtGraphicalElementImage.hpp:74
DdtGraphicalElementImage::DrawElement
void DrawElement(QPainter *painter) override
Definition: ddtGraphicalElementImage.cpp:46
DdtGraphicalElementImage::DdtGraphicalElementImage
DdtGraphicalElementImage(const DdtGraphicalElementProperties &element_properties, const int x, const int y, const int width, const int height, const QString file_name)
Definition: ddtGraphicalElementImage.cpp:20
DdtGraphicalElementImage::type
int type() const override
Definition: ddtGraphicalElementImage.cpp:39
DdtGraphicalElementImage::~DdtGraphicalElementImage
~DdtGraphicalElementImage() override
DdtGraphicalElementImage
Definition: ddtGraphicalElementImage.hpp:24
DdtGraphicalElementProperties
Definition: ddtGraphicalElementProperties.hpp:27
DdtGraphicalElementImage::y
int y
Definition: ddtGraphicalElementImage.hpp:64