Files
UVtools/UVtools.WPF/Controls/Tools/ToolPixelDimmingControl.axaml
T
Tiago Conceição 5c5670f0b1 v1.3.5
* (Add) Pixel Dimming: Chamfer - Allow the number of walls pixels to be gradually varied as the operation progresses from the starting layer to the ending layer (#106)
* (Add) PrusaSlicer print profiles: 0.01, 0.02, 0.03, 0.04, 0.15, 0.2
* (Change) Morph: "Fade" to "Chamfer" naming, created profiles need redo
* (Change) Pixel Dimming: Allow start with 0px walls when using "Walls Only"
* (Change) PrusaSlicer print profiles names, reduced bottom layers and raft height
* (Remove) PrusaSlicer print profiles with 3 digit z precision (0.025 and 0.035)
* (Fix) PW0, PWS, PWMX, PWMO, PWMS, PWX file formats, where 4 offsets (16 bytes) were missing on preview image, leading to wrong table size. Previous converted files with UVtools wont open from now on, you need to reconvert them. (ezrec/uv3dp#124)
* (Fix) Unable to run Re-Height tool due a rounding problem on some cases (#101)
* (Fix) Layer preview end with exception when no per layer settings are available (SL1 case)
2020-12-04 01:00:37 +00:00

279 lines
7.7 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="950" d:DesignHeight="500"
x:Class="UVtools.WPF.Controls.Tools.ToolPixelDimmingControl">
<StackPanel Spacing="10">
<StackPanel Spacing="10" Orientation="Horizontal">
<TextBlock
VerticalAlignment="Center"
Text="Wall thickness:"
/>
<NumericUpDown
Minimum="0"
Maximum="1000"
Width="80"
Value="{Binding Operation.WallThicknessStart}"
/>
<TextBlock
VerticalAlignment="Center"
Text="To:"
IsEnabled="{Binding Operation.Chamfer}"
/>
<NumericUpDown
Minimum="0"
Maximum="1000"
Width="80"
Value="{Binding Operation.WallThicknessEnd}"
IsEnabled="{Binding Operation.Chamfer}"
/>
<TextBlock
VerticalAlignment="Center"
Text="px"
IsEnabled="{Binding Operation.Chamfer}"
/>
<CheckBox
Margin="20,0,0,0"
Content="Chamfer walls"
ToolTip.Tip="Allow the number of walls pixels to be gradually varied as the operation progresses from the starting layer to the ending layer."
IsChecked="{Binding Operation.Chamfer}"
/>
<CheckBox
Margin="20,0,0,0"
Content="Dim only walls"
IsChecked="{Binding Operation.WallsOnly}"
/>
<TextBlock
Margin="20,0,0,0"
VerticalAlignment="Center"
Text="Alternate the pattern every:"
/>
<NumericUpDown
Minimum="1"
Maximum="{Binding ushort.MaxValue}"
Width="80"
Value="{Binding Operation.AlternatePatternPerLayers}"
/>
<TextBlock
VerticalAlignment="Center"
Text="layers"
/>
</StackPanel>
<Grid
RowDefinitions="200,10,Auto"
ColumnDefinitions="450,10,450"
>
<TextBox
AcceptsReturn="True"
Watermark="Pattern"
UseFloatingWatermark="True"
TextWrapping="NoWrap"
Text="{Binding PatternText}"
/>
<TextBox
Grid.Column="2"
AcceptsReturn="True"
Watermark="Alternate pattern (Optional)"
UseFloatingWatermark="True"
TextWrapping="NoWrap"
Text="{Binding AlternatePatternText}"
/>
<Border
Grid.Row="3"
BorderBrush="LightGray"
BorderThickness="1"
Padding="5"
>
<StackPanel Spacing="10">
<TextBlock FontWeight="Bold" Text="Pixel dimming generator"/>
<StackPanel Orientation="Horizontal" Spacing="10">
<TextBlock
VerticalAlignment="Center"
Text="Brightness:"/>
<NumericUpDown
Minimum="0"
Maximum="254"
Width="80"
Value="{Binding DimGenBrightness}"
/>
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="10">
<Button
Padding="10"
Content="Chessboard"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Chessboard"
/>
<Button
Padding="10"
Content="Sparse"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Sparse"
/>
<Button
Padding="10"
Content="Crosses"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Crosses"
/>
<Button
Padding="10"
Content="Strips"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Strips"
/>
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="10">
<Button
Padding="10"
Content="Pyramid"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Pyramid"
/>
<Button
Padding="10"
Content="Rhombus"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Rhombus"
/>
<Button
Padding="10"
Content="Waves"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Waves"
/>
<Button
Padding="10"
Content="Slashes"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Slashes"
/>
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="10">
<Button
Padding="10"
Content="Hearts"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Hearts"
/>
<Button
Padding="10"
Content="Solid"
Width="100"
Command="{Binding GeneratePixelDimming}"
CommandParameter="Solid"
/>
</StackPanel>
</StackPanel>
</Border>
<Border
Grid.Row="3"
Grid.Column="3"
BorderBrush="LightGray"
BorderThickness="1"
Padding="5"
>
<StackPanel Spacing="10">
<TextBlock FontWeight="Bold" Text="Infill generator"/>
<TextBlock
TextWrapping="Wrap"
Text="Warning: This function can generate a large number of resin traps. (Use with caution)"/>
<StackPanel Orientation="Horizontal" Spacing="10">
<TextBlock
VerticalAlignment="Center"
Text="Thickness:"/>
<NumericUpDown
Minimum="5"
Maximum="10000"
Width="80"
Value="{Binding InfillGenThickness}"
/>
<TextBlock
VerticalAlignment="Center"
Text="px"/>
<TextBlock
Margin="20,0,0,0"
VerticalAlignment="Center"
Text="Spacing:"/>
<NumericUpDown
Minimum="5"
Maximum="10000"
Width="80"
Value="{Binding InfillGenSpacing}"
/>
<TextBlock
VerticalAlignment="Center"
Text="px"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="10">
<Button
Padding="10"
Content="Rectilinear"
Width="100"
Command="{Binding GenerateInfill}"
CommandParameter="Rectilinear"
/>
<Button
Padding="10"
Content="Square grid"
Width="100"
Command="{Binding GenerateInfill}"
CommandParameter="Square grid"
/>
<Button
Padding="10"
Content="Waves"
Width="100"
Command="{Binding GenerateInfill}"
CommandParameter="Waves"
/>
<Button
Padding="10"
Content="Lattice"
Width="100"
Command="{Binding GenerateInfill}"
CommandParameter="Lattice"
/>
</StackPanel>
</StackPanel>
</Border>
</Grid>
</StackPanel>
</UserControl>