Esempio n. 1
0
 public GraphicObject(Drawing drawing, GuidMapLogic guidMapLogic)
 {
     Drawing      = drawing;
     Color        = drawing.Color;//System.Drawing.Color.MediumSpringGreen.ToArgb();
     Guid         = Guid.NewGuid();
     GuidMapLogic = guidMapLogic;
 }
Esempio n. 2
0
 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);
 }
Esempio n. 4
0
 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);
 }
Esempio n. 6
0
        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;
        }
Esempio n. 7
0
 public override void DrawOnGuidMap()
 {
     GuidMapLogic.SetOnMap(this);
 }
Esempio n. 8
0
 public Poligon(Drawing drawing, GuidMapLogic guidMapLogic) : base(drawing, guidMapLogic)
 {
     GraphicObjectType = GraphicObjectType.Poligon;
     Lines             = new List <Line>();
     Verticies         = new List <Verticle>();
 }