ddt  1.0.0
ddtGraphicalElementImage.hpp
Go to the documentation of this file.
1 
19 #ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_IMAGE_HPP
20 #define DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_IMAGE_HPP
21 
22 #include "ddtGraphicalElement.hpp"
23 
28  public:
38  explicit DdtGraphicalElementImage(
40  const int y, const int width, const int height, const QString file_name);
41 
46 
50  void DrawElement(QPainter* painter) override;
51 
56  QRectF boundingRect() const override;
57 
62  int type() const override;
63 
64  protected:
68  int x;
69 
73  int y;
74 
78  int width;
79 
83  int height;
84 
88  QString filename;
89 };
90 
91 #endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GE_IMAGE_HPP
92 
Definition: ddtGraphicalElementImage.hpp:27
QRectF boundingRect() const override
Definition: ddtGraphicalElementImage.cpp:37
int y
Definition: ddtGraphicalElementImage.hpp:73
int type() const override
Definition: ddtGraphicalElementImage.cpp:42
QString filename
Definition: ddtGraphicalElementImage.hpp:88
void DrawElement(QPainter *painter) override
Definition: ddtGraphicalElementImage.cpp:49
~DdtGraphicalElementImage() override
int width
Definition: ddtGraphicalElementImage.hpp:78
int height
Definition: ddtGraphicalElementImage.hpp:83
int x
Definition: ddtGraphicalElementImage.hpp:68
DdtGraphicalElementImage(const DdtGraphicalElementProperties &element_properties, const int x, const int y, const int width, const int height, const QString file_name)
Definition: ddtGraphicalElementImage.cpp:23
Definition: ddtGraphicalElementProperties.hpp:29
Definition: ddtGraphicalElement.hpp:89
DdtGraphicalElementProperties element_properties
Definition: ddtGraphicalElement.hpp:257
DDT Graphics. Base Class for the DDT Graphical Elements. Elements can be lines, ovals,...