Canguro.Commands.View.PredefinedXYZ.Run C# (CSharp) Method

Run() public method

Executes the Non-Interactive Command. Sets the RotationMatrix for the View with a Default 3D View and Executes ZoomAll.
public Run ( Canguro activeView ) : void
activeView Canguro The Current Active View object
return void
        public override void Run(Canguro.View.GraphicView activeView)
        {
            activeView.ArcBallCtrl.ResetRotation();
            activeView.ArcBallCtrl.RotationMatrix = Matrix.RotationX(-(float)Math.PI / 2.0f) * Matrix.RotationY(-3.0f * (float)Math.PI / 4.0f) * Matrix.RotationX((float)Math.PI / 6.0f);
            activeView.ViewMatrix = activeView.ArcBallCtrl.ViewMatrix;
            ZoomAll.Instance.Run(activeView);
        }