Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        /// <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));
        }