Esempio n. 1
0
        private CameraManager()
        {
            OrbitPanCamera ocp = new OrbitPanCamera();

            //OrbitCamera oc = new OrbitCamera();
            EgoCamera ecX = new EgoCamera();
            EgoCamera ecY = new EgoCamera();
            EgoCamera ecZ = new EgoCamera();

            cameras.Add(ocp);

            //cameras.Add(oc);
            cameras.Add(ecX);
            cameras.Add(ecY);
            cameras.Add(ecZ);

            currentIndex  = 0;
            currentCamera = cameras[currentIndex];
        }
Esempio n. 2
0
        internal async void RunPresentation()
        {
            try
            {
                OrbitPanCamera cam = (OrbitPanCamera)CameraManager.Instance.currentCamera;

                if (cam.IsPresentationRunning)
                {
                    await Task.Run(() => cam.StopRotationY());
                }
                else
                {
                    await Task.Run(() => cam.RunRotationY());
                }
            }
            catch (Exception)
            {
            }
        }