|
ddt 1.2.1
|
#include <ddtGraphicalOverlay.hpp>
| DdtGraphicalOverlay () | |
| virtual | ~DdtGraphicalOverlay () |
| void | AddGraphicalElement (DdtGraphicalElement *const element) |
| void | RemoveGraphicalElement (DdtGraphicalElement *const element) |
| QList< DdtGraphicalElement * > * | GetListOfGraphicalElements () |
| QList< DdtGraphicalElement * > | GetElementByTag (const QString tag) const |
| QStringList | GetListOfElementIDs () const |
| void | ShowAllElements () const |
| void | HideAllElements () const |
| void | ShowElementsOfType (const DdtOverlayType type, const bool show_ids=false, const QString id_list="") const |
| void | HideElementsOfType (const DdtOverlayType type) const |
| void | ShowElementsOfTag (const QString tag) const |
| void | HideElementsOfTag (const QString tag) const |
| void | RemoveElementsOfType (const DdtOverlayType type) |
| void | SetShowHideFlags (DdtOverlayType ovltype, const bool show, const QString tag="", const bool show_ids=false, const QString id_list="") const |
Class for the graphical overlays
|
explicitdefault |
Constructor
|
virtualdefault |
Destructor
| void DdtGraphicalOverlay::AddGraphicalElement | ( | DdtGraphicalElement *const | element | ) |
Adds a graphical element to the overlay
| element | Pointer to the element object |
| QList< DdtGraphicalElement * > DdtGraphicalOverlay::GetElementByTag | ( | const QString | tag | ) | const |
Return a list of graphical elements with a given tag that are contained in the overlay
| QStringList DdtGraphicalOverlay::GetListOfElementIDs | ( | ) | const |
Return a list of IDs (tool tips) that have been set for the graphical elements that are contained in the overlay
| QList< DdtGraphicalElement * > * DdtGraphicalOverlay::GetListOfGraphicalElements | ( | ) |
Return a list of graphical elements that are contained in the overlay
| void DdtGraphicalOverlay::HideAllElements | ( | ) | const |
Removes the show flag for all elements in the overlay
| void DdtGraphicalOverlay::HideElementsOfTag | ( | const QString | tag | ) | const |
Removes the show flag for all elements of a given tag in the overlay
| tag | Overlay element tag |
| void DdtGraphicalOverlay::HideElementsOfType | ( | const DdtOverlayType | type | ) | const |
Removes the show flag for all elements of a given type in the overlay
| type | Overlay element type |
| void DdtGraphicalOverlay::RemoveElementsOfType | ( | const DdtOverlayType | type | ) |
Remove all elements of given type
| type | Overlay element type |
| void DdtGraphicalOverlay::RemoveGraphicalElement | ( | DdtGraphicalElement *const | element | ) |
Removes a graphical elemet from the overlay
| element | Pointer to the element object |
|
protected |
Set show / hide flags for different elements selected by type, tag etc. Optional argument tag can be used to filer by tag
| ovltype | Type of overlay element |
| show | Show or hide flag |
| tag | Tag of elements to show or hide |
| showIds | Flag to show or hide IDs |
| id_list | List of IDs |
| void DdtGraphicalOverlay::ShowAllElements | ( | ) | const |
Sets the show flag for all elements in the overlay
| void DdtGraphicalOverlay::ShowElementsOfTag | ( | const QString | tag | ) | const |
Sets the show flag for all elements of a given tag in the overlay
| tag | Overlay element tag |
| void DdtGraphicalOverlay::ShowElementsOfType | ( | const DdtOverlayType | type, |
| const bool | show_ids = false, | ||
| const QString | id_list = "" ) const |
Sets the show flag for all elements of a given type in the overlay
| type | Overlay element type |
| showIds | Specifies to show IDs or not |
| id_list | List of IDs |