middleware/src/Debug/DebugWindow.xaml
changeset 0 6fefd4afe506
child 3 92f19af39024
equal deleted inserted replaced
-1:000000000000 0:6fefd4afe506
       
     1 <!--
       
     2 Projet : KINECT PROJECTS
       
     3 Module : MIDDLEWARE
       
     4 Sous-Module : Debug
       
     5 Classe : Debug
       
     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>
       
    31                 <RowDefinition Height="40" />
       
    32                 <RowDefinition />
       
    33             </Grid.RowDefinitions>
       
    34             <Grid Grid.Row="0">
       
    35                 <Grid.ColumnDefinitions>
       
    36                     <ColumnDefinition />
       
    37                     <ColumnDefinition />
       
    38                 </Grid.ColumnDefinitions>
       
    39 
       
    40                 <!-- Cette partie permet d'afficher les mains se trouvant dans le champ de recherche. -->
       
    41                 <Label Name="LeftHand" Grid.Column="0" Background="DarkGray" FontSize="14" FontWeight="Bold" />
       
    42                 <Label Name="RightHand" Grid.Column="1" Background="DarkGray" FontSize="14" FontWeight="Bold" />
       
    43             </Grid>
       
    44             <!-- Cette partie permet d'afficher les erreurs survenant dans le programme. -->
       
    45             <Label Name="ExceptionLbl" Height="30" VerticalAlignment="Bottom" Grid.Row="1" Content="" HorizontalContentAlignment="Center" />
       
    46         </Grid>
       
    47 
       
    48         <!-- Ce bouton permet d'allumer/éteindre la Kinect. -->
       
    49         <Button Name="Switch" Content="ON"  Grid.Row="1" Grid.Column="0" Width="30" Click="Switch_Click" />
       
    50 
       
    51         <!-- Ce panneau affiche la distance actuelle de l'utilisateur à la Kinect et indique une couleur pour chaque mètre. -->
       
    52         <!-- 0-1 m : Rouge. 1-2 : Orange. 2-3 : Jaune. 3-4 : Blanc. -->
       
    53         <StackPanel Grid.Row="0" Grid.Column="1" Name="List">
       
    54             <Label Name="DistanceLbl" Content="Distance :" />
       
    55             <Label Name="D1" Content="0 &lt; D &lt; 1" />
       
    56             <Rectangle Name="R1" Height="70" Fill="DarkGray" />
       
    57             <Label Name="D2" Content="1 &lt; D &lt; 2" />
       
    58             <Rectangle Name="R2" Height="70" Fill="DarkGray" />
       
    59             <Label Name="D3" Content="2 &lt; D &lt; 3" />
       
    60             <Rectangle Name="R3" Height="70" Fill="DarkGray" />
       
    61             <Label Name="D4" Content="3 &lt; D &lt; 4" />
       
    62             <Rectangle Name="R4" Height="70" Fill="DarkGray" />
       
    63         </StackPanel>
       
    64     </Grid>
       
    65 </Window>
       
    66