|
0
|
1 |
<!--
|
|
8
|
2 |
/*
|
|
|
3 |
* This file is part of the TraKERS\Middleware package.
|
|
|
4 |
*
|
|
|
5 |
* (c) IRI <http://www.iri.centrepompidou.fr/>
|
|
|
6 |
*
|
|
|
7 |
* For the full copyright and license information, please view the LICENSE_MIDDLEWARE
|
|
|
8 |
* file that was distributed with this source code.
|
|
|
9 |
*/
|
|
|
10 |
-->
|
|
|
11 |
|
|
|
12 |
<!--
|
|
3
|
13 |
Projet : TraKERS
|
|
0
|
14 |
Module : MIDDLEWARE
|
|
|
15 |
Sous-Module : Debug
|
|
5
|
16 |
Classe : DebugWindow
|
|
0
|
17 |
|
|
|
18 |
Auteur : alexandre.bastien@iri.centrepompidou.fr
|
|
|
19 |
|
|
7
|
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.
|
|
0
|
22 |
-->
|
|
|
23 |
|
|
7
|
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="DebugWindow" Height="480" Width="640" Closed="Window_Closed" Loaded="Window_Loaded">
|
|
0
|
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 |
<Canvas Name="DebugCanvas" Background="Transparent">
|
|
|
37 |
<Image Name="DebugImage" Opacity="1" Grid.Row="0" Grid.Column="0"/>
|
|
|
38 |
</Canvas>
|
|
|
39 |
|
|
|
40 |
<Grid Grid.Row="0" Grid.Column="0">
|
|
|
41 |
<Grid.RowDefinitions>
|
|
5
|
42 |
<RowDefinition Height="20" />
|
|
0
|
43 |
<RowDefinition Height="40" />
|
|
|
44 |
<RowDefinition />
|
|
|
45 |
</Grid.RowDefinitions>
|
|
5
|
46 |
<Grid Grid.Row="0" Background="LightGray">
|
|
|
47 |
<!-- Menu de la fenêtre de debug. -->
|
|
|
48 |
<Menu Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left" Height="20" Width="50" Background="LightGray" Foreground="White">
|
|
|
49 |
<MenuItem Header="Fichier" Background="Black">
|
|
|
50 |
<MenuItem Header="Paramètres" Background="White" Foreground="Black" Click="Parameters_Click" />
|
|
|
51 |
<MenuItem Header="Quitter" Background="White" Foreground="Black" Click="Quit_Click" />
|
|
|
52 |
</MenuItem>
|
|
|
53 |
</Menu>
|
|
|
54 |
</Grid>
|
|
|
55 |
<Grid Grid.Row="1">
|
|
0
|
56 |
<Grid.ColumnDefinitions>
|
|
|
57 |
<ColumnDefinition />
|
|
|
58 |
<ColumnDefinition />
|
|
|
59 |
</Grid.ColumnDefinitions>
|
|
|
60 |
|
|
|
61 |
<!-- Cette partie permet d'afficher les mains se trouvant dans le champ de recherche. -->
|
|
|
62 |
<Label Name="LeftHand" Grid.Column="0" Background="DarkGray" FontSize="14" FontWeight="Bold" />
|
|
|
63 |
<Label Name="RightHand" Grid.Column="1" Background="DarkGray" FontSize="14" FontWeight="Bold" />
|
|
|
64 |
</Grid>
|
|
|
65 |
<!-- Cette partie permet d'afficher les erreurs survenant dans le programme. -->
|
|
5
|
66 |
<Label Name="ExceptionLbl" Height="30" VerticalAlignment="Bottom" Grid.Row="2" Content="" HorizontalContentAlignment="Center" />
|
|
0
|
67 |
</Grid>
|
|
|
68 |
|
|
|
69 |
<!-- Ce bouton permet d'allumer/éteindre la Kinect. -->
|
|
7
|
70 |
<Button Name="Switch" Content="OFF" Grid.Row="1" Grid.Column="0" Width="30" Click="Switch_Click" />
|
|
0
|
71 |
|
|
|
72 |
<!-- Ce panneau affiche la distance actuelle de l'utilisateur à la Kinect et indique une couleur pour chaque mètre. -->
|
|
|
73 |
<!-- 0-1 m : Rouge. 1-2 : Orange. 2-3 : Jaune. 3-4 : Blanc. -->
|
|
|
74 |
<StackPanel Grid.Row="0" Grid.Column="1" Name="List">
|
|
|
75 |
<Label Name="DistanceLbl" Content="Distance :" />
|
|
5
|
76 |
<Label Name="D1" Content="0 < D < 1" />
|
|
0
|
77 |
<Rectangle Name="R1" Height="70" Fill="DarkGray" />
|
|
|
78 |
<Label Name="D2" Content="1 < D < 2" />
|
|
|
79 |
<Rectangle Name="R2" Height="70" Fill="DarkGray" />
|
|
|
80 |
<Label Name="D3" Content="2 < D < 3" />
|
|
|
81 |
<Rectangle Name="R3" Height="70" Fill="DarkGray" />
|
|
|
82 |
<Label Name="D4" Content="3 < D < 4" />
|
|
5
|
83 |
<Rectangle Name="R4" Height="70" Fill="DarkGray" />
|
|
0
|
84 |
</StackPanel>
|
|
|
85 |
</Grid>
|
|
|
86 |
</Window>
|
|
|
87 |
|