Package obitools :: Module SVGdraw :: Class pathdata
[hide private]
[frames] | no frames]

Class pathdata

source code

class used to create a pathdata object which can be used for a path. although most methods are pretty straightforward it might be useful to look at the SVG specification.

Instance Methods [hide private]
 
__init__(self, x=None, y=None) source code
 
closepath(self)
ends the path
source code
 
move(self, x, y)
move to absolute
source code
 
relmove(self, x, y)
move to relative
source code
 
line(self, x, y)
line to absolute
source code
 
relline(self, x, y)
line to relative
source code
 
hline(self, x)
horizontal line to absolute
source code
 
relhline(self, x)
horizontal line to relative
source code
 
vline(self, y)
verical line to absolute
source code
 
relvline(self, y)
vertical line to relative
source code
 
bezier(self, x1, y1, x2, y2, x, y)
bezier with xy1 and xy2 to xy absolut
source code
 
relbezier(self, x1, y1, x2, y2, x, y)
bezier with xy1 and xy2 to xy relative
source code
 
smbezier(self, x2, y2, x, y)
smooth bezier with xy2 to xy absolut
source code
 
relsmbezier(self, x2, y2, x, y)
smooth bezier with xy2 to xy relative
source code
 
qbezier(self, x1, y1, x, y)
quadratic bezier with xy1 to xy absolut
source code
 
relqbezier(self, x1, y1, x, y)
quadratic bezier with xy1 to xy relative
source code
 
smqbezier(self, x, y)
smooth quadratic bezier to xy absolut
source code
 
relsmqbezier(self, x, y)
smooth quadratic bezier to xy relative
source code
 
ellarc(self, rx, ry, xrot, laf, sf, x, y)
elliptival arc with rx and ry rotating with xrot using large-arc-flag and sweep-flag to xy absolut
source code
 
relellarc(self, rx, ry, xrot, laf, sf, x, y)
elliptival arc with rx and ry rotating with xrot using large-arc-flag and sweep-flag to xy relative
source code
 
__repr__(self) source code