|
0
|
1 |
<!--
|
|
3
|
2 |
Projet : TraKERS
|
|
0
|
3 |
Module : MIDDLEWARE
|
|
|
4 |
Sous-Module : Debug
|
|
5
|
5 |
Classe : DebugWindow
|
|
0
|
6 |
|
|
|
7 |
Auteur : alexandre.bastien@iri.centrepompidou.fr
|
|
|
8 |
|
|
|
9 |
Fonctionnalités : Affiche le rendu visuel du Middleware : Le squelette, la détection/position des mains,
|
|
|
10 |
les exceptions et la distance de l'utilisateur.
|
|
|
11 |
-->
|
|
|
12 |
|
|
|
13 |
<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">
|
|
|
14 |
<Grid>
|
|
|
15 |
<Grid.RowDefinitions>
|
|
|
16 |
<RowDefinition />
|
|
|
17 |
<RowDefinition Height="30" />
|
|
|
18 |
</Grid.RowDefinitions>
|
|
|
19 |
<Grid.ColumnDefinitions>
|
|
|
20 |
<ColumnDefinition />
|
|
|
21 |
<ColumnDefinition Width="85" />
|
|
|
22 |
</Grid.ColumnDefinitions>
|
|
|
23 |
|
|
|
24 |
<!-- Ceci est le rendu visuel qui se met à jour lorsque la Kinect est allumée. -->
|
|
|
25 |
<Canvas Name="DebugCanvas" Background="Transparent">
|
|
|
26 |
<Image Name="DebugImage" Opacity="1" Grid.Row="0" Grid.Column="0"/>
|
|
|
27 |
</Canvas>
|
|
|
28 |
|
|
|
29 |
<Grid Grid.Row="0" Grid.Column="0">
|
|
|
30 |
<Grid.RowDefinitions>
|
|
5
|
31 |
<RowDefinition Height="20" />
|
|
0
|
32 |
<RowDefinition Height="40" />
|
|
|
33 |
<RowDefinition />
|
|
|
34 |
</Grid.RowDefinitions>
|
|
5
|
35 |
<Grid Grid.Row="0" Background="LightGray">
|
|
|
36 |
<!-- Menu de la fenêtre de debug. -->
|
|
|
37 |
<Menu Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left" Height="20" Width="50" Background="LightGray" Foreground="White">
|
|
|
38 |
<MenuItem Header="Fichier" Background="Black">
|
|
|
39 |
<MenuItem Header="Paramètres" Background="White" Foreground="Black" Click="Parameters_Click" />
|
|
|
40 |
<MenuItem Header="Quitter" Background="White" Foreground="Black" Click="Quit_Click" />
|
|
|
41 |
</MenuItem>
|
|
|
42 |
</Menu>
|
|
|
43 |
</Grid>
|
|
|
44 |
<Grid Grid.Row="1">
|
|
0
|
45 |
<Grid.ColumnDefinitions>
|
|
|
46 |
<ColumnDefinition />
|
|
|
47 |
<ColumnDefinition />
|
|
|
48 |
</Grid.ColumnDefinitions>
|
|
|
49 |
|
|
|
50 |
<!-- Cette partie permet d'afficher les mains se trouvant dans le champ de recherche. -->
|
|
|
51 |
<Label Name="LeftHand" Grid.Column="0" Background="DarkGray" FontSize="14" FontWeight="Bold" />
|
|
|
52 |
<Label Name="RightHand" Grid.Column="1" Background="DarkGray" FontSize="14" FontWeight="Bold" />
|
|
|
53 |
</Grid>
|
|
|
54 |
<!-- Cette partie permet d'afficher les erreurs survenant dans le programme. -->
|
|
5
|
55 |
<Label Name="ExceptionLbl" Height="30" VerticalAlignment="Bottom" Grid.Row="2" Content="" HorizontalContentAlignment="Center" />
|
|
0
|
56 |
</Grid>
|
|
|
57 |
|
|
|
58 |
<!-- Ce bouton permet d'allumer/éteindre la Kinect. -->
|
|
|
59 |
<Button Name="Switch" Content="ON" Grid.Row="1" Grid.Column="0" Width="30" Click="Switch_Click" />
|
|
|
60 |
|
|
|
61 |
<!-- Ce panneau affiche la distance actuelle de l'utilisateur à la Kinect et indique une couleur pour chaque mètre. -->
|
|
|
62 |
<!-- 0-1 m : Rouge. 1-2 : Orange. 2-3 : Jaune. 3-4 : Blanc. -->
|
|
|
63 |
<StackPanel Grid.Row="0" Grid.Column="1" Name="List">
|
|
|
64 |
<Label Name="DistanceLbl" Content="Distance :" />
|
|
5
|
65 |
<Label Name="D1" Content="0 < D < 1" />
|
|
0
|
66 |
<Rectangle Name="R1" Height="70" Fill="DarkGray" />
|
|
|
67 |
<Label Name="D2" Content="1 < D < 2" />
|
|
|
68 |
<Rectangle Name="R2" Height="70" Fill="DarkGray" />
|
|
|
69 |
<Label Name="D3" Content="2 < D < 3" />
|
|
|
70 |
<Rectangle Name="R3" Height="70" Fill="DarkGray" />
|
|
|
71 |
<Label Name="D4" Content="3 < D < 4" />
|
|
5
|
72 |
<Rectangle Name="R4" Height="70" Fill="DarkGray" />
|
|
0
|
73 |
</StackPanel>
|
|
|
74 |
</Grid>
|
|
|
75 |
</Window>
|
|
|
76 |
|