ShapePath

From Silhouette Wiki
Revision as of 20:39, 20 November 2012 by Paul (talk | contribs) (Created page with "A ShapePath represents one key of spline data for a shape. === Attributes === ''Read-only unless otherwise noted.'' {| class="wikitable" ! scope="col" | Name ! scope="col" c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A ShapePath represents one key of spline data for a shape.

Attributes

Read-only unless otherwise noted.

Name Description
bounds the bounding box
clockwise True if clock-wise
closed True if closed (read/write)
flags a List of Integers representing the flags for each control point

Methods

Name Description
__init__(label, menu=None, type=Action, extension=None) Constructor - Initializes the base class. The menu can be listed separately or prefixed to the label with the '|' character.
available() Should return True (the default) if the Action is available. The Action should examine the current state in this method and assert (with an optional error message) that conditions are good for execution.
execute(path=None) Called to execute the Action. UI Actions should be undoable. Importer/Exporter actions are passed the path to the file to operate on.

Constants

Control Point Flags

Name Description
Flag_Selected The control point is selected
Flag_Tagged The control point is tagged