|
28
|
1 |
<!--
|
|
15
|
2 |
/*
|
|
|
3 |
* This file is part of the TraKERS\Middleware package.
|
|
|
4 |
*
|
|
|
5 |
* (c) IRI <http://www.iri.centrepompidou.fr/>
|
|
|
6 |
*
|
|
27
|
7 |
* For the full copyright and license information, please view the LICENSE
|
|
15
|
8 |
* file that was distributed with this source code.
|
|
|
9 |
*/
|
|
|
10 |
-->
|
|
|
11 |
|
|
|
12 |
<!--
|
|
|
13 |
Projet : TraKERS
|
|
|
14 |
Module : MIDDLEWARE
|
|
|
15 |
Sous-Module : Debug
|
|
|
16 |
Classe : DebugWindow
|
|
|
17 |
|
|
|
18 |
Auteur : alexandre.bastien@iri.centrepompidou.fr
|
|
|
19 |
|
|
|
20 |
Fonctionnalités : Affiche le rendu visuel du Middleware : Le squelette, afficher la détection des mains,
|
|
|
21 |
des gestures et la distance de l'utilisateur.
|
|
|
22 |
-->
|
|
|
23 |
|
|
|
24 |
<Window x:Class="Trakers.Debug.DebugWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TraKERS - DebugWindow" Height="480" Width="640" Loaded="Window_Loaded">
|
|
|
25 |
<Grid>
|
|
|
26 |
<Grid.RowDefinitions>
|
|
|
27 |
<RowDefinition />
|
|
|
28 |
<RowDefinition Height="30" />
|
|
|
29 |
</Grid.RowDefinitions>
|
|
|
30 |
<Grid.ColumnDefinitions>
|
|
|
31 |
<ColumnDefinition />
|
|
|
32 |
<ColumnDefinition Width="85" />
|
|
|
33 |
</Grid.ColumnDefinitions>
|
|
|
34 |
|
|
|
35 |
<!-- Ceci est le rendu visuel qui se met à jour lorsque la Kinect est allumée. -->
|
|
|
36 |
|
|
|
37 |
<Image Name="Gestures" Opacity="1" Grid.Row="0" Grid.Column="0" Stretch="Fill" />
|
|
|
38 |
<Canvas Name="DebugCanvas" Background="Transparent">
|
|
|
39 |
<Image Name="DebugImage" Opacity="1" Grid.Row="0" Grid.Column="0"/>
|
|
|
40 |
</Canvas>
|
|
|
41 |
|
|
|
42 |
<Grid Grid.Row="0" Grid.Column="0">
|
|
|
43 |
<Grid.RowDefinitions>
|
|
|
44 |
<RowDefinition Height="20" />
|
|
|
45 |
<RowDefinition Height="40" />
|
|
|
46 |
<RowDefinition />
|
|
|
47 |
</Grid.RowDefinitions>
|
|
|
48 |
<Grid Grid.Row="0" Background="LightGray">
|
|
|
49 |
<!-- Menu de la fenêtre de debug. -->
|
|
49
|
50 |
<Menu Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left" Height="20" Background="LightGray" Foreground="White">
|
|
|
51 |
<!-- Readme et doc. -->
|
|
|
52 |
<MenuItem Name="FileMenu" Header="" Background="Black">
|
|
|
53 |
<MenuItem Name="ReadmeMiddlewareMenu" Header="" Background="White" Foreground="Black" Click="MiddlewareReadmeMenu_Click" />
|
|
|
54 |
<MenuItem Name="ReadmeFrontProcessingMenu" Header="" Background="White" Foreground="Black" Click="FrontProcessingReadmeMenu_Click" />
|
|
|
55 |
<MenuItem Name="DocumentationFrontProcessingMenu" Header="" Background="White" Foreground="Black" Click="FrontProcessingDocumentationMenu_Click" />
|
|
|
56 |
<MenuItem Name="ReadmeFrontJSMenu" Header="" Background="White" Foreground="Black" Click="FrontJSReadmeMenu_Click" />
|
|
|
57 |
<MenuItem Name="DocumentationFrontJSMenu" Header="" Background="White" Foreground="Black" Click="FrontJSDocumentationMenu_Click" />
|
|
|
58 |
<MenuItem Name="QuitMenu" Header="" Background="White" Foreground="Black" Click="QuitMenu_Click" />
|
|
|
59 |
</MenuItem>
|
|
|
60 |
<!-- Paramètres. -->
|
|
|
61 |
<MenuItem Name="ConfigMenu" Header="" Background="Black">
|
|
|
62 |
<MenuItem Name="ParamMenu" Header="" Background="White" Foreground="Black" Click="ParamMenu_Click" />
|
|
15
|
63 |
</MenuItem>
|
|
49
|
64 |
<MenuItem Name="ExamplesMenu" Header="" Background="Black">
|
|
|
65 |
<!-- Exemples processing. -->
|
|
|
66 |
<MenuItem Name="ProcessingMenu" Header="" Background="White" Foreground="Black">
|
|
|
67 |
<MenuItem Name="ProcessingMenuFM" Header="" Background="White" Foreground="Black">
|
|
|
68 |
<MenuItem Name="ProcessingMenuFMPS" Header="" Background="White" Foreground="Black" Click="ProcessingMenuFMPS_Click" />
|
|
|
69 |
<MenuItem Name="ProcessingMenuFMExe" Header="" Background="White" Foreground="Black" Click="ProcessingMenuFMExe_Click" />
|
|
|
70 |
</MenuItem>
|
|
|
71 |
<MenuItem Name="ProcessingMenuSM" Header="" Background="White" Foreground="Black">
|
|
|
72 |
<MenuItem Name="ProcessingMenuSMPS" Header="" Background="White" Foreground="Black" Click="ProcessingMenuSMPS_Click" />
|
|
|
73 |
<MenuItem Name="ProcessingMenuSMExe" Header="" Background="White" Foreground="Black" Click="ProcessingMenuSMExe_Click" />
|
|
|
74 |
</MenuItem>
|
|
|
75 |
<MenuItem Name="ProcessingMenuTG" Header="" Background="White" Foreground="Black">
|
|
|
76 |
<MenuItem Name="ProcessingMenuTGPS" Header="" Background="White" Foreground="Black" Click="ProcessingMenuTGPS_Click" />
|
|
|
77 |
<MenuItem Name="ProcessingMenuTGExe" Header="" Background="White" Foreground="Black" Click="ProcessingMenuTGExe_Click" />
|
|
|
78 |
</MenuItem>
|
|
|
79 |
<MenuItem Name="ProcessingMenuT" Header="" Background="White" Foreground="Black">
|
|
|
80 |
<MenuItem Name="ProcessingMenuTPS" Header="" Background="White" Foreground="Black" Click="ProcessingMenuTPS_Click" />
|
|
|
81 |
<MenuItem Name="ProcessingMenuTExe" Header="" Background="White" Foreground="Black" Click="ProcessingMenuTExe_Click" />
|
|
|
82 |
</MenuItem>
|
|
|
83 |
<MenuItem Name="ProcessingMenuIE" Header="" Background="White" Foreground="Black">
|
|
|
84 |
<MenuItem Name="ProcessingMenuIEHandPress" Header="" Background="White" Foreground="Black">
|
|
|
85 |
<MenuItem Name="ProcessingMenuIEHandPressPS" Header="" Background="White" Foreground="Black" Click="ProcessingMenuIEHandPressPS_Click" />
|
|
|
86 |
<MenuItem Name="ProcessingMenuIEHandPressExe" Header="" Background="White" Foreground="Black" Click="ProcessingMenuIEHandPressExe_Click" />
|
|
|
87 |
</MenuItem>
|
|
|
88 |
<MenuItem Name="ProcessingMenuIEHandSignal" Header="" Background="White" Foreground="Black">
|
|
|
89 |
<MenuItem Name="ProcessingMenuIEHandSignalPS" Header="" Background="White" Foreground="Black" Click="ProcessingMenuIEHandSignalPS_Click" />
|
|
|
90 |
<MenuItem Name="ProcessingMenuIEHandSignalExe" Header="" Background="White" Foreground="Black" Click="ProcessingMenuIEHandSignalExe_Click" />
|
|
|
91 |
</MenuItem>
|
|
|
92 |
<MenuItem Name="ProcessingMenuIEHand1D" Header="" Background="White" Foreground="Black">
|
|
|
93 |
<MenuItem Name="ProcessingMenuIEHand1DPS" Header="" Background="White" Foreground="Black" Click="ProcessingMenuIEHand1DPS_Click" />
|
|
|
94 |
<MenuItem Name="ProcessingMenuIEHand1DExe" Header="" Background="White" Foreground="Black" Click="ProcessingMenuIEHand1DExe_Click" />
|
|
|
95 |
</MenuItem>
|
|
|
96 |
<MenuItem Name="ProcessingMenuIEHand2D" Header="" Background="White" Foreground="Black">
|
|
|
97 |
<MenuItem Name="ProcessingMenuIEHand2DPS" Header="" Background="White" Foreground="Black" Click="ProcessingMenuIEHand2DPS_Click" />
|
|
|
98 |
<MenuItem Name="ProcessingMenuIEHand2DExe" Header="" Background="White" Foreground="Black" Click="ProcessingMenuIEHand2DExe_Click" />
|
|
|
99 |
</MenuItem>
|
|
|
100 |
</MenuItem>
|
|
|
101 |
</MenuItem>
|
|
|
102 |
<!-- Exemples web. -->
|
|
|
103 |
<MenuItem Name="WebMenu" Header="" Background="White" Foreground="Black">
|
|
|
104 |
<MenuItem Name="WebMenuPointers" Header="" Background="White" Foreground="Black">
|
|
|
105 |
<MenuItem Name="WebMenuPointersPS" Header="" Background="White" Foreground="Black" Click="WebMenuPointersPS_Click" />
|
|
|
106 |
<MenuItem Name="WebMenuPointersExe" Header="" Background="White" Foreground="Black" Click="WebMenuPointersExe_Click" />
|
|
|
107 |
</MenuItem>
|
|
|
108 |
<MenuItem Name="WebMenuGestures" Header="" Background="White" Foreground="Black">
|
|
|
109 |
<MenuItem Name="WebMenuGesturesPS" Header="" Background="White" Foreground="Black" Click="WebMenuGesturesPS_Click" />
|
|
|
110 |
<MenuItem Name="WebMenuGesturesExe" Header="" Background="White" Foreground="Black" Click="WebMenuGesturesExe_Click" />
|
|
|
111 |
</MenuItem>
|
|
|
112 |
</MenuItem>
|
|
|
113 |
</MenuItem>
|
|
|
114 |
</Menu>
|
|
15
|
115 |
</Grid>
|
|
|
116 |
<Grid Grid.Row="1">
|
|
|
117 |
<Grid.ColumnDefinitions>
|
|
|
118 |
<ColumnDefinition />
|
|
|
119 |
<ColumnDefinition />
|
|
|
120 |
</Grid.ColumnDefinitions>
|
|
|
121 |
|
|
|
122 |
<!-- Cette partie permet d'afficher les mains se trouvant dans le champ de recherche. -->
|
|
|
123 |
<Label Name="LeftHand" Grid.Column="0" Background="DarkGray" FontSize="14" FontWeight="Bold" />
|
|
|
124 |
<Label Name="RightHand" Grid.Column="1" Background="DarkGray" FontSize="14" FontWeight="Bold" />
|
|
|
125 |
</Grid>
|
|
|
126 |
<!-- Cette partie permet d'afficher les erreurs survenant dans le programme. -->
|
|
|
127 |
<Label Name="ExceptionLbl" Height="30" VerticalAlignment="Bottom" Grid.Row="2" Content="" HorizontalContentAlignment="Center" />
|
|
|
128 |
</Grid>
|
|
|
129 |
|
|
|
130 |
<!-- Ce bouton permet d'allumer/éteindre la Kinect. -->
|
|
|
131 |
<Button Name="Switch" Content="OFF" Grid.Row="1" Grid.Column="0" Width="30" Click="Switch_Click" />
|
|
|
132 |
|
|
|
133 |
<!-- Ce panneau affiche la distance actuelle de l'utilisateur à la Kinect et indique une couleur pour chaque mètre. -->
|
|
|
134 |
<!-- 0-1 m : Rouge. 1-2 : Orange. 2-3 : Jaune. 3-4 : Blanc. -->
|
|
|
135 |
<StackPanel Grid.Row="0" Grid.Column="1" Name="List">
|
|
|
136 |
<Label Name="DistanceLbl" Content="Distance :" />
|
|
|
137 |
<Rectangle Name="R0" Height="35" Fill="DarkGray" />
|
|
|
138 |
<Rectangle Name="R1" Height="35" Fill="DarkGray" />
|
|
|
139 |
<Rectangle Name="R2" Height="35" Fill="DarkGray" />
|
|
|
140 |
<Rectangle Name="R3" Height="35" Fill="DarkGray" />
|
|
|
141 |
<Rectangle Name="R4" Height="35" Fill="DarkGray" />
|
|
|
142 |
<Rectangle Name="R5" Height="35" Fill="DarkGray" />
|
|
|
143 |
<Rectangle Name="R6" Height="35" Fill="DarkGray" />
|
|
|
144 |
<Rectangle Name="R7" Height="35" Fill="DarkGray" />
|
|
|
145 |
<Rectangle Name="R8" Height="35" Fill="DarkGray" />
|
|
|
146 |
<Rectangle Name="R9" Height="35" Fill="DarkGray" />
|
|
|
147 |
<Rectangle Name="R10" Height="35" Fill="DarkGray" />
|
|
|
148 |
</StackPanel>
|
|
|
149 |
</Grid>
|
|
|
150 |
</Window>
|
|
|
151 |
|