flatland.utils.graphics_layer module

class flatland.utils.graphics_layer.GraphicsLayer[source]

Bases: object

adapt_color(self, color, lighten=False)[source]
begin_frame(self)[source]
build_background_map(self, dTargets)[source]
clf(self)[source]
endFrame(self)[source]
get_cmap(self, *args, **kwargs)[source]
get_image(self)[source]
open_window(self)[source]
pause(self, seconds=1e-05)[source]
plot(self, *args, **kwargs)[source]
prettify(self, *args, **kwargs)[source]
resize(self, env)[source]
save_image(self, filename)[source]
scatter(self, *args, **kwargs)[source]
set_agent_at(self, iAgent, row, col, iDirIn, iDirOut, isSelected=False, rail_grid=None, show_debug=False, clear_debug_text=True)[source]
set_cell_occupied(self, iAgent, row, col)[source]
set_rail_at(self, row, col, binTrans, iTarget=None, isSelected=False, rail_grid=None, num_agents=None)[source]

Set the rail at cell (row, col) to have transitions binTrans. The target argument can contain the index of the agent to indicate that agent’s target is at that cell, so that a station can be rendered in the static rail layer.

show(self, block=False)[source]
text(self, *args, **kwargs)[source]