wx.lib.ogl.basic.EllipseShape¶
The EllipseShape
class behaves similarly to the
:class`RectangleShape` but is elliptical.
Class Hierarchy¶
Known Subclasses¶
Known Superclasses¶
Methods Summary¶
Default class constructor |
|
Get attachment position. |
|
Get the minimum bounding box. |
|
Get the height. |
|
Get number of attachments. |
|
Get the perimeter point. |
|
Get the width. |
|
The draw handler. |
|
Set the height. |
|
Set the size. |
|
Set the width. |
Class API¶
- class EllipseShape(Shape)¶
The
EllipseShape
class behaves similarly to the :class`RectangleShape` but is elliptical.
Methods¶
- __init__(self, w, h)¶
Default class constructor
- Parameters:
w – the width
h – the height
- GetAttachmentPosition(self, attachment, nth=0, no_arcs=1, line=None)¶
Get attachment position.
- Parameters:
attachment – the attachment ???
nth – get nth attachment ???
no_arcs – ???
line – ???
- GetBoundingBoxMin(self)¶
Get the minimum bounding box.
- GetHeight(self)¶
Get the height.
- GetNumberOfAttachments(self)¶
Get number of attachments.
- GetPerimeterPoint(self, x1, y1, x2, y2)¶
Get the perimeter point.
- Parameters:
x1 – the x1 position
y1 – the y1 position
x2 – the x2 position
y2 – the y2 position
- GetWidth(self)¶
Get the width.
- OnDraw(self, dc)¶
The draw handler.
- SetHeight(self, h)¶
Set the height.
- Parameters:
h – the height
- SetSize(self, x, y, recursive=True)¶
Set the size.
- Parameters:
x – the width
y – the height
- Recursive:
not used
- SetWidth(self, w)¶
Set the width.
- Parameters:
w – the width