20240801_FJEQ_upperpc/FujianEarthquake_seabed/FujianEarthquake/Views/UserControls/CoordinateView.xaml
XuMin 1f5631afb3 1 研究上下位机通信协议,编写协议解析代码;
2 研究岸基站可编程电源通信协议,编写岸基站状态数据显示页面;
2024-08-29 18:03:03 +08:00

162 lines
9.3 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<UserControl x:Class="FujianEarthquake.Views.UserControls.CoordinateView"
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:FujianEarthquake.Views.UserControls"
mc:Ignorable="d"
d:DesignHeight="800" d:DesignWidth="800">
<Grid>
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Name="Rotate_Y"
FontSize="11"
Foreground="White"/>
<!--Text="偏航角0.00°"-->
<TextBlock Name="Rotate_Y_PY" FontSize="11" Foreground="White"/>
</StackPanel>
<StackPanel Margin="0,60,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Name="Rotate_X"
FontSize="11"
Foreground="White"/>
<!--Text="俯仰角0.00°" />-->
<TextBlock Name="Rotate_X_PY" FontSize="11" Foreground="White"/>
</StackPanel>
<StackPanel Margin="5,10,0,5"
VerticalAlignment="Bottom"
Orientation="Horizontal">
<TextBlock Name="Rotate_Z"
FontSize="11"
Foreground="White"/>
<!--Text="翻滚角0.00°" />-->
<TextBlock Name="Rotate_Z_PY" FontSize="11" Foreground="White"/>
</StackPanel>
<Viewport3D xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Margin="0,20,0,0">
<Viewport3D.Camera>
<!--<PerspectiveCamera Position="0,2.5,10" LookDirection="0,-0.1,-1" NearPlaneDistance="1" FarPlaneDistance="10" />-->
<PerspectiveCamera FarPlaneDistance="50"
LookDirection="-0.5,-0.5,-1"
NearPlaneDistance="1"
Position="4,4,8" />
</Viewport3D.Camera>
<Viewport3D.Children>
<ModelVisual3D>
<ModelVisual3D.Children>
<ModelVisual3D>
<ModelVisual3D.Content>
<GeometryModel3D>
<GeometryModel3D.Geometry>
<MeshGeometry3D
Normals="0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1"
Positions="0,-0.2,0 0,0.2,0 4,0.2,0 4,0.4,0 5,0,0 4,-0.4,0 4,-0.2,0"
TriangleIndices="0 2 1 0 6 2 2 4 3 6 4 2 5 4 6 1 2 0 2 6 0 3 4 2 2 4 6 6 4 5" />
</GeometryModel3D.Geometry>
<GeometryModel3D.Material>
<DiffuseMaterial>
<DiffuseMaterial.Brush>
<SolidColorBrush Opacity="1" Color="Red" />
</DiffuseMaterial.Brush>
</DiffuseMaterial>
</GeometryModel3D.Material>
</GeometryModel3D>
</ModelVisual3D.Content>
</ModelVisual3D>
<ModelVisual3D>
<ModelVisual3D.Content>
<GeometryModel3D>
<GeometryModel3D.Geometry>
<MeshGeometry3D
Normals="0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1"
Positions="0,-0.2,0 0,0.2,0 0,0.2,4 0,0.4,4 0,0,5 0,-0.4,4 0,-0.2,4"
TriangleIndices="6 0 1 6 1 2 4 2 3 4 6 2 4 5 6 1 0 6 2 1 6 3 2 4 2 6 4 6 5 4" />
</GeometryModel3D.Geometry>
<GeometryModel3D.Material>
<DiffuseMaterial>
<DiffuseMaterial.Brush>
<SolidColorBrush Opacity="1" Color="Blue" />
</DiffuseMaterial.Brush>
</DiffuseMaterial>
</GeometryModel3D.Material>
</GeometryModel3D>
</ModelVisual3D.Content>
</ModelVisual3D>
<ModelVisual3D>
<ModelVisual3D.Content>
<GeometryModel3D>
<GeometryModel3D.Geometry>
<MeshGeometry3D
Normals="0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1"
Positions="0,0,0.2 0,0,-0.2 0,5,-0.2 0,5,-0.4 0,6,0 0,5,0.4 0,5,0.2"
TriangleIndices="0 1 2 6 0 2 4 2 3 4 6 2 4 5 6 2 1 0 2 0 6 3 2 4 2 6 4 6 5 4 0 1 2 6 0 2" />
</GeometryModel3D.Geometry>
<GeometryModel3D.Material>
<DiffuseMaterial>
<DiffuseMaterial.Brush>
<SolidColorBrush Opacity="1" Color="Orange" />
</DiffuseMaterial.Brush>
</DiffuseMaterial>
</GeometryModel3D.Material>
</GeometryModel3D>
</ModelVisual3D.Content>
</ModelVisual3D>
</ModelVisual3D.Children>
<ModelVisual3D.Transform>
<Transform3DGroup>
<RotateTransform3D CenterX="0"
CenterY="0"
CenterZ="0">
<RotateTransform3D.Rotation>
<AxisAngleRotation3D x:Name="rotateX" Axis="1,0,0" />
</RotateTransform3D.Rotation>
</RotateTransform3D>
<RotateTransform3D CenterX="0"
CenterY="0"
CenterZ="0">
<RotateTransform3D.Rotation>
<AxisAngleRotation3D x:Name="rotateY" Axis="0,1,0" />
</RotateTransform3D.Rotation>
</RotateTransform3D>
<RotateTransform3D CenterX="0"
CenterY="0"
CenterZ="0">
<RotateTransform3D.Rotation>
<AxisAngleRotation3D x:Name="rotateZ" Axis="0,0,1" />
</RotateTransform3D.Rotation>
</RotateTransform3D>
<ScaleTransform3D CenterX="0"
CenterY="0"
CenterZ="0"
ScaleX="0.8"
ScaleY="0.6"
ScaleZ="0.8" />
</Transform3DGroup>
</ModelVisual3D.Transform>
</ModelVisual3D>
<ModelVisual3D>
<ModelVisual3D.Children>
<ModelVisual3D>
<ModelVisual3D.Content>
<Model3DGroup>
<Model3DGroup.Children>
<AmbientLight Color="#262626" />
<DirectionalLight Direction="3.150000,-8.090000,-4.960000" Color="#6F6F6F" />
<DirectionalLight Direction="8.610000,4.820000,-1.640000" Color="#454545" />
<DirectionalLight Direction="-9.490000,3.090000,0.600000" Color="#332835" />
</Model3DGroup.Children>
</Model3DGroup>
</ModelVisual3D.Content>
</ModelVisual3D>
</ModelVisual3D.Children>
</ModelVisual3D>
</Viewport3D.Children>
</Viewport3D>
</Grid>
</UserControl>