Phoenix Logo

phoenix_title wx.lib.ogl.basic.PolygonControlPoint

The PolygonControlPoint class.


class_hierarchy Class Hierarchy

Inheritance diagram for class PolygonControlPoint:

super_classes Known Superclasses

wx.lib.ogl.basic.ControlPoint


method_summary Methods Summary

__init__ Default class constructor
CalculateNewSize Calculate what new size would be, at end of resize.
GetNewSize Get the new size.
OnBeginDragLeft The begin drag left handler.
OnDragLeft The drag left handler.
OnEndDragLeft The end drag left handler.

api Class API



class PolygonControlPoint(ControlPoint)

The PolygonControlPoint class.


Methods



__init__(self, theCanvas, object, size, vertex, the_xoffset, the_yoffset)

Default class constructor

Parameters:
  • theCanvas – a Canvas
  • object – the shape, instance of Shape
  • size (float) – the size
  • vertext – the vertex
  • the_xoffset (float) – the x position
  • the_yoffset (float) – the y position
  • the_type (int) – one of the following types ???
    Control point type Description
    CONTROL_POINT_VERTICAL Vertical
    CONTROL_POINT_HORIZONTAL Horizontal
    CONTROL_POINT_DIAGONAL Diagonal


CalculateNewSize(self, x, y)

Calculate what new size would be, at end of resize.

Parameters:
  • x – x ???
  • y – y ???


GetNewSize(self)

Get the new size.



OnBeginDragLeft(self, x, y, keys = 0, attachment = 0)

The begin drag left handler.



OnDragLeft(self, draw, x, y, keys = 0, attachment = 0)

The drag left handler.



OnEndDragLeft(self, x, y, keys = 0, attachment = 0)

The end drag left handler.