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