public GraphicObject(Drawing drawing, GuidMapLogic guidMapLogic) { Drawing = drawing; Color = drawing.Color;//System.Drawing.Color.MediumSpringGreen.ToArgb(); Guid = Guid.NewGuid(); GuidMapLogic = guidMapLogic; }
public Circle(Point p, int radius, Drawing drawing, GuidMapLogic guidMapLogic, int width) : base(drawing, guidMapLogic) { GraphicObjectType = GraphicObjectType.Circle; Center = p; Radius = radius; Width = width; }
public ConnectedCircle(ConnectedCircle c1, Circle c2, Drawing drawing, GuidMapLogic guidMapLogic) : base(drawing, guidMapLogic) { GraphicObjectType = GraphicObjectType.ConnectedCircles; Circles = new List <Circle>(2); Circles.AddRange(c1.Circles); Circles.Add(c2); }
public Verticle(Point point, Drawing drawing, GuidMapLogic guidMapLogic, GraphicObject parentObjectGuid = null) : base(drawing, guidMapLogic) { GraphicObjectType = GraphicObjectType.Verticle; Point = point; ParentGraphicObject = parentObjectGuid; Color = System.Drawing.Color.Blue.ToArgb(); Width = Consts.BigWidth; }
public ConnectedCircle(Circle c1, Circle c2, Drawing drawing, GuidMapLogic guidMapLogic) : base(drawing, guidMapLogic) { GraphicObjectType = GraphicObjectType.ConnectedCircles; Circles = new List <Circle>(2); c1.ParentGraphicObject = this; c2.ParentGraphicObject = this; Circles.Add(c1); Circles.Add(c2); }
public Line(Point startPoint, Point endPoint, int width, Drawing drawing, GuidMapLogic guidMapLogic, GraphicObject parentGraphicObject = null) : base(drawing, guidMapLogic) { //StartPoint = startPoint; //EndPoint = endPoint; Width = width; ParentGraphicObject = parentGraphicObject; GraphicObjectType = GraphicObjectType.Line; StartVerticle = new Verticle(startPoint, drawing, guidMapLogic, this); StartVerticle.ParentGraphicObject = this; EndVerticle = new Verticle(endPoint, drawing, guidMapLogic, this); EndVerticle.ParentGraphicObject = this; }
public override void DrawOnGuidMap() { GuidMapLogic.SetOnMap(this); }
public Poligon(Drawing drawing, GuidMapLogic guidMapLogic) : base(drawing, guidMapLogic) { GraphicObjectType = GraphicObjectType.Poligon; Lines = new List <Line>(); Verticies = new List <Verticle>(); }