Blame mono/Assistance/Assistant.cs

ebcc4f
using System;
ebcc4f
using System.Drawing;
ebcc4f
using System.Drawing.Imaging;
ebcc4f
using System.Collections.Generic;
ebcc4f
ebcc4f
namespace Assistance {
72b17c
	public class Assistant: ActivePoint.Owner {
ebcc4f
		public static readonly double maxLen = 1000.0;
72b17c
		//public static readonly int gridPointsCount = 100;
ebcc4f
		public static readonly Pen pen = Pens.Gray;
ebcc4f
72b17c
		public Assistant(Workarea workarea): base(workarea) {
72b17c
			workarea.assistants.Add(this);
ebcc4f
		}
ebcc4f
72b17c
		public override void remove() {
72b17c
			base.remove();
72b17c
			workarea.assistants.Remove(this);
ebcc4f
		}
ebcc4f
72b17c
		public override void bringToFront() {
72b17c
			workarea.assistants.Remove(this);
72b17c
			workarea.assistants.Add(this);
ebcc4f
		}
ebcc4f
72b17c
		//public double getMaxLen() {
72b17c
		//	double l = 0.0;
72b17c
		//	foreach(ActivePoint point in points)
72b17c
		//		l = Math.Max(l, point.position.len());
72b17c
		//	return maxLen + l;
72b17c
		//}
ebcc4f
ebcc4f
		public virtual void draw(Graphics g) { }
ebcc4f
38ad69
		public virtual void getGuidelines(List<guideline> outGuidelines, Point target) { }</guideline>
ebcc4f
	}
ebcc4f
}