-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
138 lines (136 loc) · 7.71 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<Window x:Class="SkeletalTracking.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="480" Width="640" Closed="Window_Closed" Loaded="Window_Loaded" KeyDown="Window_KeyDown">
<Canvas Name="MainCanvas" Height="480" Width="640">
<Image Opacity="0.9" Canvas.Left="-12" Canvas.Top="-12" Height="480 " Name="image1" Stretch="Fill" Width="640" />
<Ellipse Canvas.Left="270" Canvas.Top="126" Height="50" Name="headEllipse" Stroke="Black" Width="50" Fill="Orange" />
<Ellipse Canvas.Left="384" Canvas.Top="253" Height="35" Name="rightEllipse" Stroke="Black" Width="35" Fill="Blue" />
<Ellipse Canvas.Left="158" Canvas.Top="253" Fill="Blue" Height="35" Name="leftEllipse" Stroke="Black" Width="35" />
<Ellipse Canvas.Left="282" Canvas.Top="174" Fill="PaleGoldenrod" Height="25" Name="shoulderCenter" Stroke="Black" Width="25" />
<Ellipse Canvas.Left="313" Canvas.Top="182" Fill="SpringGreen" Height="18" Name="shoulderRight" Stroke="Black" Width="16" />
<Ellipse Canvas.Left="245" Canvas.Top="182" Fill="SpringGreen" Height="18" Name="shoulderLeft" Stroke="Black" Width="17" />
<Ellipse Canvas.Left="224" Canvas.Top="373" Fill="Salmon" Height="16" Name="ankleLeft" Stroke="Black" Width="16" />
<Ellipse Canvas.Left="313" Canvas.Top="381" Fill="Salmon" Height="16" Name="ankleRight" Stroke="Black" Width="16" />
<Ellipse Canvas.Left="214" Canvas.Top="381" Fill="SpringGreen" Height="26" Name="footLeft" Stroke="Black" Width="26" />
<Ellipse Canvas.Left="321" Canvas.Top="390" Fill="SpringGreen" Height="26" Name="footRight" Stroke="Black" Width="26" />
<Ellipse Canvas.Left="177" Canvas.Top="253" Fill="Salmon" Height="16" Name="wristLeft" Stroke="Black" Width="16" />
<Ellipse Canvas.Left="384" Canvas.Top="243" Fill="Salmon" Height="16" Name="wristRight" Stroke="Black" Width="16" />
<Ellipse Canvas.Left="206" Canvas.Top="220" Fill="Bisque" Height="16" Name="elbowLeft" Stroke="Black" Width="16" />
<Ellipse Canvas.Left="357" Canvas.Top="220" Fill="Bisque" Height="16" Name="elbowRight" Stroke="Black" Width="16" />
<Ellipse Canvas.Left="245" Canvas.Top="319" Fill="Bisque" Height="16" Name="kneeLeft" Stroke="Black" Width="16" />
<Ellipse Canvas.Left="304" Canvas.Top="319" Fill="Bisque" Height="16" Name="kneeRight" Stroke="Black" Width="16" />
<Ellipse Canvas.Left="282" Canvas.Top="253" Fill="BlueViolet" Height="16" Name="hipCenter" Stroke="Black" Width="16" />
<TextBlock Name="target1" Text="1"
Height="75"
Width="75"
Padding="27,10,0,0" Canvas.Left="23" Canvas.Top="220" FontSize="40">
<TextBlock.Background>
<VisualBrush>
<VisualBrush.Visual>
<Ellipse Height="75"
Width="75"
Fill="#FFFF3800" Stroke="Black" />
</VisualBrush.Visual>
</VisualBrush>
</TextBlock.Background>
</TextBlock>
<TextBlock Name="target2" Text="2"
Height="75"
Width="75"
Padding="27,10,0,0" Canvas.Left="111" Canvas.Top="96" FontSize="40">
<TextBlock.Background>
<VisualBrush>
<VisualBrush.Visual>
<Ellipse Height="65"
Width="65"
Fill="#FFFF3800" Stroke="Black" />
</VisualBrush.Visual>
</VisualBrush>
</TextBlock.Background>
</TextBlock>
<TextBlock Name="target3" Text="3"
Height="75"
Width="75"
Padding="27,10,0,0" Canvas.Left="262" Canvas.Top="33" FontSize="40">
<TextBlock.Background>
<VisualBrush>
<VisualBrush.Visual>
<Ellipse Height="65"
Width="65"
Fill="#FFFF3800" Stroke="Black" />
</VisualBrush.Visual>
</VisualBrush>
</TextBlock.Background>
</TextBlock>
<TextBlock Name="target4" Text="4"
Height="75"
Width="75"
Padding="27,10,0,0" Canvas.Left="409" Canvas.Top="96" FontSize="40">
<TextBlock.Background>
<VisualBrush>
<VisualBrush.Visual>
<Ellipse Height="65"
Width="65"
Fill="#FFFF3800" Stroke="Black" />
</VisualBrush.Visual>
</VisualBrush>
</TextBlock.Background>
</TextBlock>
<TextBlock Name="target5" Text="5"
Height="75"
Width="75"
Padding="27,10,0,0" Canvas.Left="505" Canvas.Top="220" FontSize="40">
<TextBlock.Background>
<VisualBrush>
<VisualBrush.Visual>
<Ellipse Height="65"
Width="65"
Fill="#FFFF3800" Stroke="Black" />
</VisualBrush.Visual>
</VisualBrush>
</TextBlock.Background>
</TextBlock>
<TextBlock Name="targetLeft" Text="L"
Height="75"
Width="75"
Padding="27,10,0,0" Canvas.Left="30" Canvas.Top="174" FontSize="40">
<TextBlock.Background>
<VisualBrush>
<VisualBrush.Visual>
<Ellipse Height="65"
Width="65"
Fill="#FFFF3800" Stroke="Black" />
</VisualBrush.Visual>
</VisualBrush>
</TextBlock.Background>
</TextBlock>
<TextBlock Name="targetRight" Text="R"
Height="75"
Width="75"
Padding="27,10,0,0" Canvas.Left="517" Canvas.Top="174" FontSize="40">
<TextBlock.Background>
<VisualBrush>
<VisualBrush.Visual>
<Ellipse Height="65"
Width="65"
Fill="#FFFF3800" Stroke="Black" />
</VisualBrush.Visual>
</VisualBrush>
</TextBlock.Background>
</TextBlock>
<Label Canvas.Left="0" Canvas.Top="0" Content="Current Controller:" Height="28" Name="label1" Width="108" />
<Label Canvas.Left="103" Canvas.Top="0" Content="Example Controller" Height="28" Name="controllerText" Width="140" />
<TextBlock Canvas.Left="377" Canvas.Top="5" Height="17" Name="textBlock1" Text="(Use keyboard {1, 2, 3} to change controllers)" Width="249" />
<Label Canvas.Left="30" Canvas.Top="350" Content="Left ShoulderZ:" Height="28" Name="leftShoulderText" Width="150" />
<Label Canvas.Left="430" Canvas.Top="350" Content="Right ShoulderZ:" Height="28" Name="rightShoulderText" Width="150" />
<Label Canvas.Left="30" Canvas.Top="370" Content="Left ShoulderX:" Height="28" Name="leftShoulderXText" Width="150" />
<Label Canvas.Left="430" Canvas.Top="370" Content="Right ShoulderX:" Height="28" Name="rightShoulderXText" Width="150" />
<Label Canvas.Left="12" Canvas.Top="80" Content="RightShoulder Y:" Height="28" Name="rightShoulderYText" Width="150" />
<Label Canvas.Left="12" Canvas.Top="62" Content="RightElbow Y:" Height="28" Name="rightElbowYText" Width="150" />
<Label Canvas.Left="12" Canvas.Top="28" Content="Head Y:" Height="28" Name="headYText" Width="150" />
<Label Canvas.Left="12" Canvas.Top="42" Content="RightHand:" Height="28" Name="rightHandYText" Width="150" />
<Label Canvas.Left="148" Canvas.Top="28" Content="DeltaX:" Height="28" Name="deltaXText" Width="150" />
<Label Canvas.Left="148" Canvas.Top="42" Content="DeltaY:" Height="28" Name="deltaYText" Width="150" />
</Canvas>
</Window>