147 lines
8.8 KiB
Plaintext
147 lines
8.8 KiB
Plaintext
|
|
<UserControl x:Class="MonitoringTechnology.Views.AttitudeDisplayView"
|
|||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|||
|
|
xmlns:local="clr-namespace:MonitoringTechnology.Views"
|
|||
|
|
xmlns:models="clr-namespace:MonitoringTechnology.Models"
|
|||
|
|
mc:Ignorable="d"
|
|||
|
|
d:DesignHeight="450" d:DesignWidth="800" FontSize="13">
|
|||
|
|
<UserControl.Resources>
|
|||
|
|
<SolidColorBrush x:Key="buttoncolor" Color="#BB000000"/>
|
|||
|
|
<Style x:Key="pathstroke" TargetType="Path">
|
|||
|
|
<Setter Property="Stroke" Value="{StaticResource buttoncolor}"/>
|
|||
|
|
<Setter Property="StrokeThickness" Value="3"/>
|
|||
|
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
|||
|
|
</Style>
|
|||
|
|
</UserControl.Resources>
|
|||
|
|
<Grid>
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition Width="7*"/>
|
|||
|
|
<ColumnDefinition Width="2*"/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<Grid Grid.Column="0">
|
|||
|
|
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
|
|||
|
|
<local:ViewControlButton Click="ButtonBigger_Click" ToolTip="放大">
|
|||
|
|
<Grid Height=" 20" Width="20">
|
|||
|
|
<Path Data="M0,10 L20,10" Style="{StaticResource pathstroke}"/>
|
|||
|
|
<Path Data="M10,0 L10,20" Style="{StaticResource pathstroke}"/>
|
|||
|
|
</Grid>
|
|||
|
|
</local:ViewControlButton >
|
|||
|
|
<local:ViewControlButton Click="ButtonSmaller_Click" ToolTip="缩小">
|
|||
|
|
<Grid Height=" 20" Width="20">
|
|||
|
|
<Path Data="M0,10 L20,10" Style="{StaticResource pathstroke}"/>
|
|||
|
|
</Grid>
|
|||
|
|
</local:ViewControlButton>
|
|||
|
|
</StackPanel>
|
|||
|
|
<!--3D模型-->
|
|||
|
|
<local:BlackBox Rotate_X="{Binding F_DegreesX}" Rotate_Y="{Binding F_DegreesY}" Rotate_Z="{Binding F_DegreesZ}"/>
|
|||
|
|
</Grid>
|
|||
|
|
<Grid Grid.Column="1">
|
|||
|
|
<Grid>
|
|||
|
|
<Grid.RowDefinitions>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
<RowDefinition/>
|
|||
|
|
</Grid.RowDefinitions>
|
|||
|
|
<Grid Grid.Row="0">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="数据上传时间:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_DatetimeSensor,StringFormat=yyyy/MM/dd HH:mm:ss}" Foreground="#AFEEEE" Height="35" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
</Grid>
|
|||
|
|
<Grid Grid.Row="1">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="俯仰角:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_DegreesX,StringFormat={}{0:F2}°}" x:Name="angleX" Foreground="#AFEEEE" Grid.Column="1" Height="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
</Grid>
|
|||
|
|
|
|||
|
|
<Grid Grid.Row="2">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="横滚角:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_DegreesY,StringFormat={}{0:F2}°}" x:Name="labelY" Foreground="#AFEEEE" Grid.Column="1" Height="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
|
|||
|
|
</Grid>
|
|||
|
|
|
|||
|
|
<Grid Grid.Row="3">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="偏航角:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_DegreesZ,StringFormat={}{0:F2}°}" x:Name="labelZ" Foreground="#AFEEEE" Grid.Column="1" Height="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
</Grid>
|
|||
|
|
|
|||
|
|
<Grid Grid.Row="4">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="加速度X:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_AccelerationX,StringFormat={}{0:F2}m/s²}" Foreground="#AFEEEE" Grid.Column="1" Height="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
</Grid>
|
|||
|
|
|
|||
|
|
<Grid Grid.Row="5">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="加速度Y:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_AccelerationY,StringFormat={}{0:F2}m/s²}" Foreground="#AFEEEE" Grid.Column="1" Height="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
</Grid>
|
|||
|
|
|
|||
|
|
<Grid Grid.Row="6">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="加速度Z:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_AccelerationZ,StringFormat={}{0:F2}m/s²}" Foreground="#AFEEEE" Grid.Column="1" Height="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
</Grid>
|
|||
|
|
<Grid Grid.Row="7">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="角速度X:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_AngularVelocityX,StringFormat={}{0:F2}rad/s}" Foreground="#AFEEEE" Grid.Column="1" Height="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
</Grid>
|
|||
|
|
<Grid Grid.Row="8">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="角速度Y:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_AngularVelocityY,StringFormat={}{0:F2}rad/s}" Foreground="#AFEEEE" Grid.Column="1" Height="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
</Grid>
|
|||
|
|
<Grid Grid.Row="9">
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
<ColumnDefinition/>
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
<TextBlock Text="角速度Z:" Foreground="#AFEEEE" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" Grid.Column="0"/>
|
|||
|
|
<TextBlock Text="{Binding F_AngularVelocityZ,StringFormat={}{0:F2}rad/s}" Foreground="#AFEEEE" Grid.Column="1" Height="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|||
|
|
</Grid>
|
|||
|
|
|
|||
|
|
</Grid>
|
|||
|
|
</Grid>
|
|||
|
|
</Grid>
|
|||
|
|
</UserControl>
|