class StafflinePolygon

Last modified: October 27, 2015

Contents

StafflinePolygon

In module gamera.toolkits.musicstaves.stafffinder

Represents a staff line as a polygon and contains the list of vertex points as public property:

vertices:
a list of the vertices. Each point is stored as Gamera's data type Point

__init__

The constructor has no arguments. All values are accessed directly.

to_average

Converts to StafflineAverage.

to_polygon

Converts to StafflinePolygon. Thus simply returns self.

The optional parameter tolerance is offered for compatibility to StafflineSkeleton, but has no effect on the return value.

to_skeleton

Converts to StafflineSkeleton.