20230724_MBJC_upperpc/Views/InitialView.xaml
2024-02-27 17:21:02 +08:00

173 lines
8.9 KiB
XML
Raw 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="_20230724_MBJC_upperpc.Views.InitialView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:_20230724_MBJC_upperpc.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="800"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid>
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
<TextBlock
Name="Rotate_Y"
FontSize="15"
Foreground="White"
Text="偏航角90.24°" />
<TextBlock Name="Rotate_Y_PY" FontSize="15" />
</StackPanel>
<StackPanel
HorizontalAlignment="Right"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock
Name="Rotate_X"
FontSize="15"
Foreground="White"
Text="俯仰角90.24°" />
<TextBlock Name="Rotate_X_PY" FontSize="15" />
</StackPanel>
<StackPanel
Margin="15,0,0,5"
VerticalAlignment="Bottom"
Orientation="Horizontal">
<TextBlock
Name="Rotate_Z"
FontSize="15"
Foreground="White"
Text="翻滚角90.24°" />
<TextBlock Name="Rotate_Z_PY" FontSize="15" />
</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="Yellow" />
</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>