Exemple #1
0
        public void Draw(Viewer.viewData data)
        {
            var out_rectangle = ViewerHelper.ScaleRectangle(_x, _y, _s, _s, data);

            data.OutputGraphic.DrawLine(_color, out_rectangle.X - out_rectangle.Width, out_rectangle.Y, out_rectangle.Right, out_rectangle.Y);
            data.OutputGraphic.DrawLine(_color, out_rectangle.X, out_rectangle.Y - out_rectangle.Height, out_rectangle.X, out_rectangle.Bottom);
        }
Exemple #2
0
        public void Draw(Viewer.viewData data)
        {
            var out_rectangle = ViewerHelper.ScaleRectangle(_x, _y, _w, _h, data);

            data.OutputGraphic.DrawRectangle(_color, out_rectangle);
            data.OutputGraphic.FillRectangle(_fill, out_rectangle);
        }
Exemple #3
0
        public void Draw(Viewer.viewData data)
        {
            var out_from = ViewerHelper.ScalePoint(_fx, _fy, data);
            var out_to   = ViewerHelper.ScalePoint(_tx, _ty, data);

            data.OutputGraphic.DrawLine(_color, out_from, out_to);
        }
Exemple #4
0
        public void Draw(Viewer.viewData data)
        {
            var out_rectangle = ViewerHelper.ScaleRectangle(_x, _y, data.Size.X, data.Size.Y, data);

            data.OutputGraphic.DrawLine(_color, out_rectangle.X, 0, out_rectangle.X, out_rectangle.Height);
            data.OutputGraphic.DrawLine(_color, 0, out_rectangle.Y, out_rectangle.Width, out_rectangle.Y);
        }
Exemple #5
0
        public void Draw(Viewer.viewData data)
        {
            var out_pos = ViewerHelper.ScaleRectangle(_pos.X - _radius, _pos.Y - _radius, _diameter, _diameter, data);

            data.OutputGraphic.DrawEllipse(_color, out_pos);
        }