You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
4.0 KiB

<UserControl
x:Class="MODELING_DEF_DES_MI_VI.Modules.PoreInspectionUnit.PoreInspectionView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:MODELING_DEF_DES_MI_VI.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:local="clr-namespace:MODELING_DEF_DES_MI_VI.Modules.PoreInspectionUnit"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DataContext="{d:DesignInstance local:PoreInspectionViewModel}"
d:DesignHeight="450"
d:DesignWidth="400"
mc:Ignorable="d">
<Grid
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="Black">
<TextBlock Text="Просмотр модели недоступен">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding GlobalMaterial.Pores.Count}" Value="0">
<Setter Property="Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
<Grid>
<ItemsControl Focusable="True" ItemsSource="{Binding Ellipses}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<Canvas
Width="{Binding Camera.Width, Mode=OneWay}"
Height="{Binding Camera.Height, Mode=OneWay}"
IsItemsHost="True" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
<UniformGrid Columns="2">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom">
<TextBlock Foreground="White" Text="Смещение вдоль плоскости: W A S D" />
<TextBlock Foreground="White" Text="Изменение глубины: R F" />
<TextBlock Foreground="White" Text="Изменение масштаба: + -" />
<TextBlock Foreground="White" Text="Изменение скорости камеры: 9 0" />
<TextBlock Foreground="White" Text="Изменение дальности прорисовки: T G" />
</StackPanel>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom">
<TextBlock Foreground="White" Text="{Binding Camera.Scale, StringFormat={}Масштаб отрисовки: 1 к {0}}" />
<TextBlock Foreground="White" Text="{Binding Camera.Speed, StringFormat={}Скорость камеры: {0}}" />
<TextBlock Foreground="White" Text="{Binding Camera.CutDepth, StringFormat={}Глубина среза: {0}}" />
<TextBlock Foreground="White" Text="{Binding Camera.DepthVisibility, StringFormat={}Дистанция прорисовки: {0}}" />
<TextBlock Foreground="White" Text="{Binding Ellipses.Count, StringFormat={}Отрисованно объектов: {0}, Mode=OneWay}" />
</StackPanel>
</UniformGrid>
<Grid.Style>
<Style TargetType="Grid">
<Setter Property="Visibility" Value="Visible" />
<Style.Triggers>
<DataTrigger Binding="{Binding Ellipses.Count, Mode=OneWay}" Value="0">
<Setter Property="Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Triggers>
</Style>
</Grid.Style>
</Grid>
</Grid>
</UserControl>