blob: 56112611eb2f5db7bc87b2ba9f98061c429ef2de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
<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"
xmlns:uc="clr-namespace:UVtools.WPF.Controls"
mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="400"
x:Class="UVtools.WPF.Controls.Tools.ToolMorphControl">
<StackPanel>
<Grid RowDefinitions="Auto,10,Auto" ColumnDefinitions="Auto,10,*">
<TextBlock
ToolTip.Tip="Selects the number of iterations/passes to perform on each layer using this mutator.

Enable the 'Chamfer' to chamfer the iteration over layers, you can use a start iteration higher than end to perform a inverse chamfer.

WARNING: Using high iteration values can destroy your model depending on the mutator being used, please use low values or with caution!"
VerticalAlignment="Center"
Text="Iterations:"/>
<StackPanel
Grid.Row="0"
Grid.Column="2"
Orientation="Horizontal" Spacing="10">
<NumericUpDown
Minimum="1"
Width="140"
Value="{Binding Operation.IterationsStart}"
/>
<TextBlock
VerticalAlignment="Center"
Text="To:"
IsEnabled="{Binding Operation.Chamfer}"/>
<NumericUpDown
Minimum="1"
Width="140"
Value="{Binding Operation.IterationsEnd}"
IsEnabled="{Binding Operation.Chamfer}"
/>
<CheckBox
ToolTip.Tip="Allow the number of iterations to be gradually varied as the operation progresses from the starting layer to the ending layer."
Content="Chamfer"
IsChecked="{Binding Operation.Chamfer}"
/>
</StackPanel>
<TextBlock
Grid.Row="2"
Grid.Column="0"
VerticalAlignment="Center"
Text="Operation:"/>
<ComboBox
Grid.Row="2"
Grid.Column="2"
HorizontalAlignment="Stretch"
SelectedIndex="{Binding MorphSelectedIndex}"
Items="{Binding Operation.MorphOperations}"
/>
</Grid>
<Border
Margin="0,10,0,0" >
<Expander>
<Expander.Header>
<TextBlock Text="Kernel - Advanced options (Click to expand)"
FontWeight="Bold"
Cursor="Hand"/>
</Expander.Header>
<uc:KernelControl
Name="KernelCtrl"
Margin="0,10,0,0"
/>
</Expander>
</Border>
</StackPanel>
</UserControl>
|