middleware/src/Debug/DebugWindow.xaml
changeset 15 4b78f179e7ce
parent 14 10d5199d9874
child 16 a9ebacd6c089
equal deleted inserted replaced
14:10d5199d9874 15:4b78f179e7ce
     1 <!--
       
     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 <!--
       
    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" Closed="Window_Closed" 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. -->
       
    50                 <Menu Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left" Height="20" Width="50" Background="LightGray" Foreground="White">
       
    51                     <MenuItem Header="Fichier" Background="Black">
       
    52                         <MenuItem Header="Paramètres" Background="White" Foreground="Black" Click="Parameters_Click" />
       
    53                         <MenuItem Header="Quitter" Background="White" Foreground="Black" Click="Quit_Click" />
       
    54                     </MenuItem>
       
    55                 </Menu>
       
    56             </Grid>
       
    57             <Grid Grid.Row="1">
       
    58                 <Grid.ColumnDefinitions>
       
    59                     <ColumnDefinition />
       
    60                     <ColumnDefinition />
       
    61                 </Grid.ColumnDefinitions>
       
    62 
       
    63                 <!-- Cette partie permet d'afficher les mains se trouvant dans le champ de recherche. -->
       
    64                 <Label Name="LeftHand" Grid.Column="0" Background="DarkGray" FontSize="14" FontWeight="Bold" />
       
    65                 <Label Name="RightHand" Grid.Column="1" Background="DarkGray" FontSize="14" FontWeight="Bold" />
       
    66             </Grid>
       
    67             <!-- Cette partie permet d'afficher les erreurs survenant dans le programme. -->
       
    68             <Label Name="ExceptionLbl" Height="30" VerticalAlignment="Bottom" Grid.Row="2" Content="" HorizontalContentAlignment="Center" />
       
    69         </Grid>
       
    70 
       
    71         <!-- Ce bouton permet d'allumer/éteindre la Kinect. -->
       
    72         <Button Name="Switch" Content="OFF"  Grid.Row="1" Grid.Column="0" Width="30" Click="Switch_Click" />
       
    73 
       
    74         <!-- Ce panneau affiche la distance actuelle de l'utilisateur à la Kinect et indique une couleur pour chaque mètre. -->
       
    75         <!-- 0-1 m : Rouge. 1-2 : Orange. 2-3 : Jaune. 3-4 : Blanc. -->
       
    76         <StackPanel Grid.Row="0" Grid.Column="1" Name="List">
       
    77             <Label Name="DistanceLbl" Content="Distance :" />
       
    78             <Rectangle Name="R0" Height="35" Fill="DarkGray" />
       
    79             <Rectangle Name="R1" Height="35" Fill="DarkGray" />
       
    80             <Rectangle Name="R2" Height="35" Fill="DarkGray" />
       
    81             <Rectangle Name="R3" Height="35" Fill="DarkGray" />
       
    82             <Rectangle Name="R4" Height="35" Fill="DarkGray" />
       
    83             <Rectangle Name="R5" Height="35" Fill="DarkGray" />
       
    84             <Rectangle Name="R6" Height="35" Fill="DarkGray" />
       
    85             <Rectangle Name="R7" Height="35" Fill="DarkGray" />
       
    86             <Rectangle Name="R8" Height="35" Fill="DarkGray" />
       
    87             <Rectangle Name="R9" Height="35" Fill="DarkGray" />
       
    88             <Rectangle Name="R10" Height="35" Fill="DarkGray" />
       
    89         </StackPanel>
       
    90     </Grid>
       
    91 </Window>
       
    92