ddt 1.4.0
 
Loading...
Searching...
No Matches
ddtGraphicalOverlay.hpp
Go to the documentation of this file.
1
11
12#ifndef DDT_DATAVISUALISATION_DDTGRAPHCIS_GRAPHICALOVERLAY_HPP
13#define DDT_DATAVISUALISATION_DDTGRAPHCIS_GRAPHICALOVERLAY_HPP
14
17
22 public:
27
32
37 void AddGraphicalElement(DdtGraphicalElement* const element);
38
44
49 QList<DdtGraphicalElement*>* GetListOfGraphicalElements();
50
57 QList<DdtGraphicalElement*> GetElementByTag(const QString tag) const;
58
64 QStringList GetListOfElementIDs() const;
65
69 void ShowAllElements() const;
70
74 void HideAllElements() const;
75
82 void ShowElementsOfType(const DdtOverlayType type,
83 const bool show_ids = false,
84 const QString id_list = "") const;
85
90 void HideElementsOfType(const DdtOverlayType type) const;
91
96 void ShowElementsOfTag(const QString tag) const;
97
102 void HideElementsOfTag(const QString tag) const;
103
108 void RemoveElementsOfType(const DdtOverlayType type);
109
110 protected:
120 void SetShowHideFlags(DdtOverlayType ovltype, const bool show,
121 const QString tag = "", const bool show_ids = false,
122 const QString id_list = "") const;
123
124 private:
125 QList<DdtGraphicalElement*> graphical_elements;
126
127 int next_index = 1;
128};
129
130#endif // DDT_DATAVISUALISATION_DDTGRAPHCIS_GRAPHICALOVERLAY_HPP
Definition ddtGraphicalElement.hpp:80
QList< DdtGraphicalElement * > * GetListOfGraphicalElements()
Definition ddtGraphicalOverlay.cpp:52
void RemoveElementsOfType(const DdtOverlayType type)
Definition ddtGraphicalOverlay.cpp:105
QStringList GetListOfElementIDs() const
Definition ddtGraphicalOverlay.cpp:41
void ShowAllElements() const
Definition ddtGraphicalOverlay.cpp:73
void RemoveGraphicalElement(DdtGraphicalElement *const element)
Definition ddtGraphicalOverlay.cpp:28
void SetShowHideFlags(DdtOverlayType ovltype, const bool show, const QString tag="", const bool show_ids=false, const QString id_list="") const
Definition ddtGraphicalOverlay.cpp:120
virtual ~DdtGraphicalOverlay()
void AddGraphicalElement(DdtGraphicalElement *const element)
Definition ddtGraphicalOverlay.cpp:18
void HideElementsOfTag(const QString tag) const
Definition ddtGraphicalOverlay.cpp:100
void HideAllElements() const
Definition ddtGraphicalOverlay.cpp:78
void ShowElementsOfType(const DdtOverlayType type, const bool show_ids=false, const QString id_list="") const
Definition ddtGraphicalOverlay.cpp:83
QList< DdtGraphicalElement * > GetElementByTag(const QString tag) const
Definition ddtGraphicalOverlay.cpp:56
void ShowElementsOfTag(const QString tag) const
Definition ddtGraphicalOverlay.cpp:95
void HideElementsOfType(const DdtOverlayType type) const
Definition ddtGraphicalOverlay.cpp:90
DDT Graphics. Base Class for the DDT Graphical Elements. Elements can be lines, ovals,...
DdtOverlayType
Definition ddtGraphicalElement.hpp:26
DDT Graphics. Include file to include all supported graphical element types. Include list for the Gra...