OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
weather.weather_radar_controller.WeatherRadarController Class Reference

Select radar frames and publish persistent overlay state to the map. More...

Public Member Functions

bool has_frames (self)
 Return whether historical frames are available without a network request.
 
tuple[int,...] frame_times (self)
 Return available timeline timestamps, oldest to newest.
 
int|None frame_index (self)
 Return the currently displayed timeline index.
 
bool is_forecast (self)
 Identify forecast imagery rather than observed radar.
 
bool frame_tiles_ready (self)
 Report whether the selected frame has finished local tile work.
 
RadarTileStatus frame_tile_status (self)
 Report requested tile diagnostics without assuming the whole viewport is covered.
 
str|None frame_tile_error (self)
 Expose tile-generation failures to forecast playback.
 
RadarFrame select_frame (self, int index)
 Select a cached timeline frame without a network request.
 
bool is_live (self)
 Return whether the selected frame is the newest available frame.
 
None set_provider (self, RadarProviderIf provider)
 Switch radar source and discard frame-selection state.
 
RadarFrame show_latest (self)
 Discover available frames and make the newest one visible.
 
tuple[RadarFrame,...] load_frames (self)
 Fetch frames without mutating presentation or touching the map socket.
 
RadarFrame show_frames (self, tuple[RadarFrame,...] frames)
 Present previously fetched frames on the renderer-owning UI thread.
 
RadarFrame previous_frame (self)
 Select the preceding cached historical frame.
 
RadarFrame next_frame (self)
 Select the next cached frame, stopping at the live edge.
 
None hide (self)
 Hide radar without discarding the renderer's source/tile cache.
 
None set_palette (self, RadarPalette palette)
 Change radar presentation without discovering or downloading a new frame.
 
None refresh_renderer_state (self)
 Replay radar state after the transient native renderer starts.
 

Detailed Description

Select radar frames and publish persistent overlay state to the map.


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