RumPi Linux Client 1.0
A wxWidgets desktop dashboard that visualizes a RumPi robot's live sensor data as a condition-reactive scene
ResourceManager.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <wx/image.h>
5#include <wx/bmpbndl.h>
6#include <RumPi/Components/BaseComponent.h>
7
16{
17protected:
18 static std::map<RumPi::EComponentType, wxImage> myComponentImageMap;
19
20public:
36 static wxImage GetComponentImage(RumPi::EComponentType theImageType);
37
52 static wxBitmapBundle GetAlertLevelImage(const RumPi::EAlertLevel& alertLevel);
53};
Provides the client's UI images: the per-component icons (decoded once from embedded PNG data and cac...
Definition: ResourceManager.h:16
static wxImage GetComponentImage(RumPi::EComponentType theImageType)
Gets the icon for a component type, decoding it from its embedded PNG data on first request and cachi...
Definition: ResourceManager.cpp:58
static std::map< RumPi::EComponentType, wxImage > myComponentImageMap
Cache of decoded component icons, keyed by component type.
Definition: ResourceManager.h:18
static wxBitmapBundle GetAlertLevelImage(const RumPi::EAlertLevel &alertLevel)
Gets the alert-level glyph (tick / warning / error) from the platform's art provider,...
Definition: ResourceManager.cpp:259