OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
weather.weather_overlay_controller.WeatherOverlayController Class Reference

Translate UI intent to domain controllers without coupling them to Tk widgets. More...

Inheritance diagram for weather.weather_overlay_controller.WeatherOverlayController:
ui.weather.weather_overlay_request_handler_if.WeatherOverlayRequestHandlerIf

Public Member Functions

None request_city_enabled (self, bool enabled)
 Set city overlay visibility.
 
None request_city_selection (self, str kind, str period, int hours)
 Select a city field and time window.
 
None request_city_playback (self, bool playing)
 Start or pause city playback independently of radar.
 
None request_city_refresh (self)
 Request fresh city data.
 
None request_city_details (self, str|None city_id)
 Open a displayed city's weather details or dismiss the selection.
 
None request_model_selection (self, str kind)
 Choose one model heatmap or turn it off.
 
None request_model_refresh (self)
 Request a fresh full-area forecast.
 
None request_route_enabled (self, bool enabled)
 Enable weather at estimated route arrival times.
 
None request_route_layers (self, frozenset[str] layers)
 Choose route checkpoint values.
 
None request_route_refresh (self)
 Request fresh forecasts for the remaining route.
 
None request_navigation_visible (self, bool visible)
 Start or stop navigation-only weather activity.
 
None request_replay (self)
 Replay weather state after a renderer restart.
 
 close (self)
 Release all overlay controllers when the composition shuts down.
 

Detailed Description

Translate UI intent to domain controllers without coupling them to Tk widgets.

Member Function Documentation

◆ request_city_details()

None weather.weather_overlay_controller.WeatherOverlayController.request_city_details (   self,
str | None  city_id 
)

Open a displayed city's weather details or dismiss the selection.

Parameters
city_idDisplayed city identity, or None to close details.

Reimplemented from ui.weather.weather_overlay_request_handler_if.WeatherOverlayRequestHandlerIf.

◆ request_city_enabled()

None weather.weather_overlay_controller.WeatherOverlayController.request_city_enabled (   self,
bool  enabled 
)

Set city overlay visibility.

Parameters
enabledWhether to show city weather.

Reimplemented from ui.weather.weather_overlay_request_handler_if.WeatherOverlayRequestHandlerIf.

◆ request_city_playback()

None weather.weather_overlay_controller.WeatherOverlayController.request_city_playback (   self,
bool  playing 
)

Start or pause city playback independently of radar.

Parameters
playingWhether to animate downloaded hourly values.

Reimplemented from ui.weather.weather_overlay_request_handler_if.WeatherOverlayRequestHandlerIf.

◆ request_city_selection()

None weather.weather_overlay_controller.WeatherOverlayController.request_city_selection (   self,
str  kind,
str  period,
int  hours 
)

Select a city field and time window.

Parameters
kindTemperature, wind or precipitation.
periodPast model estimates or future forecasts.
hoursSelected hour/window length from 1 to 24.

Reimplemented from ui.weather.weather_overlay_request_handler_if.WeatherOverlayRequestHandlerIf.

◆ request_model_selection()

None weather.weather_overlay_controller.WeatherOverlayController.request_model_selection (   self,
str  kind 
)

Choose one model heatmap or turn it off.

Parameters
kindOff, temperature or wind.

Reimplemented from ui.weather.weather_overlay_request_handler_if.WeatherOverlayRequestHandlerIf.

◆ request_navigation_visible()

None weather.weather_overlay_controller.WeatherOverlayController.request_navigation_visible (   self,
bool  visible 
)

Start or stop navigation-only weather activity.

Parameters
visibleWhether Navigation is currently shown.

Reimplemented from ui.weather.weather_overlay_request_handler_if.WeatherOverlayRequestHandlerIf.

◆ request_route_enabled()

None weather.weather_overlay_controller.WeatherOverlayController.request_route_enabled (   self,
bool  enabled 
)

Enable weather at estimated route arrival times.

Parameters
enabledWhether to display route weather.

Reimplemented from ui.weather.weather_overlay_request_handler_if.WeatherOverlayRequestHandlerIf.

◆ request_route_layers()

None weather.weather_overlay_controller.WeatherOverlayController.request_route_layers (   self,
frozenset[str]  layers 
)

Choose route checkpoint values.

Parameters
layersTemperature, rain probability and/or wind.

Reimplemented from ui.weather.weather_overlay_request_handler_if.WeatherOverlayRequestHandlerIf.


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