ddt 1.2.1
|
#include <ddtFileBasedOverlay.hpp>
DdtFileBasedOverlay () | |
virtual | ~DdtFileBasedOverlay () |
void | AddGraphicalElement (DdtGraphicalElement *const element) |
void | RemoveGraphicalElements () |
QList< DdtGraphicalElement * > * | GetListOfGraphicalElements () |
bool | LoadOverlayFile (const QString overlay_file, const std::string image_widget_name, QString &error_msg) |
void | ShowOverlay () const |
void | HideOverlay () const |
void | ShowOverlayByObject (const QString object_name) const |
void | HideOverlayByObject (const QString object_name) const |
void | ShowOverlayByElement (const QString element_name) const |
void | HideOverlayByElement (const QString element_name) const |
std::string | ParseElementType (pt::ptree &elem_type) |
Class for the file based overlays
|
explicitdefault |
Constructor
|
virtualdefault |
Destructor
void DdtFileBasedOverlay::AddGraphicalElement | ( | DdtGraphicalElement *const | element | ) |
Adds a graphical element to the overlay
element | Pointer to the element object |
QList< DdtGraphicalElement * > * DdtFileBasedOverlay::GetListOfGraphicalElements | ( | ) |
Return a list of graphical elements that are contained in the overlay
void DdtFileBasedOverlay::HideOverlay | ( | ) | const |
Hides the whole overlay
void DdtFileBasedOverlay::HideOverlayByElement | ( | const QString | element_name | ) | const |
Hides an element of the overlay specified by its name
element_name | Element name to hide |
void DdtFileBasedOverlay::HideOverlayByObject | ( | const QString | object_name | ) | const |
Hides a specified object of the overlay
object_name | Name of the overlay object to hide |
bool DdtFileBasedOverlay::LoadOverlayFile | ( | const QString | overlay_file, |
const std::string | image_widget_name, | ||
QString & | error_msg ) |
Loads the json overlay file which contains graphics to be drawn at startup
overlay_file | The overlay file to load |
image_widget_name | The name of the image widget |
error_msg | The error message |
std::string DdtFileBasedOverlay::ParseElementType | ( | pt::ptree & | elem_type | ) |
Parses the element type
elem_type | Type node of the element |
void DdtFileBasedOverlay::RemoveGraphicalElements | ( | ) |
Removes all graphical elements from the overlay
void DdtFileBasedOverlay::ShowOverlay | ( | ) | const |
Shows the whole overlay
void DdtFileBasedOverlay::ShowOverlayByElement | ( | const QString | element_name | ) | const |
Shows an element of the overlay specified by its name
element_name | Element name to show |
void DdtFileBasedOverlay::ShowOverlayByObject | ( | const QString | object_name | ) | const |
Shows a specified object of the overlay
object_name | Name of the overlay object to show |