/// <summary>
        ///     Set camera settings using a preset.
        /// </summary>
        /// <param name="Preset">The preset to be used.</param>
        public void SetCameraPreset(SLCameraPresetValues Preset)
        {
            switch (Preset)
            {
            case SLCameraPresetValues.None:
                CameraPreset      = A.PresetCameraValues.OrthographicFront;
                decX              = 0;
                decY              = 0;
                decZ              = 0;
                decPerspective    = 0;
                HasCamera         = false;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.IsometricLeftDown:
                CameraPreset      = A.PresetCameraValues.IsometricLeftDown;
                decX              = 45;
                decY              = 35;
                decZ              = 0;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.IsometricRightUp:
                CameraPreset      = A.PresetCameraValues.IsometricRightUp;
                decX              = 315;
                decY              = 35;
                decZ              = 0;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.IsometricTopUp:
                CameraPreset      = A.PresetCameraValues.IsometricTopUp;
                decX              = 314.7m;
                decY              = 324.6m;
                decZ              = 60.2m;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.IsometricBottomDown:
                CameraPreset      = A.PresetCameraValues.IsometricBottomDown;
                decX              = 314.7m;
                decY              = 35.39999999999999m;
                decZ              = 299.8m;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.OffAxis1Left:
                CameraPreset      = A.PresetCameraValues.IsometricOffAxis1Left;
                decX              = 64m;
                decY              = 18m;
                decZ              = 0;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.OffAxis1Right:
                CameraPreset      = A.PresetCameraValues.IsometricOffAxis1Right;
                decX              = 334m;
                decY              = 18m;
                decZ              = 0;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.OffAxis1Top:
                CameraPreset      = A.PresetCameraValues.IsometricOffAxis1Top;
                decX              = 306.5m;
                decY              = 301.3m;
                decZ              = 57.6m;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.OffAxis2Left:
                CameraPreset      = A.PresetCameraValues.IsometricOffAxis2Left;
                decX              = 26m;
                decY              = 18m;
                decZ              = 0m;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.OffAxis2Right:
                CameraPreset      = A.PresetCameraValues.IsometricOffAxis2Right;
                decX              = 296m;
                decY              = 18m;
                decZ              = 0m;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.OffAxis2Top:
                CameraPreset      = A.PresetCameraValues.IsometricOffAxis2Top;
                decX              = 53.49999999999999m;
                decY              = 301.3m;
                decZ              = 302.4m;
                decPerspective    = 0;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveFront:
                CameraPreset      = A.PresetCameraValues.PerspectiveFront;
                decX              = 0m;
                decY              = 0m;
                decZ              = 0m;
                decPerspective    = 45m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveLeft:
                CameraPreset      = A.PresetCameraValues.PerspectiveLeft;
                decX              = 20m;
                decY              = 0m;
                decZ              = 0m;
                decPerspective    = 45m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveRight:
                CameraPreset      = A.PresetCameraValues.PerspectiveRight;
                decX              = 340m;
                decY              = 0m;
                decZ              = 0m;
                decPerspective    = 45m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveBelow:
                CameraPreset      = A.PresetCameraValues.PerspectiveBelow;
                decX              = 0m;
                decY              = 20m;
                decZ              = 0m;
                decPerspective    = 45m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveAbove:
                CameraPreset      = A.PresetCameraValues.PerspectiveAbove;
                decX              = 0m;
                decY              = 340m;
                decZ              = 0m;
                decPerspective    = 45m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveRelaxedModerately:
                CameraPreset      = A.PresetCameraValues.PerspectiveRelaxedModerately;
                decX              = 0m;
                decY              = 324.8m;
                decZ              = 0m;
                decPerspective    = 45m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveRelaxed:
                CameraPreset      = A.PresetCameraValues.PerspectiveRelaxed;
                decX              = 0m;
                decY              = 309.6m;
                decZ              = 0m;
                decPerspective    = 45m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveContrastingLeft:
                CameraPreset      = A.PresetCameraValues.PerspectiveContrastingLeftFacing;
                decX              = 43.89999999999999m;
                decY              = 10.4m;
                decZ              = 356.4m;
                decPerspective    = 45m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveContrastingRight:
                CameraPreset      = A.PresetCameraValues.PerspectiveContrastingRightFacing;
                decX              = 316.1m;
                decY              = 10.4m;
                decZ              = 3.6m;
                decPerspective    = 45m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveHeroicExtremeLeft:
                CameraPreset      = A.PresetCameraValues.PerspectiveHeroicExtremeLeftFacing;
                decX              = 34.49999999999999m;
                decY              = 8.1m;
                decZ              = 357.1m;
                decPerspective    = 80m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.PerspectiveHeroicExtremeRight:
                CameraPreset      = A.PresetCameraValues.PerspectiveHeroicExtremeRightFacing;
                decX              = 325.5m;
                decY              = 8.1m;
                decZ              = 2.9m;
                decPerspective    = 80m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.ObliqueTopLeft:
                CameraPreset      = A.PresetCameraValues.ObliqueTopLeft;
                decX              = 0m;
                decY              = 0m;
                decZ              = 0m;
                decPerspective    = 0m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.ObliqueTopRight:
                CameraPreset      = A.PresetCameraValues.ObliqueTopRight;
                decX              = 0m;
                decY              = 0m;
                decZ              = 0m;
                decPerspective    = 0m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.ObliqueBottomLeft:
                CameraPreset      = A.PresetCameraValues.ObliqueBottomLeft;
                decX              = 0m;
                decY              = 0m;
                decZ              = 0m;
                decPerspective    = 0m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;

            case SLCameraPresetValues.ObliqueBottomRight:
                CameraPreset      = A.PresetCameraValues.ObliqueBottomRight;
                decX              = 0m;
                decY              = 0m;
                decZ              = 0m;
                decPerspective    = 0m;
                HasCamera         = true;
                HasXYZSet         = false;
                HasPerspectiveSet = false;
                break;
            }
        }
 /// <summary>
 /// Set camera settings using a preset.
 /// </summary>
 /// <param name="Preset">The preset to be used.</param>
 public void SetCameraPreset(SLCameraPresetValues Preset)
 {
     switch (Preset)
     {
         case SLCameraPresetValues.None:
             this.CameraPreset = A.PresetCameraValues.OrthographicFront;
             this.decX = 0;
             this.decY = 0;
             this.decZ = 0;
             this.decPerspective = 0;
             this.HasCamera = false;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.IsometricLeftDown:
             this.CameraPreset = A.PresetCameraValues.IsometricLeftDown;
             this.decX = 45;
             this.decY = 35;
             this.decZ = 0;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.IsometricRightUp:
             this.CameraPreset = A.PresetCameraValues.IsometricRightUp;
             this.decX = 315;
             this.decY = 35;
             this.decZ = 0;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.IsometricTopUp:
             this.CameraPreset = A.PresetCameraValues.IsometricTopUp;
             this.decX = 314.7m;
             this.decY = 324.6m;
             this.decZ = 60.2m;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.IsometricBottomDown:
             this.CameraPreset = A.PresetCameraValues.IsometricBottomDown;
             this.decX = 314.7m;
             this.decY = 35.39999999999999m;
             this.decZ = 299.8m;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.OffAxis1Left:
             this.CameraPreset = A.PresetCameraValues.IsometricOffAxis1Left;
             this.decX = 64m;
             this.decY = 18m;
             this.decZ = 0;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.OffAxis1Right:
             this.CameraPreset = A.PresetCameraValues.IsometricOffAxis1Right;
             this.decX = 334m;
             this.decY = 18m;
             this.decZ = 0;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.OffAxis1Top:
             this.CameraPreset = A.PresetCameraValues.IsometricOffAxis1Top;
             this.decX = 306.5m;
             this.decY = 301.3m;
             this.decZ = 57.6m;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.OffAxis2Left:
             this.CameraPreset = A.PresetCameraValues.IsometricOffAxis2Left;
             this.decX = 26m;
             this.decY = 18m;
             this.decZ = 0m;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.OffAxis2Right:
             this.CameraPreset = A.PresetCameraValues.IsometricOffAxis2Right;
             this.decX = 296m;
             this.decY = 18m;
             this.decZ = 0m;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.OffAxis2Top:
             this.CameraPreset = A.PresetCameraValues.IsometricOffAxis2Top;
             this.decX = 53.49999999999999m;
             this.decY = 301.3m;
             this.decZ = 302.4m;
             this.decPerspective = 0;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveFront:
             this.CameraPreset = A.PresetCameraValues.PerspectiveFront;
             this.decX = 0m;
             this.decY = 0m;
             this.decZ = 0m;
             this.decPerspective = 45m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveLeft:
             this.CameraPreset = A.PresetCameraValues.PerspectiveLeft;
             this.decX = 20m;
             this.decY = 0m;
             this.decZ = 0m;
             this.decPerspective = 45m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveRight:
             this.CameraPreset = A.PresetCameraValues.PerspectiveRight;
             this.decX = 340m;
             this.decY = 0m;
             this.decZ = 0m;
             this.decPerspective = 45m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveBelow:
             this.CameraPreset = A.PresetCameraValues.PerspectiveBelow;
             this.decX = 0m;
             this.decY = 20m;
             this.decZ = 0m;
             this.decPerspective = 45m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveAbove:
             this.CameraPreset = A.PresetCameraValues.PerspectiveAbove;
             this.decX = 0m;
             this.decY = 340m;
             this.decZ = 0m;
             this.decPerspective = 45m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveRelaxedModerately:
             this.CameraPreset = A.PresetCameraValues.PerspectiveRelaxedModerately;
             this.decX = 0m;
             this.decY = 324.8m;
             this.decZ = 0m;
             this.decPerspective = 45m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveRelaxed:
             this.CameraPreset = A.PresetCameraValues.PerspectiveRelaxed;
             this.decX = 0m;
             this.decY = 309.6m;
             this.decZ = 0m;
             this.decPerspective = 45m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveContrastingLeft:
             this.CameraPreset = A.PresetCameraValues.PerspectiveContrastingLeftFacing;
             this.decX = 43.89999999999999m;
             this.decY = 10.4m;
             this.decZ = 356.4m;
             this.decPerspective = 45m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveContrastingRight:
             this.CameraPreset = A.PresetCameraValues.PerspectiveContrastingRightFacing;
             this.decX = 316.1m;
             this.decY = 10.4m;
             this.decZ = 3.6m;
             this.decPerspective = 45m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveHeroicExtremeLeft:
             this.CameraPreset = A.PresetCameraValues.PerspectiveHeroicExtremeLeftFacing;
             this.decX = 34.49999999999999m;
             this.decY = 8.1m;
             this.decZ = 357.1m;
             this.decPerspective = 80m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.PerspectiveHeroicExtremeRight:
             this.CameraPreset = A.PresetCameraValues.PerspectiveHeroicExtremeRightFacing;
             this.decX = 325.5m;
             this.decY = 8.1m;
             this.decZ = 2.9m;
             this.decPerspective = 80m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.ObliqueTopLeft:
             this.CameraPreset = A.PresetCameraValues.ObliqueTopLeft;
             this.decX = 0m;
             this.decY = 0m;
             this.decZ = 0m;
             this.decPerspective = 0m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.ObliqueTopRight:
             this.CameraPreset = A.PresetCameraValues.ObliqueTopRight;
             this.decX = 0m;
             this.decY = 0m;
             this.decZ = 0m;
             this.decPerspective = 0m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.ObliqueBottomLeft:
             this.CameraPreset = A.PresetCameraValues.ObliqueBottomLeft;
             this.decX = 0m;
             this.decY = 0m;
             this.decZ = 0m;
             this.decPerspective = 0m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
         case SLCameraPresetValues.ObliqueBottomRight:
             this.CameraPreset = A.PresetCameraValues.ObliqueBottomRight;
             this.decX = 0m;
             this.decY = 0m;
             this.decZ = 0m;
             this.decPerspective = 0m;
             this.HasCamera = true;
             this.HasXYZSet = false;
             this.HasPerspectiveSet = false;
             break;
     }
 }