ddt  1.0.0
ddtGraphicalOverlay.hpp
Go to the documentation of this file.
1 
21 #ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GRAPHICALOVERLAY_HPP
22 #define DDT_DATAVISUALISATION_DDTGRAPHCIS_GRAPHICALOVERLAY_HPP
23 
26 
31  public:
35  explicit DdtGraphicalOverlay();
36 
41 
46  void AddGraphicalElement(DdtGraphicalElement* const element);
47 
52  void RemoveGraphicalElement(DdtGraphicalElement* const element);
53 
58  QList<DdtGraphicalElement*>* GetListOfGraphicalElements();
59 
66  QList<DdtGraphicalElement*> GetElementByTag(const QString tag) const;
67 
73  QStringList GetListOfElementIDs() const;
74 
78  void ShowAllElements() const;
79 
83  void HideAllElements() const;
84 
91  void ShowElementsOfType(const DdtOverlayType type,
92  const bool show_ids = false,
93  const QString id_list = "") const;
94 
99  void HideElementsOfType(const DdtOverlayType type) const;
100 
105  void ShowElementsOfTag(const QString tag) const;
106 
111  void HideElementsOfTag(const QString tag) const;
112 
117  void RemoveElementsOfType(const DdtOverlayType type);
118 
119  protected:
129  void SetShowHideFlags(DdtOverlayType ovltype, const bool show,
130  const QString tag = "", const bool show_ids = false,
131  const QString id_list = "") const;
132 
133  private:
134  QList<DdtGraphicalElement*> graphical_elements;
135 
136  int next_index = 1;
137 };
138 
139 #endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GRAPHICALOVERLAY_HPP
140 
Definition: ddtGraphicalElement.hpp:89
Definition: ddtGraphicalOverlay.hpp:30
QList< DdtGraphicalElement * > * GetListOfGraphicalElements()
Definition: ddtGraphicalOverlay.cpp:61
void RemoveElementsOfType(const DdtOverlayType type)
Definition: ddtGraphicalOverlay.cpp:114
QStringList GetListOfElementIDs() const
Definition: ddtGraphicalOverlay.cpp:50
void ShowAllElements() const
Definition: ddtGraphicalOverlay.cpp:82
void RemoveGraphicalElement(DdtGraphicalElement *const element)
Definition: ddtGraphicalOverlay.cpp:37
void SetShowHideFlags(DdtOverlayType ovltype, const bool show, const QString tag="", const bool show_ids=false, const QString id_list="") const
Definition: ddtGraphicalOverlay.cpp:129
virtual ~DdtGraphicalOverlay()
void AddGraphicalElement(DdtGraphicalElement *const element)
Definition: ddtGraphicalOverlay.cpp:27
void HideElementsOfTag(const QString tag) const
Definition: ddtGraphicalOverlay.cpp:109
void HideAllElements() const
Definition: ddtGraphicalOverlay.cpp:87
void ShowElementsOfType(const DdtOverlayType type, const bool show_ids=false, const QString id_list="") const
Definition: ddtGraphicalOverlay.cpp:92
QList< DdtGraphicalElement * > GetElementByTag(const QString tag) const
Definition: ddtGraphicalOverlay.cpp:65
void ShowElementsOfTag(const QString tag) const
Definition: ddtGraphicalOverlay.cpp:104
void HideElementsOfType(const DdtOverlayType type) const
Definition: ddtGraphicalOverlay.cpp:99
DDT Graphics. Base Class for the DDT Graphical Elements. Elements can be lines, ovals,...
DdtOverlayType
Definition: ddtGraphicalElement.hpp:35
DDT Graphics. Include file to include all supported graphical element types. Include list for the Gra...