19 |
19 |
20 Fonctionnalités : Affiche le rendu visuel du Middleware : Le squelette, afficher la détection des mains, |
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. |
21 des gestures et la distance de l'utilisateur. |
22 --> |
22 --> |
23 |
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"> |
24 <Window Name="MiddlewareDebugWindow" 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" ResizeMode="NoResize"> |
25 <Grid> |
25 <Grid> |
26 <Grid.RowDefinitions> |
26 <Grid.RowDefinitions> |
27 <RowDefinition /> |
27 <RowDefinition /> |
28 <RowDefinition Height="30" /> |
28 <RowDefinition Height="30" /> |
29 </Grid.RowDefinitions> |
29 </Grid.RowDefinitions> |
36 |
36 |
37 <Image Name="Gestures" Opacity="1" Grid.Row="0" Grid.Column="0" Stretch="Fill" /> |
37 <Image Name="Gestures" Opacity="1" Grid.Row="0" Grid.Column="0" Stretch="Fill" /> |
38 <Canvas Name="DebugCanvas" Background="Transparent"> |
38 <Canvas Name="DebugCanvas" Background="Transparent"> |
39 <Image Name="DebugImage" Opacity="1" Grid.Row="0" Grid.Column="0"/> |
39 <Image Name="DebugImage" Opacity="1" Grid.Row="0" Grid.Column="0"/> |
40 </Canvas> |
40 </Canvas> |
41 |
41 |
42 <Grid Grid.Row="0" Grid.Column="0"> |
42 <Grid Grid.Row="0" Grid.Column="0"> |
43 <Grid.RowDefinitions> |
43 <Grid.RowDefinitions> |
44 <RowDefinition Height="20" /> |
44 <RowDefinition Height="20" /> |
45 <RowDefinition Height="40" /> |
45 <RowDefinition Height="60" /> |
46 <RowDefinition /> |
46 <RowDefinition /> |
47 </Grid.RowDefinitions> |
47 </Grid.RowDefinitions> |
48 <Grid Grid.Row="0" Background="LightGray"> |
48 <Grid Grid.Row="0" Background="LightGray"> |
49 <!-- Menu de la fenêtre de debug. --> |
49 <!-- Menu de la fenêtre de debug. --> |
50 <Menu Name="menu" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left" Height="20" Background="LightGray" Foreground="White"> |
50 <Menu Name="menu" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left" Height="20" Background="LightGray" Foreground="White"> |
133 <ColumnDefinition /> |
133 <ColumnDefinition /> |
134 <ColumnDefinition /> |
134 <ColumnDefinition /> |
135 </Grid.ColumnDefinitions> |
135 </Grid.ColumnDefinitions> |
136 |
136 |
137 <!-- Cette partie permet d'afficher les mains se trouvant dans le champ de recherche. --> |
137 <!-- Cette partie permet d'afficher les mains se trouvant dans le champ de recherche. --> |
138 <Label Name="LeftHand" Grid.Column="0" Background="DarkGray" FontSize="14" FontWeight="Bold" /> |
138 <Image Name="LeftHand" Grid.Column="0" /> |
139 <Label Name="RightHand" Grid.Column="1" Background="DarkGray" FontSize="14" FontWeight="Bold" /> |
139 <Image Name="RightHand" Grid.Column="1" /> |
140 </Grid> |
140 </Grid> |
141 <!-- Cette partie permet d'afficher les erreurs survenant dans le programme. --> |
141 <!-- Cette partie permet d'afficher les erreurs survenant dans le programme. --> |
142 <Label Name="ExceptionLbl" Height="30" VerticalAlignment="Bottom" Grid.Row="2" Content="" HorizontalContentAlignment="Center" /> |
142 <Label Name="ExceptionLbl" Height="30" VerticalAlignment="Bottom" Grid.Row="2" Content="" HorizontalContentAlignment="Center" /> |
143 </Grid> |
143 </Grid> |
144 |
144 |
145 <!-- Ce bouton permet d'allumer/éteindre la Kinect. --> |
145 <!-- Ce bouton permet d'allumer/éteindre la Kinect. --> |
146 <Button Name="Switch" Content="OFF" Grid.Row="1" Grid.Column="0" Width="30" Click="Switch_Click" /> |
146 <Button Name="Switch" Content="OFF" Grid.Row="1" Grid.Column="0" Width="30" Click="Switch_Click" /> |
147 |
147 |
148 <!-- Ce panneau affiche la distance actuelle de l'utilisateur à la Kinect et indique une couleur pour chaque mètre. --> |
148 <!-- Ce panneau affiche la distance actuelle de l'utilisateur à la Kinect et indique une couleur pour chaque mètre. --> |
149 <!-- 0-1 m : Rouge. 1-2 : Orange. 2-3 : Jaune. 3-4 : Blanc. --> |
149 <!-- 0-1 m : Rouge. 1-2 : Orange. 2-3 : Jaune. 3-4 : Blanc. --> |
150 <StackPanel Grid.Row="0" Grid.Column="1" Name="List"> |
150 <StackPanel Grid.Row="0" Grid.Column="1" Name="List" Panel.ZIndex="0"> |
151 <Label Name="DistanceLbl" Content="Distance :" /> |
151 <Image Height="35" Name="KinectImage" Width="80"></Image> |
152 <Rectangle Name="R0" Height="35" Fill="DarkGray" /> |
152 <Rectangle Name="R0" Height="35" Fill="Green" /> |
153 <Rectangle Name="R1" Height="35" Fill="DarkGray" /> |
153 <Rectangle Name="R1" Height="35" Fill="Green" /> |
154 <Rectangle Name="R2" Height="35" Fill="DarkGray" /> |
154 <Rectangle Name="R2" Height="35" Fill="Green" /> |
155 <Rectangle Name="R3" Height="35" Fill="DarkGray" /> |
155 <Rectangle Name="R3" Height="35" Fill="Yellow" /> |
156 <Rectangle Name="R4" Height="35" Fill="DarkGray" /> |
156 <Rectangle Name="R4" Height="35" Fill="Yellow" /> |
157 <Rectangle Name="R5" Height="35" Fill="DarkGray" /> |
157 <Rectangle Name="R5" Height="35" Fill="Yellow" /> |
158 <Rectangle Name="R6" Height="35" Fill="DarkGray" /> |
158 <Rectangle Name="R6" Height="35" Fill="Orange" /> |
159 <Rectangle Name="R7" Height="35" Fill="DarkGray" /> |
159 <Rectangle Name="R7" Height="35" Fill="Orange" /> |
160 <Rectangle Name="R8" Height="35" Fill="DarkGray" /> |
160 <Rectangle Name="R8" Height="35" Fill="Orange" /> |
161 <Rectangle Name="R9" Height="35" Fill="DarkGray" /> |
161 <Rectangle Name="R9" Height="35" Fill="Red" /> |
162 <Rectangle Name="R10" Height="35" Fill="DarkGray" /> |
162 <Rectangle Name="R10" Height="35" Fill="Red" /> |
163 </StackPanel> |
163 </StackPanel> |
|
164 |
|
165 <!-- Images pour représenter la distance à la Kinect. --> |
|
166 <Canvas> |
|
167 <Image Height="60" Name="UserImage" Width="80" Margin="552,350,0,0" Panel.ZIndex="1"></Image> |
|
168 </Canvas> |
164 </Grid> |
169 </Grid> |
165 </Window> |
170 </Window> |
166 |
171 |