
wx.lib.ogl.basic.EllipseShape¶The EllipseShape class behaves similarly to the
:class`RectangleShape` but is elliptical.
Class Hierarchy¶
Inheritance diagram for class EllipseShape:

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¶EllipseShape(Shape)¶The EllipseShape class behaves similarly to the
:class`RectangleShape` but is elliptical.
__init__(self, w, h)¶Default class constructor
w – the width
h – the height
GetAttachmentPosition(self, attachment, nth = 0, no_arcs = 1, line = None)¶Get attachment position.
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.
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.
h – the height
SetSize(self, x, y, recursive = True)¶Set the size.
x – the width
y – the height
not used
SetWidth(self, w)¶Set the width.
w – the width