# Contour

## Must Override

BaseContour._getPoint(index, **kwargs)

  This must return a wrapped point.

  index will be a valid index.

  Subclasses must override this method.

BaseContour._get_clockwise()

  Subclasses must override this method.

BaseContour._get_identifier()

  This is the environment implementation of `BaseObject.identifier`. This must return an Identifier. If the native object does not have an identifier assigned one should be assigned and returned.

  Subclasses must override this method.

BaseContour._insertPoint(index, position, type='line', smooth=False, name=None, identifier=None, **kwargs)

  position will be a valid position (x, y). type will be a valid type. smooth will be a valid boolean. name will be a valid name or None. identifier will be a valid identifier or None. The identifier will not have been tested for uniqueness.

  Subclasses must override this method.

BaseContour._lenPoints(**kwargs)

  This must return an integer indicating the number of points in the contour.

  Subclasses must override this method.

BaseContour._removePoint(index, preserveCurve, **kwargs)

  index will be a valid index. preserveCurve will be a boolean.

  Subclasses must override this method.

BaseContour._set_index(value)

  Subclasses must override this method.

## May Override

BaseContour._appendBPoint(type, anchor, bcpIn=None, bcpOut=None, **kwargs)

  Subclasses may override this method.

BaseContour._appendSegment(type=None, points=None, smooth=False, **kwargs)

  Subclasses may override this method.

BaseContour._autoStartSegment(**kwargs)

  Subclasses may override this method.

  XXX port this from robofab

BaseContour._draw(pen, **kwargs)

  Subclasses may override this method.

BaseContour._drawPoints(pen, **kwargs)

  Subclasses may override this method.

BaseContour._get_bounds()

  Subclasses may override this method.

BaseContour._get_index()

  Subclasses may override this method.

BaseContour._get_points()

  Subclasses may override this method.

BaseContour._get_segments()

  Subclasses may override this method.

BaseContour._init(*args, **kwargs)

  Subclasses may override this method.

BaseContour._insertBPoint(index, type, anchor, bcpIn, bcpOut, **kwargs)

  Subclasses may override this method.

BaseContour._insertSegment(index=None, type=None, points=None, smooth=False, **kwargs)

  Subclasses may override this method.

BaseContour._len__segments(**kwargs)

  Subclasses may override this method.

BaseContour._moveBy(value, **kwargs)

  This is the environment implementation of `BaseObject.moveBy`.

  value will be an iterable containing two Integer/Float values defining the x and y values to move the object by. It will have been normalized with `normalizers.normalizeTransformationOffset`.

  Subclasses may override this method.

BaseContour._pointInside(point)

  Subclasses may override this method.

BaseContour._removeSegment(segment, preserveCurve, **kwargs)

  segment will be a valid segment index. preserveCurve will be a boolean.

  Subclasses may override this method.

BaseContour._reverse(**kwargs)

  Subclasses may override this method.

BaseContour._rotateBy(value, origin=None, **kwargs)

  This is the environment implementation of `BaseObject.rotateBy`.

  value will be a Integer/Float value defining the value to rotate the object by. It will have been normalized with `normalizers.normalizeRotationAngle`. origin will be a Coordinate defining the point at which the rotation should orginate.

  Subclasses may override this method.

BaseContour._round(**kwargs)

  Subclasses may override this method.

BaseContour._scaleBy(value, origin=None, **kwargs)

  This is the environment implementation of `BaseObject.scaleBy`.

  value will be an iterable containing two Integer/Float values defining the x and y values to scale the object by. It will have been normalized with `normalizers.normalizeTransformationScale`. origin will be a Coordinate defining the point at which the scale should orginate.

  Subclasses may override this method.

BaseContour._setStartSegment(segmentIndex, **kwargs)

  Subclasses may override this method.

BaseContour._set_clockwise(value)

  Subclasses may override this method.

BaseContour._skewBy(value, origin=None, **kwargs)

  This is the environment implementation of `BaseObject.skewBy`.

  value will be an iterable containing two Integer/Float values defining the x and y values to skew the object by. It will have been normalized with `normalizers.normalizeTransformationSkewAngle`. origin will be a Coordinate defining the point at which the skew should orginate.

  Subclasses may override this method.

BaseContour._transformBy(matrix, **kwargs)

  Subclasses may override this method.

Previous

Glyph

Next

Segment