/// <summary>
        /// Generates all of the shapes that this class needs to be drawn
        /// </summary>
        /// <returns>list of all the shapes to be drawn</returns>
        internal override List <Shape> GetShapes()
        {
            List <Shape> shapes = new List <Shape>();

            //Generate the real distribution of bees
            Dictionary <int, int> beeDistribution = GetBeeDistribution();

            DistributionToPoints(beeDistribution);
            shapes.Add(new ClosedCurve(points));

            //Generate the target distribution of bees
            beeDistribution = GetTargetBeeDistribution(beeDistribution);
            DistributionToPoints(beeDistribution);
            ClosedCurve targetDistribution = new ClosedCurve(points);

            targetDistribution.myBrush = new SolidBrush(Color.FromArgb(150, 255, 255, 0));
            shapes.Add(targetDistribution);

            return(shapes);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Generates all of the shapes that this class needs to be drawn
        /// </summary>
        /// <returns>list of all the shapes to be drawn</returns>
        internal override List<Shape> GetShapes()
        {
            List<Shape> shapes = new List<Shape>();

            //Generate the real distribution of bees
            Dictionary<int, int> beeDistribution = GetBeeDistribution();
            DistributionToPoints(beeDistribution);            
            shapes.Add(new ClosedCurve(points));

            //Generate the target distribution of bees
            beeDistribution = GetTargetBeeDistribution(beeDistribution);
            DistributionToPoints(beeDistribution);
            ClosedCurve targetDistribution = new ClosedCurve(points);
            targetDistribution.myBrush = new SolidBrush(Color.FromArgb(150, 255, 255, 0));
            shapes.Add(targetDistribution);

            return shapes;
        }