Exemplo n.º 1
0
 public DataItem(String uniqueId, String title, String imagePath, DataGroup group)
     : base(uniqueId, title, imagePath)
 {
     this._group = group;
 }
Exemplo n.º 2
0
        public DataSource()
        {
            var fractals = new DataGroup("Mandelbrot-Group",
                    "Mandelbrots",
                    "Assets/DarkGray.png",
                    "Group Description: Fractals!");
            fractals.Items.Add(new StaticMandelbrotDrawer("StaticMandelbrot1",
                    "Full Mandelbrot",
                    "Assets/LightGray.png",
                    Color.White,
                    -.875f,
                    0f,
                    3f,
                    64,
                    fractals));
            fractals.Items.Add(new StaticMandelbrotDrawer("StaticMandelbrot2",
                    "Mandelbrot detail",
                    "Assets/LightGray.png",
                    Color.White,
                    -1.0f,
                    0.2f,
                    0.5f,
                    128,
                    fractals));
            fractals.Items.Add(new TrajectoryMandelbrotDrawer("DynamicMandelbrot1",
                    "Mandelbot zoomer 1",
                    "Assets/LightGray.png",
                    Color.White,
                    new DynamicTrajectory(new StaticTrajectory(0.3750001200618655f, -0.2166393884377127f, 5f), (Trajectory a) => new StaticTrajectory(a.getRCenter(), a.getICenter(), a.getWidth() * 0.99f)),
                    128,
                    fractals));
            fractals.Items.Add(new TrajectoryMandelbrotDrawer("DynamicMandelbrot2",
                    "Mandel zoomer 2",
                    "Assets/LightGray.png",
                    Color.White,
                    new DynamicTrajectory(new StaticTrajectory(-0.13856524454488f, -0.64935990748190f, 5f), (Trajectory a) => new StaticTrajectory(a.getRCenter(), a.getICenter(), a.getWidth() * 0.99f)),
                    128,
                    fractals));
            fractals.Items.Add(new TrajectoryMandelbrotDrawer("DynamicMandelbrot3",
                    "Mandel zoomer 3",
                    "Assets/LightGray.png",
                    Color.White,
                    new DynamicTrajectory(new StaticTrajectory(0.435396403f, 0.367981352f, 5f), (Trajectory a) => new StaticTrajectory(a.getRCenter(), a.getICenter(), a.getWidth() * 0.99f)),
                    128,
                    fractals));
            fractals.Items.Add(new TrajectoryMandelbrotDrawer("DynamicMandelbrot4",
                    "Mandel zoomer 4",
                    "Assets/LightGray.png",
                    Color.White,
                    new DynamicTrajectory(new StaticTrajectory(-0.567709792f, 0.638956191f, 5f), (Trajectory a) => new StaticTrajectory(a.getRCenter(), a.getICenter(), a.getWidth() * 0.99f)),
                    128,
                    fractals));
            fractals.Items.Add(new TrajectoryMandelbrotDrawer("DynamicMandelbrot5",
                    "Mandel zoomer 5",
                    "Assets/LightGray.png",
                    Color.White,
                    new DynamicTrajectory(new StaticTrajectory(-0.37465401f, 0.659227668f, 5f), (Trajectory a) => new StaticTrajectory(a.getRCenter(), a.getICenter(), a.getWidth() * 0.99f)),
                    128,
                    fractals));

            this.AllGroups.Add(fractals);

            var group1 = new DataGroup("Group-1",
                    "Pixel art",
                    "Assets/DarkGray.png",
                    "Group Description: Pixel drawn figurines");
            group1.Items.Add(new PixelDrawer("Group-1-Item-1",
                    "White pixels",
                    "Assets/LightGray.png",
                    Color.White,
                    group1));
            group1.Items.Add(new PixelDrawer("Group-1-Item-2",
                    "Blue pixels",
                    "Assets/LightGray.png",
                    Color.Blue,
                    group1));
            this.AllGroups.Add(group1);

            var group2 = new DataGroup("Group-2",
                    "Line art",
                    "Assets/DarkGray.png",
                    "Group Description: Line drawn figurines");
            group2.Items.Add(new LineDrawer("Group-2-Item-1",
                    "White lines",
                    "Assets/LightGray.png",
                    Color.White,
                    group2));
            group2.Items.Add(new LineDrawer("Group-2-Item-2",
                    "Blue lines",
                    "Assets/LightGray.png",
                    Color.Blue,
                    group2));
            group2.Items.Add(new LineDrawer("Group-2-Item-3",
                    "Red lines",
                    "Assets/LightGray.png",
                    Color.Red,
                    group2));
            this.AllGroups.Add(group2);
        }