Stroke
class Stroke: NSObjectRepresents a single user-drawn stroke for interactive segmentation.
-
Initializes a new
Strokewith the given points, brush mode, and completion status.Declaration
Swift
init(points: [NormalizedKeypoint], brushMode: BrushMode, isCompleted: Bool)Parameters
pointsThe sequence of normalized key points forming the stroke.
brushModeThe brush mode used for this stroke.
isCompletedWhether the stroke is complete.
Return Value
An instance of
Strokeinitialized with the given parameters. -
The brush mode used for this stroke.
Declaration
Swift
var brushMode: BrushMode { get } -
Whether the stroke is complete.
Declaration
Swift
var isCompleted: Bool { get } -
The sequence of normalized key points forming the stroke.
Declaration
Swift
var points: [NormalizedKeypoint] { get }