public Bookmark createBookmark(String name)
        {
            LayerState layerState = new LayerState();

            layerState.captureState();
            SceneViewWindow window   = standaloneController.SceneViewController.ActiveWindow;
            Bookmark        bookmark = new Bookmark(name, window.Translation, window.LookAt, layerState);

            saveBookmark(bookmark, currentPath, bookmarksResourceProvider);

            fireBookmarkAdded(bookmark);

            return(bookmark);
        }
示例#2
0
        public void applySceneStateToSlide(Slide slide)
        {
            CameraPosition cameraPos = new CameraPosition();

            if (sceneViewController.ActiveWindow != null)
            {
                SceneViewWindow window = sceneViewController.ActiveWindow;
                cameraPos.Translation = window.Translation;
                cameraPos.LookAt      = window.LookAt;
                window.calculateIncludePoint(cameraPos);
            }
            LayerState layers = new LayerState();

            layers.captureState();
            PresetState    medicalState   = medicalStateController.createPresetState("");
            MusclePosition musclePosition = new MusclePosition();

            musclePosition.captureState();
            slide.StartupAction = new SetupSceneAction("Show", cameraPos, layers, musclePosition, medicalState, true, TeethController.HighlightContacts);
        }