private void OnGetRealConvexHull(IPositionSet positionSet) { lock (layers) { Layer_PositionSet_ConvexHull layer = new Layer_PositionSet_ConvexHull(new PositionSet_Cloned(positionSet)); layer.MainColor = Settings.Default.RealConvexHullColor; layer.ConvexHull.LineWidth = 2; layer.Active = true; layers.Add(layer); } flowControlerForm.BeginInvoke(Update); flowControlerForm.SuspendAndRecordWorkerThread(); }
private void OnGetConvexHullPositionSetInSpecificLevel(ILevel level, int levelSequence, IPositionSet positionSet) { lock (layers) { convexHullLayer = new Layer_PositionSet_ConvexHull(new PositionSet_Cloned(positionSet)); convexHullLayer.MainColor = Settings.Default.ConvexHullPositionSetInSpecificLevelColor; convexHullLayer.ConvexHull.LineWidth = 2; convexHullLayer.ConvexHull.LineStyle = System.Drawing.Drawing2D.DashStyle.Dot; convexHullLayer.HullPoint.IsDrawPointBorder = true; convexHullLayer.HullPoint.PointRadius = 3; convexHullLayer.HullPoint.PointColor = Color.Red; convexHullLayer.SetPositionSetTransformByM2MLevel(level); convexHullLayer.Active = true; layers.Add(convexHullLayer); } flowControlerForm.BeginInvoke(Update); flowControlerForm.SuspendAndRecordWorkerThread(); }