ddt  0.1
ddtGraphicalOverlay.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 ddtGraphicalOverlay.hpp
8 // @brief DDT Graphics. Class for the DDT Graphical Overlays. This class can be
9 // used to build a set of overlay elements. Each of those elements will be a
10 // DdtGraphicalElement (which can be lines, ovals, rectangles etc.)
11 //
12 // Class for the Graphical Overlays
13 //
14 // @author Carsten Mannel, CGI
15 // @since 2021/01/13
16 //
17 
18 #ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GRAPHICALOVERLAY_HPP
19 #define DDT_DATAVISUALISATION_DDTGRAPHCIS_GRAPHICALOVERLAY_HPP
20 
21 #include <string>
22 
25 
30  public:
34  explicit DdtGraphicalOverlay();
35 
40 
46 
52 
57  QList<DdtGraphicalElement*>* GetListOfGraphicalElements();
58 
65  QList<DdtGraphicalElement*> GetElementByTag(QString tag);
66 
70  void ShowAllElements();
71 
75  void HideAllElements();
76 
82 
88 
93  void ShowElementsOfTag(QString tag);
94 
99  void HideElementsOfTag(QString tag);
100 
106 
107  protected:
115  void SetShowHideFlags(DdtOverlayType type, bool show, QString tag = "");
116 
117  private:
118  QList<DdtGraphicalElement*> graphical_elements;
119 };
120 
121 #endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GRAPHICALOVERLAY_HPP
DdtGraphicalOverlay
Definition: ddtGraphicalOverlay.hpp:29
DdtGraphicalOverlay::GetListOfGraphicalElements
QList< DdtGraphicalElement * > * GetListOfGraphicalElements()
Definition: ddtGraphicalOverlay.cpp:36
DdtGraphicalElement
Definition: ddtGraphicalElement.hpp:70
DdtGraphicalOverlay::ShowAllElements
void ShowAllElements()
Definition: ddtGraphicalOverlay.cpp:53
DdtGraphicalOverlay::HideElementsOfTag
void HideElementsOfTag(QString tag)
Definition: ddtGraphicalOverlay.cpp:73
ddtGraphicalElements.hpp
ddtGraphicalElement.hpp
DdtGraphicalOverlay::DdtGraphicalOverlay
DdtGraphicalOverlay()
DdtGraphicalOverlay::RemoveElementsOfType
void RemoveElementsOfType(DdtOverlayType type)
Definition: ddtGraphicalOverlay.cpp:77
DdtGraphicalOverlay::ShowElementsOfType
void ShowElementsOfType(DdtOverlayType type)
Definition: ddtGraphicalOverlay.cpp:61
DdtGraphicalOverlay::RemoveGraphicalElement
void RemoveGraphicalElement(DdtGraphicalElement *element)
Definition: ddtGraphicalOverlay.cpp:26
DdtGraphicalOverlay::~DdtGraphicalOverlay
virtual ~DdtGraphicalOverlay()
DdtGraphicalOverlay::AddGraphicalElement
void AddGraphicalElement(DdtGraphicalElement *element)
Definition: ddtGraphicalOverlay.cpp:22
DdtGraphicalOverlay::HideElementsOfType
void HideElementsOfType(DdtOverlayType type)
Definition: ddtGraphicalOverlay.cpp:65
DdtGraphicalOverlay::GetElementByTag
QList< DdtGraphicalElement * > GetElementByTag(QString tag)
Definition: ddtGraphicalOverlay.cpp:40
DdtGraphicalOverlay::ShowElementsOfTag
void ShowElementsOfTag(QString tag)
Definition: ddtGraphicalOverlay.cpp:69
DdtGraphicalOverlay::HideAllElements
void HideAllElements()
Definition: ddtGraphicalOverlay.cpp:57
DdtOverlayType
DdtOverlayType
Definition: ddtGraphicalElement.hpp:28
DdtGraphicalOverlay::SetShowHideFlags
void SetShowHideFlags(DdtOverlayType type, bool show, QString tag="")
Definition: ddtGraphicalOverlay.cpp:87