wx.lib.ogl.lines.ArrowHead¶
The arrow head class.
Class Hierarchy¶
Methods Summary¶
Default class constructor. |
|
Get the arrow end position. |
|
Get the arrow size. |
|
Get the id. |
|
Get the metafile. |
|
Get the arrow name. |
|
Get end position. |
|
Get the arrow size. |
|
Get the spacing. |
|
Get the X offset. |
|
Get the Y offset. |
|
Set end position. |
|
Set the arrow size. |
|
Set the spacing. |
|
Set the X offset. |
|
Set the Y offset. |
Class API¶
- class ArrowHead(object)¶
The arrow head class.
Methods¶
- __init__(self, type=0, end=0, size=0.0, dist=0.0, name='', mf=None, arrowId=-1)¶
Default class constructor.
- Parameters:
type (int) – the type
Arrow head type
Description
ARROW_HOLLOW_CIRCLE
a hollow circle
ARROW_FILLED_CIRCLE
a filled circle
ARROW_ARROW
an arrow
ARROW_SINGLE_OBLIQUE
a single oblique
ARROW_DOUBLE_OBLIQUE
a double oblique
ARROW_METAFILE
custom, define in metafile
end (int) – end of arrow head ???
size (float) – size of arrow head
dist (float) – dist ???
name (string) – name of arrow head
mf – mf ???
arrowId – id of arrow head
- GetArrowEnd(self)¶
Get the arrow end position.
- GetArrowSize(self)¶
Get the arrow size.
- GetId(self)¶
Get the id.
- GetMetaFile(self)¶
Get the metafile.
- GetName(self)¶
Get the arrow name.
- GetPosition(self)¶
Get end position.
- GetSize(self)¶
Get the arrow size.
- GetSpacing(self)¶
Get the spacing.
- GetXOffset(self)¶
Get the X offset.
- GetYOffset(self)¶
Get the Y offset.
- SetPosition(self, pos)¶
Set end position.
- Parameters:
pos – position to set it to
- SetSize(self, size)¶
Set the arrow size.
- Parameters:
size – size in points???
Note
if a custom arrow is used size is used to scale the arrow???
- SetSpacing(self, sp)¶
Set the spacing.
- Parameters:
sp – the new spacing value
- SetXOffset(self, x)¶
Set the X offset.
- Parameters:
x – value to set the offset to???
- SetYOffset(self, y)¶
Set the Y offset.
- Parameters:
y – value to set the offset to???