Exemple #1
0
 public override void Draw(IDrawingEngine engine)
 {
     engine.Line(this.Point, new Point(this.Parameters[0], this.Parameters[1]), this.DrawingProperties); // PointA - PointB
     engine.Line(this.Point, new Point(this.Parameters[2], this.Parameters[3]), this.DrawingProperties); // PointA - PointC
     engine.Line(new Point(this.Parameters[0], this.Parameters[1]),
                 new Point(this.Parameters[2], this.Parameters[3]), this.DrawingProperties);             //PointB - PointC
 }
Exemple #2
0
        public override void Draw(IDrawingEngine engine)
        {
            Rectangle frame = new Rectangle(this.Point, this.Parameters[0], this.Parameters[1]);

            frame.Draw(engine);

            int x      = this.Point.X;
            int y      = this.Point.Y;
            int height = this.Parameters[0];
            int width  = this.Parameters[1];

            engine.Line(new Point(x, y + width / 2), new Point(x + height, y + width / 2), this.DrawingProperties);
            engine.Line(new Point(x + height / 2, y), new Point(x + height / 2, y + width), this.DrawingProperties);
        }
Exemple #3
0
        public override void Draw(IDrawingEngine engine)
        {
            //this.Parameters[0] - width
            //this.Parameters[1] - height

            engine.Line(this.Point, new Point(this.Point.X, this.Point.Y + this.Parameters[1]), this.DrawingProperties);

            engine.Line(this.Point, new Point(this.Point.X + this.Parameters[0], this.Point.Y), this.DrawingProperties);

            engine.Line(
                new Point(this.Point.X + this.Parameters[0], this.Point.Y),
                new Point(this.Point.X + this.Parameters[0], this.Point.Y + this.Parameters[1]), this.DrawingProperties);

            engine.Line(
                new Point(this.Point.X, this.Point.Y + this.Parameters[1]),
                new Point(this.Point.X + this.Parameters[0], this.Point.Y + this.Parameters[1]), this.DrawingProperties);
        }
Exemple #4
0
        public override void Draw(IDrawingEngine engine)
        {
            int x      = this.Point.X;
            int y      = this.Point.Y;
            int height = this.Parameters[0];
            int width  = this.Parameters[1];

            engine.Line(new Point(x, y + (y / 8)), new Point(x + width / 2, y), this.DrawingProperties);
            engine.Line(new Point(x + width / 2, y), new Point(x + width, y + y / 8), this.DrawingProperties);

            Rectangle house = new Rectangle(new Point(x, y + (y / 8)), width, height);

            house.Draw(engine);

            Window window = new Window(new Point(x + x / 5, y + y / 5), height / 5, width / 5);

            window.Draw(engine);

            Window window1 = new Window(new Point(x - x / 5 + width, y + y / 5), height / 5, width / 5);

            window1.Draw(engine);
        }
Exemple #5
0
 public override void Draw(IDrawingEngine engine)
 {
     engine.Line(this.Point, new Point(this.Parameters[0], this.Parameters[1]), this.DrawingProperties);
 }