public override void ActivateLayout(Grid parentGrid) { sceneViews.Clear(); parentGrid.BeginInit(); parentGrid.Children.Clear(); // 3 x SceneView3D: // // * | ** // ---| ** // * | ** SetupGrid(parentGrid); var sceneView3D = new SceneView3D(dxDevice); sceneView3D.SelectedSceneViewType = SceneViewType.StandardCustomSceneView; sceneView3D.Camera1.CameraType = BaseCamera.CameraTypes.PerspectiveCamera; sceneView3D.WireframeVisual.WireframeType = WireframeVisual3D.WireframeTypes.OriginalSolidModel; sceneView3D.WireframeVisual.UseModelColor = true; sceneViews.Add(sceneView3D); AddUIElement(parentGrid, 0, sceneView3D); sceneView3D = new SceneView3D(dxDevice); sceneView3D.SelectedSceneViewType = SceneViewType.Get("top"); sceneView3D.Camera1.CameraType = BaseCamera.CameraTypes.OrthographicCamera; sceneView3D.WireframeVisual.WireframeType = WireframeVisual3D.WireframeTypes.Wireframe; sceneView3D.WireframeVisual.UseModelColor = false; sceneViews.Add(sceneView3D); AddUIElement(parentGrid, 1, sceneView3D); sceneView3D = new SceneView3D(dxDevice); sceneView3D.SelectedSceneViewType = SceneViewType.Get("front"); sceneView3D.Camera1.CameraType = BaseCamera.CameraTypes.OrthographicCamera; sceneView3D.WireframeVisual.WireframeType = WireframeVisual3D.WireframeTypes.Wireframe; sceneView3D.WireframeVisual.UseModelColor = false; sceneViews.Add(sceneView3D); AddUIElement(parentGrid, 2, sceneView3D); parentGrid.EndInit(); }
private static void SetupStandardViews() { _standardCustomSceneView = new SceneViewType("Custom", 20, -20); _standerViews = new SceneViewType[] { _standardCustomSceneView, new SceneViewType("Top", 0, -90), new SceneViewType("Front", 0, 0), new SceneViewType("Left", 90, 0), new SceneViewType("Right", -90, 0), new SceneViewType("Back", 180, 0), new SceneViewType("Bottom", 0, 90) }; }