Aller au contenu

Service HrzProtocol.ShapeEditorService

Defined in hrz/protocol/shape_editor/service.proto.


GetSelectedShape(HrzProtocol.Void) -> HrzProtocol.ShapeSelection

SelectShape(HrzProtocol.ShapeSelection) -> HrzProtocol.Void

LockShapeSelection(HrzProtocol.Void) -> HrzProtocol.Void

Prevent changing the selected shape through user input. The selection can still be changed through the API.


UnlockShapeSelection(HrzProtocol.Void) -> HrzProtocol.Void

GetSelectedControlPoint(HrzProtocol.Void) -> HrzProtocol.ControlPointSelection

Return the index of the currently selected control point, if any. Mid-point control points are included. If the index modulo two is zero, the selected control point is for an actual point of the shape, if the modulo is one, the selected control point is a mid-point control point. To convert from the index of a control point to the index of its point, divide by 2.


SelectControlPoint(HrzProtocol.ControlPointSelection) -> HrzProtocol.Void

Select the control point corresponding at the given index. Mid-point control points are included. To convert from the index of a point to the index of its control point, multiply by 2.


GetCurrentMode(HrzProtocol.Void) -> HrzProtocol.ModeSelection

SelectMode(HrzProtocol.ModeSelection) -> HrzProtocol.Void

Each selection mode can be bound to a key. See HrzProtocol.KeyInteractionBindings.


GetShapeInformation(HrzProtocol.LayerHandle) -> HrzProtocol.ShapeInformation

DeleteSelectedControlPoint(HrzProtocol.Void) -> HrzProtocol.Void

This action can be bound to a key. See HrzProtocol.KeyInteractionBindings.