private void RescaleAllLayers(Altaxo.Graph.Graph3D.GraphDocument doc) { var layers = TreeNodeExtensions.TakeFromFirstLeavesToHere(doc.RootLayer).OfType <Altaxo.Graph.Graph3D.XYZPlotLayer>(); foreach (var layer in layers) { layer.OnUserRescaledAxes(); } }
/// <summary> /// Creates a new graph document and the view content.. /// </summary> /// <returns>The view content for the newly created graph.</returns> public Altaxo.Gui.Graph.Graph3D.Viewing.IGraphController CreateNewGraph3D(Altaxo.Graph.Graph3D.GraphDocument doc) { if (null == doc) { doc = Altaxo.Graph.Graph3D.Templates.TemplateWithXYZPlotLayerWithG3DCartesicCoordinateSystem.CreateGraph( PropertyExtensions.GetPropertyContextOfProjectFolder(ProjectFolder.RootFolderName), "GRAPH", ProjectFolder.RootFolderName, false); } return((Altaxo.Gui.Graph.Graph3D.Viewing.IGraphController)CreateNewViewContent_Unsynchronized(doc)); }