Exemple #1
0
        public ScenePainter(DynamicCase scene)
        {
            Scene = scene;
            Pen spherePen         = new Pen(Brushes.DarkGray, 2);
            Pen selectedSpherePen = new Pen(Brushes.Black, 2);

            foreach (Sphere3d @object in scene.Spheres)
            {
                PaintableSphere3d paintableSphere = new PaintableSphere3d(@object, spherePen);
                Objects.Add(paintableSphere);
            }

            Objects.Add(new CollisionPainter(scene.Spheres));
            PaintableSphere3d selectedSphere = null;

            OnKeyDown = (KeyEventArgs keys) =>
            {
            };

            Vector3d mousePosition = new Vector3d();

            OnMouseMove = (MouseEventArgs e) =>
            {
                return(false);
            };
        }
Exemple #2
0
        public ScenePainter(SimulationScene scene)
        {
            Scene = scene;

            foreach (Sphere3d @object in scene.Objects)
            {
                Objects.Add(new PaintableSphere3d(@object, Pens.Black));
            }
        }