|
|
@ -3,8 +3,7 @@ |
|
|
|
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:localizations="clr-namespace:Pores.Models.Localizations" |
|
|
|
xmlns:local="clr-namespace:Pores" |
|
|
|
xmlns:spreads="clr-namespace:Pores.Models.Spreads" |
|
|
|
mc:Ignorable="d" |
|
|
|
Title="Pores" Height="600" Width="1000"> |
|
|
|
<Grid IsEnabled="{Binding EnableControlsFlag}"> |
|
|
@ -24,46 +23,44 @@ |
|
|
|
<TextBlock Text="Просмотр модели"/> |
|
|
|
</StackPanel> |
|
|
|
</DockPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel VerticalAlignment="Center" Grid.Column="1" Margin="5 0"> |
|
|
|
<TextBlock Text="Параметры модели"/> |
|
|
|
<TextBlock Text="Ширина: "/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.Width}"/> |
|
|
|
<TextBlock Text="Глубина: "/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.Depth}"/> |
|
|
|
<TextBlock Text="Высота: "/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.Height}"/> |
|
|
|
<TextBlock Text="Разрешение каждого из трех измерений (общее количество точек = n^3): " TextWrapping="Wrap"/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.NumberOfPores}"/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel VerticalAlignment="Center" Grid.Column="1" Grid.Row="2" Grid.RowSpan="2" Margin="5 0"> |
|
|
|
<TextBlock Text="Результаты работы"/> |
|
|
|
<TextBlock Text="Количество пор: "/> |
|
|
|
<TextBox Text="{Binding Pores.Count, Mode=OneWay}" IsEnabled="False"/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Margin="5 0"> |
|
|
|
<TextBlock Text="Параметры модели распределения:"/> |
|
|
|
<ComboBox ItemsSource="{Binding Localizations}" SelectedItem="{Binding SelectedLocalization}" HorizontalAlignment="Left" Width="198"></ComboBox> |
|
|
|
<ContentControl Content="{Binding SelectedLocalization}"> |
|
|
|
<ContentControl.Resources> |
|
|
|
<DataTemplate DataType="{x:Type localizations:NormalLocalization}"> |
|
|
|
<StackPanel> |
|
|
|
<TextBlock Text="Сигма: "/> |
|
|
|
<TextBox Text="{Binding sigma}"/> |
|
|
|
<TextBlock Text="Мю: "/> |
|
|
|
<TextBox Text="{Binding mu}"/> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
</ContentControl.Resources> |
|
|
|
</ContentControl> |
|
|
|
</StackPanel> |
|
|
|
<DockPanel Grid.Column="1" Grid.RowSpan="3" VerticalAlignment="Stretch" Margin="5 0"> |
|
|
|
<StackPanel DockPanel.Dock="Top" Margin="5 0"> |
|
|
|
<TextBlock Text="Настройки моделирования" HorizontalAlignment="Center" FontWeight="SemiBold" Margin="0 5"/> |
|
|
|
<TextBlock Text="Параметры модели материала: "/> |
|
|
|
<TextBlock Text="Ширина: "/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.Width}"/> |
|
|
|
<TextBlock Text="Глубина: "/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.Depth}"/> |
|
|
|
<TextBlock Text="Высота: "/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.Height}"/> |
|
|
|
<TextBlock Text="Разрешение каждого из трех измерений (общее количество точек = n^3): " TextWrapping="Wrap"/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.NumberOfPores}"/> |
|
|
|
<TextBlock Text="Параметры модели распределения:"/> |
|
|
|
<ComboBox ItemsSource="{Binding Spreads}" SelectedItem="{Binding SelectedSpread}" HorizontalAlignment="Left" Width="198"></ComboBox> |
|
|
|
<ContentControl Content="{Binding SelectedSpread}"> |
|
|
|
<ContentControl.Resources> |
|
|
|
<DataTemplate DataType="{x:Type spreads:NormalSpread}"> |
|
|
|
<StackPanel> |
|
|
|
<TextBlock Text="Сигма: "/> |
|
|
|
<TextBox Text="{Binding sigma}"/> |
|
|
|
<TextBlock Text="Мю: "/> |
|
|
|
<TextBox Text="{Binding mu}"/> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
</ContentControl.Resources> |
|
|
|
</ContentControl> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom" Margin="5 10"> |
|
|
|
<TextBlock Text="Результаты работы"/> |
|
|
|
<TextBlock Text="Количество пор: "/> |
|
|
|
<TextBox Text="{Binding Pores.Count, Mode=OneWay}" IsEnabled="False"/> |
|
|
|
</StackPanel> |
|
|
|
</DockPanel> |
|
|
|
|
|
|
|
<DockPanel Grid.Column="2" Grid.RowSpan="3" Margin="5 0"> |
|
|
|
|
|
|
|
<StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom"> |
|
|
|
<Button Content="Сгенерировать модель" Command="{Binding GeneratePoresCommand}"/> |
|
|
|
<Button Content="Сохранить выборку из модели в файл" Command="{Binding GenAndSaveBatchCommand}"/> |
|
|
@ -78,7 +75,7 @@ |
|
|
|
</Button.Content> |
|
|
|
</Button> |
|
|
|
<Button Content="Открыть папку с моделями" Command="{Binding OpenModelDirectoryCommand}"/> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel DockPanel.Dock="Top"> |
|
|
|
<TextBlock Text="Настройки выборки и экспорта" FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0 5"/> |
|
|
@ -105,10 +102,6 @@ |
|
|
|
<TextBlock TextWrapping="Wrap" Text="Предоставить отчет по количеству пор, соединенных между собой"/> |
|
|
|
</CheckBox> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</DockPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
</Window> |
|
|
|