Esempio n. 1
0
        /// <summary>
        /// Matches this camera to the others
        /// </summary>
        public void MatchCamera()
        {
            try
            {
                for (int i = 0; i < 12; i++)
                {
                    string dp_name = "dp_tab2_" + i;

                    DockPanel dp = (DockPanel)W.GetControls()[dp_name];

                    Viewport3d myViewport = (Viewport3d)dp.Children[1];
                    myViewport.SetCamera(this.GetCamera());
                }
            }
            catch
            {
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Matches this camera to the others
        /// </summary>
        public void MatchCamera()
        {
            try
            {
                for (int i = 0; i < 12; i++)
                {
                    string dp_name = "dp_tab2_" + i;

                    DockPanel dp = (DockPanel)W.GetControls()[dp_name];

                    // Noting that the first child of dp is the performance bar, hence Children[1]
                    Viewport3d myViewport = (Viewport3d)dp.Children[1];
                    myViewport.SetCamera(this.GetCamera());
                }
            }
            catch
            {
            }
        }