Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-09-06 03:34:58 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-09-06 03:34:58 +0300
commit08a5797f36867c9b4c9b58da94e61bbea6258ae1 (patch)
tree51bdf0a133dbdeff923a8566f67fdce000a93006 /UVtools.WPF/UserSettings.cs
parent6a2a52ebcb3bcd98476d13f24d562383fc8756b4 (diff)
v2.21.1v2.21.1
- **(Add) Layer outline:** - Blob outline: Outline all separate blobs - Centroids: Draw a dot at the gemoetric center of a blob - (Add) Adjust layer height: Allow to change exposure time on the dialog and inform that different layer thickness require different exposure times - (Add) Resin trap detection: Allow to choose the starting layer index for resin trap detection which will also be considered a drain layer. Use this setting to bypass complicated rafts by selected the model first real layer (#221) - (Improvement) Disable mirroed preview when loading a file that is not mirroed
Diffstat (limited to 'UVtools.WPF/UserSettings.cs')
-rw-r--r--UVtools.WPF/UserSettings.cs73
1 files changed, 72 insertions, 1 deletions
diff --git a/UVtools.WPF/UserSettings.cs b/UVtools.WPF/UserSettings.cs
index b76150e..a1aa260 100644
--- a/UVtools.WPF/UserSettings.cs
+++ b/UVtools.WPF/UserSettings.cs
@@ -183,12 +183,19 @@ namespace UVtools.WPF
private Color _volumeBoundsOutlineColor = new(255, 0, 255, 0);
private byte _volumeBoundsOutlineThickness = 3;
private bool _volumeBoundsOutline = true;
- private Color _layerBoundsOutlineColor = new(255, 0, 255, 0);
+ private Color _layerBoundsOutlineColor = new(255, 45, 150, 45);
private byte _layerBoundsOutlineThickness = 3;
private bool _layerBoundsOutline = false;
+ private Color _contourBoundsOutlineColor = new(255, 50, 100, 50);
+ private byte _contourBoundsOutlineThickness = 2;
+ private bool _contourBoundsOutline = false;
private Color _hollowOutlineColor = new(255, 255, 165, 0);
private sbyte _hollowOutlineLineThickness = 5;
private bool _hollowOutline = false;
+ private Color _centroidOutlineColor = new(255, 255, 0, 0);
+ private byte _centroidOutlineDiameter = 8;
+ private bool _centroidOutlineHollow = false;
+ private bool _centroidOutline = true;
private Color _maskOutlineColor = new(255, 42, 157, 244);
private sbyte _maskOutlineLineThickness = 10;
private bool _maskClearRoiAfterSet = true;
@@ -298,6 +305,35 @@ namespace UVtools.WPF
set => RaiseAndSetIfChanged(ref _layerBoundsOutline, value);
}
+ public Color ContourBoundsOutlineColor
+ {
+ get => _contourBoundsOutlineColor;
+ set
+ {
+ RaiseAndSetIfChanged(ref _contourBoundsOutlineColor, value);
+ RaisePropertyChanged(nameof(ContourBoundsOutlineBrush));
+ }
+ }
+
+ [XmlIgnore]
+ public SolidColorBrush ContourBoundsOutlineBrush
+ {
+ get => new(_contourBoundsOutlineColor.ToAvalonia());
+ set => ContourBoundsOutlineColor = new Color(value);
+ }
+
+ public byte ContourBoundsOutlineThickness
+ {
+ get => _contourBoundsOutlineThickness;
+ set => RaiseAndSetIfChanged(ref _contourBoundsOutlineThickness, value);
+ }
+
+ public bool ContourBoundsOutline
+ {
+ get => _contourBoundsOutline;
+ set => RaiseAndSetIfChanged(ref _contourBoundsOutline, value);
+ }
+
public Color HollowOutlineColor
{
get => _hollowOutlineColor;
@@ -327,6 +363,41 @@ namespace UVtools.WPF
set => RaiseAndSetIfChanged(ref _hollowOutline, value);
}
+ public Color CentroidOutlineColor
+ {
+ get => _centroidOutlineColor;
+ set
+ {
+ RaiseAndSetIfChanged(ref _centroidOutlineColor, value);
+ RaisePropertyChanged(nameof(CentroidOutlineBrush));
+ }
+ }
+
+ [XmlIgnore]
+ public SolidColorBrush CentroidOutlineBrush
+ {
+ get => new(_centroidOutlineColor.ToAvalonia());
+ set => CentroidOutlineColor = new Color(value);
+ }
+
+ public byte CentroidOutlineDiameter
+ {
+ get => _centroidOutlineDiameter;
+ set => RaiseAndSetIfChanged(ref _centroidOutlineDiameter, value);
+ }
+
+ public bool CentroidOutlineHollow
+ {
+ get => _centroidOutlineHollow;
+ set => RaiseAndSetIfChanged(ref _centroidOutlineHollow, value);
+ }
+
+ public bool CentroidOutline
+ {
+ get => _centroidOutline;
+ set => RaiseAndSetIfChanged(ref _centroidOutline, value);
+ }
+
public Color MaskOutlineColor
{
get => _maskOutlineColor;