Phoenix Logo

phoenix_title wx.lib.ogl.basic.EllipseShape

The EllipseShape class behaves similarly to the :class`RectangleShape` but is elliptical.


class_hierarchy Class Hierarchy

Inheritance diagram for class EllipseShape:


super_classes Known Superclasses

wx.lib.ogl.basic.Shape


method_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.

api 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