Blame mono/Assistance/Assistant.cs

ebcc4f
using System;
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;
b82ef4
		public static readonly Drawing.Pen pen = new Drawing.Pen("gray");
ebcc4f
726e8a
		public Assistant(Document document): base(document) {
726e8a
			document.assistants.Add(this);
ebcc4f
		}
ebcc4f
72b17c
		public override void remove() {
72b17c
			base.remove();
726e8a
			document.assistants.Remove(this);
ebcc4f
		}
ebcc4f
72b17c
		public override void bringToFront() {
726e8a
			document.assistants.Remove(this);
726e8a
			document.assistants.Add(this);
ebcc4f
		}
ebcc4f
726e8a
		// TODO: ?
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
b82ef4
		public virtual void draw(Cairo.Context context) { }
ebcc4f
38ad69
		public virtual void getGuidelines(List<guideline> outGuidelines, Point target) { }</guideline>
ebcc4f
	}
ebcc4f
}