Class to define marker type and style
- All methods except __init__ are private.
Methods
|
|
|
|
__init__
|
__init__ (
self,
points,
**attr,
)
Creates PolyMarker object
points - sequence (array, tuple or list) of (x,y) points
**attr - key word attributes
Defaults:
'colour'= black , - wxPen Colour any wxNamedColour
'width'= 1, - Pen width
'size'= 2, - Marker size
'fillcolour'= same as colour, - wxBrush Colour any wxNamedColour
'fillstyle'= wx.wxSOLID, - wxBrush fill style (use wxTRANSPARENT for no fill)
'marker'= circle - Marker shape
'legend'= '' - Marker Legend to display Marker Shapes:
- circle
- dot
- square
- triangle
- triangle_down
- cross
- plus
|
|
_circle
|
_circle (
self,
dc,
coords,
size=1,
)
|
|
_cross
|
_cross (
self,
dc,
coords,
size=1,
)
|
|
_dot
|
_dot (
self,
dc,
coords,
size=1,
)
|
|
_drawmarkers
|
_drawmarkers (
self,
dc,
coords,
marker,
size=1,
)
|
|
_plus
|
_plus (
self,
dc,
coords,
size=1,
)
|
|
_square
|
_square (
self,
dc,
coords,
size=1,
)
|
|
_triangle
|
_triangle (
self,
dc,
coords,
size=1,
)
|
|
_triangle_down
|
_triangle_down (
self,
dc,
coords,
size=1,
)
|
|
draw
|
draw (
self,
dc,
printerScale,
coord=None,
)
|
|
getSymExtent
|
getSymExtent ( self, printerScale )
Width and Height of Marker
|
|