 
       wx.lib.ogl.basic.EllipseShape¶
  wx.lib.ogl.basic.EllipseShape¶The EllipseShape class behaves similarly to the
:class`RectangleShape` but is elliptical.
 Methods Summary¶
 Methods Summary¶| __init__ | Default class constructor | 
| GetAttachmentPosition | Get attachment position. | 
| GetBoundingBoxMin | Get the minimum bounding box. | 
| GetHeight | Get the height. | 
| GetNumberOfAttachments | Get number of attachments. | 
| GetPerimeterPoint | Get the perimeter point. | 
| GetWidth | Get the width. | 
| OnDraw | The draw handler. | 
| SetHeight | Set the height. | 
| SetSize | Set the size. | 
| SetWidth | Set the width. | 
 Class API¶
 Class API¶EllipseShape(Shape)¶The EllipseShape class behaves similarly to the
:class`RectangleShape` but is elliptical.
__init__(self, w, h)¶Default class constructor
| Parameters: | 
 | 
|---|
GetAttachmentPosition(self, attachment, nth = 0, no_arcs = 1, line = None)¶Get attachment position.
| Parameters: | 
 | 
|---|
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: | 
 | 
|---|
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: | 
 | 
|---|---|
| Recursive: | not used | 
SetWidth(self, w)¶Set the width.
| Parameters: | w – the width | 
|---|