RumPi Linux Client 1.0
A wxWidgets desktop dashboard that visualizes a RumPi robot's live sensor data as a condition-reactive scene
ResourceManager Class Reference

Provides the client's UI images: the per-component icons (decoded once from embedded PNG data and cached) and the alert-level glyphs from the platform's art provider. More...

#include <ResourceManager.h>

Static Public Member Functions

static wxImage GetComponentImage (RumPi::EComponentType theImageType)
 Gets the icon for a component type, decoding it from its embedded PNG data on first request and caching it for subsequent calls. More...
 
static wxBitmapBundle GetAlertLevelImage (const RumPi::EAlertLevel &alertLevel)
 Gets the alert-level glyph (tick / warning / error) from the platform's art provider, sized for a list control. More...
 

Static Protected Attributes

static std::map< RumPi::EComponentType, wxImage > myComponentImageMap
 Cache of decoded component icons, keyed by component type. More...
 

Detailed Description

Provides the client's UI images: the per-component icons (decoded once from embedded PNG data and cached) and the alert-level glyphs from the platform's art provider.

Author
Eddie O'Hagan
Date
8/13/2026

Member Function Documentation

◆ GetAlertLevelImage()

wxBitmapBundle ResourceManager::GetAlertLevelImage ( const RumPi::EAlertLevel &  alertLevel)
static

Gets the alert-level glyph (tick / warning / error) from the platform's art provider, sized for a list control.

Author
Eddie O'Hagan
Date
8/13/2026
wxBitmapBundle glyph = ResourceManager::GetAlertLevelImage(RumPi::EAlertLevel::Warning);
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
Parameters
[in]alertLevelThe alert level whose glyph to get.
Returns
The glyph for the alert level.

◆ GetComponentImage()

wxImage ResourceManager::GetComponentImage ( RumPi::EComponentType  theImageType)
static

Gets the icon for a component type, decoding it from its embedded PNG data on first request and caching it for subsequent calls.

Author
Eddie O'Hagan
Date
8/13/2026
wxImage icon = ResourceManager::GetComponentImage(RumPi::EComponentType::E_LED);
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
Parameters
[in]theImageTypeThe component type whose icon to get.
Returns
The component's icon, or an empty wxImage if the PNG failed to decode.

Member Data Documentation

◆ myComponentImageMap

std::map< RumPi::EComponentType, wxImage > ResourceManager::myComponentImageMap
staticprotected

Cache of decoded component icons, keyed by component type.


The documentation for this class was generated from the following files: