//-------------------------------------------------------------------------------------------------- public override void OnPointsChanged(Dictionary <int, Pnt2d> points, Dictionary <int, SketchSegment> segments, Dictionary <int, int> markerCounts = default) { var point = points[PointIndex]; var geomPoint = new Geom_CartesianPoint(point.X, point.Y, 0); geomPoint.Transform(Transform); _Marker.Set(geomPoint); _Marker.SetImage(SketchUtils.IsUnconnectedEndpoint(SketchEditorTool.Sketch, PointIndex) ? Marker.RectImage : Marker.BallImage); }
public SketchEditorPointElement(SketchEditorTool sketchEditorTool, int pointIndex, Pnt2d point, Trsf transform, Pln plane) : base(sketchEditorTool, transform, plane) { PointIndex = pointIndex; var geomPoint = new Geom_CartesianPoint(point.X, point.Y, 0); geomPoint.Transform(Transform); _Marker = new Marker(SketchEditorTool.WorkspaceController, Marker.Styles.Bitmap | Marker.Styles.Topmost | Marker.Styles.Selectable, SketchUtils.IsUnconnectedEndpoint(SketchEditorTool.Sketch, PointIndex) ? Marker.RectImage : Marker.BallImage); _Marker.Set(geomPoint); }