diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-03-19 07:48:45 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-03-19 07:48:45 +0300 |
commit | 3f838001c7fe5d67dadfd3d70e7ea012f99fabe7 (patch) | |
tree | 31a69dc9c7cf09106b7bb2fca3b25f4bd1360517 /UVtools.WPF/UserSettings.cs | |
parent | cb1070df5e6690f6e31753c58576621c5e587737 (diff) |
v2.7.0v2.7.0
* **Core:**
* Write "Unhandled Exceptions" to an "errors.log" file at user settings directory
* Increase layer height max precision from 2 to 3 decimals
* **Settings - Layer Preview:**
* Allow to set hollow line thickness to -1 to fill the area
* Add tooltip for "Auto rotate on load": Auto rotate the layer preview on file load for a landscape viewport
* Add option to masks outline color and thickness
* Add option to clear ROI when adding masks
* Add option "Auto flip on load": Auto flip the layer preview on file load if the file is marked to print mirrored on the printer LCD
* **Layer preview:**
* Add selectable rotation directions 90º (CW and CCW)
* Add preview flip (CTRL+F) horizontally and/or vertically
* Add maskable regions to process on a layer (SHIFT + Alt + Click) on a area
* ROI: Shortcut "Shift + left click" now also selects hollow black areas inside a white perimeter
* ROI: Shortcut "ESC + Shift" to clear only the ROI and leave masks in
* Fix a crash when using the pixel picker tool outside image bounds
* **Pixel editor:**
* Change drawings brush diameter limit from 255 to 4000 maximum
* When using layers below go lower than layer 0 it no longer apply the modifications
* **File formats:**
* Add an internal GCodeBuilder to generate identical gcode within formats with auto convertion, managing features and parsing information
* Internally rearrange formats properties and pass values to the base class
* Fix "Save As" filename when using formats with dual extensions
* CBDDLP and CTB: "LightPWM" was setting "BottomLightPWM" instead
* CWS: Fix problem with filenames with dots (.) and ending with numbers (#171)
* CWS: Improved the enconding and decoding performance
* CWS: Implement all available print paramenters and per layer, missing values are got from gcode interpretation
* CWS: Use set "light off delay" layer value instead of calculating it
* CWS: Get light off delay per layer parsed from gcode
* CWS - RGB flavour (Bene4 Mono): Warn about wrong resolution if width not multiples of 3 (#171)
* ZCode: Allow to set Bottom and Light intensity (LightPWM) on paramters and per layer
* ZCode: Allow to change bottom light pwm independent from normal light pwm
* LGS: Light off and bottom light off was setting the value on the wrong units
* UVJ: Unable to set per layer parameters
* **Issues:**
* When computing islands and resin traps together, they will not compute in parallel anymore to prevent CPU and tasks exaustion, it will calculate islands first and then resin traps, this should also speed up the process on weaker machines
* Gather resin trap areas together when computing for other issues to spare a decoding cycle latter
* When using a threshold for islands detection it was also appling it to the overhangs
* Fix the spare decoding conditional cycle for partial scans
* Change resin trap search from parallel to sync to prevent fake detections and missing joints at cost of speed (#13)
* **Tools:**
* Add layer selector: 'From first to current layer' and 'From current to last layer'
* I printed this file: Multiplier - Number of time(s) the file has been printed. Half numbers can be used to consume from a failed print. Example: 0.5x if a print canceled at 50% progress
* Pixel dimming: Increase wall thickness default from 5px to 10px
* Import layers: Importing layers was not marking layers as modified, then the save file won't save the new images in, to prevent other similar bugs, all layers that got replaced will be auto marked as modified
Diffstat (limited to 'UVtools.WPF/UserSettings.cs')
-rw-r--r-- | UVtools.WPF/UserSettings.cs | 49 |
1 files changed, 44 insertions, 5 deletions
diff --git a/UVtools.WPF/UserSettings.cs b/UVtools.WPF/UserSettings.cs index fd06445..853c257 100644 --- a/UVtools.WPF/UserSettings.cs +++ b/UVtools.WPF/UserSettings.cs @@ -166,15 +166,18 @@ namespace UVtools.WPF { private Color _tooltipOverlayBackgroundColor = new Color(210, 255, 255, 192); private bool _tooltipOverlay = true; - private Color _volumeBoundsOutlineColor = new Color(210, 0, 255, 0); + private Color _volumeBoundsOutlineColor = new Color(255, 0, 255, 0); private byte _volumeBoundsOutlineThickness = 3; private bool _volumeBoundsOutline = true; - private Color _layerBoundsOutlineColor = new Color(210, 0, 255, 0); + private Color _layerBoundsOutlineColor = new Color(255, 0, 255, 0); private byte _layerBoundsOutlineThickness = 3; private bool _layerBoundsOutline = false; - private Color _hollowOutlineColor = new Color(210, 255, 165, 0); - private byte _hollowOutlineLineThickness = 3; + private Color _hollowOutlineColor = new Color(255, 255, 165, 0); + private sbyte _hollowOutlineLineThickness = 5; private bool _hollowOutline = false; + private Color _maskOutlineColor = new Color(255, 42, 157, 244); + private sbyte _maskOutlineLineThickness = 10; + private bool _maskClearRoiAfterSet = true; private Color _previousLayerDifferenceColor = new Color(255, 255, 0, 255); private Color _nextLayerDifferenceColor = new Color(255, 0, 255, 255); private Color _bothLayerDifferenceColor = new Color(255, 255, 0, 0); @@ -195,6 +198,7 @@ namespace UVtools.WPF private uint _crosshairLength = 20; private byte _crosshairMargin = 5; private bool _autoRotateLayerBestView = true; + private bool _autoFlipLayerIfMirrored = true; private bool _layerZoomToFitOnLoad = true; private bool _showBackgroudGrid; @@ -296,7 +300,7 @@ namespace UVtools.WPF set => HollowOutlineColor = new Color(value); } - public byte HollowOutlineLineThickness + public sbyte HollowOutlineLineThickness { get => _hollowOutlineLineThickness; set => RaiseAndSetIfChanged(ref _hollowOutlineLineThickness, value); @@ -308,6 +312,35 @@ namespace UVtools.WPF set => RaiseAndSetIfChanged(ref _hollowOutline, value); } + public Color MaskOutlineColor + { + get => _maskOutlineColor; + set + { + RaiseAndSetIfChanged(ref _maskOutlineColor, value); + RaisePropertyChanged(nameof(MaskOutlineBrush)); + } + } + + [XmlIgnore] + public SolidColorBrush MaskOutlineBrush + { + get => new SolidColorBrush(_maskOutlineColor.ToAvalonia()); + set => MaskOutlineColor = new Color(value); + } + + public sbyte MaskOutlineLineThickness + { + get => _maskOutlineLineThickness; + set => RaiseAndSetIfChanged(ref _maskOutlineLineThickness, value); + } + + public bool MaskClearROIAfterSet + { + get => _maskClearRoiAfterSet; + set => RaiseAndSetIfChanged(ref _maskClearRoiAfterSet, value); + } + public Color PreviousLayerDifferenceColor { get => _previousLayerDifferenceColor; @@ -548,6 +581,12 @@ namespace UVtools.WPF set => RaiseAndSetIfChanged(ref _autoRotateLayerBestView, value); } + public bool AutoFlipLayerIfMirrored + { + get => _autoFlipLayerIfMirrored; + set => RaiseAndSetIfChanged(ref _autoFlipLayerIfMirrored, value); + } + public bool LayerZoomToFitOnLoad { get => _layerZoomToFitOnLoad; |