flatland.utils.svg module

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

Bases: object

copy(self)[source]
merge(self, svg2)[source]
renumber_styles(self, offset=10)[source]
set_rotate(self, angle)[source]
set_style_color(self, style_name, color)[source]
to_string(self)[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(self, iAgent, iDirIn, iDirOut, color=None)[source]
flatland.utils.svg.main()[source]