flatland.utils.svg module¶

class flatland.utils.svg.SVG(sfName=None, svgETree=None)[source]¶

Bases: object

copy()[source]¶
merge(svg2)[source]¶
renumber_styles(offset=10)[source]¶
set_rotate(angle)[source]¶
set_style_color(style_name, color)[source]¶
to_string()[source]¶
class flatland.utils.svg.Track[source]¶

Bases: object

Class to load and hold SVG track images. Creates a mapping between - cell entry and exit directions (ie transitions), and - specific images provided by the SBB graphic artist. The directions and images are also rotated by 90, 180 & 270 degrees. (There is some redundancy in this process, given the images provided)

class flatland.utils.svg.Zug(iDir=0)[source]¶

Bases: object

getSvg(iAgent, iDirIn, iDirOut, color=None)[source]¶
flatland.utils.svg.main()[source]¶