Esempio n. 1
0
        /// <summary>
        /// Statictial information for rendering use.
        /// </summary>
        /// <param name="c"></param>
        public void ShowQuadTree(Canvas c)
        {
            Rectangle r = new Rectangle
            {
                Width  = Bounds.Width,
                Height = Bounds.Height
            };

            Canvas.SetLeft(r, Bounds.Left);
            Canvas.SetTop(r, Bounds.Top);
            r.Stroke          = Brushes.DarkRed;
            r.StrokeThickness = 1;
            r.StrokeDashArray = new DoubleCollection(new Double[] { 2.0, 3.0 });
            c.Children.Add(r);

            TopLeft?.ShowQuadTree(c);
            TopRight?.ShowQuadTree(c);
            BottomLeft?.ShowQuadTree(c);
            BottomRight?.ShowQuadTree(c);
        }