Esempio n. 1
0
        /// <summary>
        /// this method is called from <see cref="WinControl"/>, if the <see cref="EventServer"/> returns true.
        /// </summary>
        /// <param name="e">MouseEventArgs</param>
        virtual protected void onMouseDown(System.Windows.Forms.MouseEventArgs e)
        {
            WinControl.Focus();

            if ((Navigating))
            {
                if (Control.ModifierKeys != Keys.Control)
                {
                    if (!Simulated)
                    {
                        if (((int)NavigateKind & (int)NavigateModus.Rotate) == (int)NavigateModus.Rotate)
                        {
                            CurrentNavigationsModus = NavigateModus.Rotate;
                            StartNavigate           = MousePos;

                            Camera.BeginRotation();
                        }
                    }
                }
                else
                if (((int)NavigateKind & (int)NavigateModus.Trans) == (int)NavigateModus.Trans)

                {
                    if (!Simulated)
                    {
                        BeginTrans();
                    }
                }
            }
            BeginTransForm = MousePos;
            Base B = new Base();

            if (SnappItems.Count > 0)
            {
                B = SnappItems[0].GetBase();
            }
            if (B.BaseZ.dist(new xyz(0, 0, 1)) < 0.001)
            {
            }
        }