Showing
74 changed files
with
2278 additions
and
0 deletions
.gitignore
0 → 100644
BodyBasics-WPF/App.config
0 → 100644
BodyBasics-WPF/App.xaml
0 → 100644
1 | +<Application x:Class="Microsoft.Samples.Kinect.BodyBasics.App" | ||
2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
4 | + StartupUri="MainWindow.xaml"> | ||
5 | + <Application.Resources> | ||
6 | + </Application.Resources> | ||
7 | +</Application> |
BodyBasics-WPF/App.xaml.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | ||
2 | +// <copyright file="App.xaml.cs" company="Microsoft"> | ||
3 | +// Copyright (c) Microsoft Corporation. All rights reserved. | ||
4 | +// </copyright> | ||
5 | +//------------------------------------------------------------------------------ | ||
6 | + | ||
7 | +namespace Microsoft.Samples.Kinect.BodyBasics | ||
8 | +{ | ||
9 | + using System; | ||
10 | + using System.Windows; | ||
11 | + | ||
12 | + /// <summary> | ||
13 | + /// Interaction logic for App | ||
14 | + /// </summary> | ||
15 | + public partial class App : Application | ||
16 | + { | ||
17 | + } | ||
18 | +} |
BodyBasics-WPF/BodyBasics-WPF.csproj
0 → 100644
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
3 | + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
4 | + <PropertyGroup> | ||
5 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
6 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
7 | + <ProjectGuid>{269A7B21-FBFE-4E7A-8BBE-C8DE2EC0D833}</ProjectGuid> | ||
8 | + <OutputType>WinExe</OutputType> | ||
9 | + <AppDesignerFolder>Properties</AppDesignerFolder> | ||
10 | + <RootNamespace>Microsoft.Samples.Kinect.BodyBasics</RootNamespace> | ||
11 | + <AssemblyName>BodyBasics-WPF</AssemblyName> | ||
12 | + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
13 | + <FileAlignment>512</FileAlignment> | ||
14 | + <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
15 | + <WarningLevel>4</WarningLevel> | ||
16 | + <XefDelaySign>true</XefDelaySign> | ||
17 | + </PropertyGroup> | ||
18 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"> | ||
19 | + <DebugSymbols>true</DebugSymbols> | ||
20 | + <DefineConstants>DEBUG;TRACE</DefineConstants> | ||
21 | + <DebugType>full</DebugType> | ||
22 | + <OutputPath>$(SolutionDir)bin\$(Platform)\$(Configuration)\</OutputPath> | ||
23 | + <PlatformTarget>AnyCPU</PlatformTarget> | ||
24 | + <ErrorReport>prompt</ErrorReport> | ||
25 | + <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | ||
26 | + <Prefer32Bit>true</Prefer32Bit> | ||
27 | + </PropertyGroup> | ||
28 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"> | ||
29 | + <DefineConstants>TRACE</DefineConstants> | ||
30 | + <Optimize>true</Optimize> | ||
31 | + <DebugType>pdbonly</DebugType> | ||
32 | + <OutputPath>$(SolutionDir)bin\$(Platform)\$(Configuration)\</OutputPath> | ||
33 | + <PlatformTarget>AnyCPU</PlatformTarget> | ||
34 | + <ErrorReport>prompt</ErrorReport> | ||
35 | + <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> | ||
36 | + <Prefer32Bit>true</Prefer32Bit> | ||
37 | + </PropertyGroup> | ||
38 | + <PropertyGroup> | ||
39 | + <StartupObject> | ||
40 | + </StartupObject> | ||
41 | + </PropertyGroup> | ||
42 | + <PropertyGroup> | ||
43 | + <ApplicationIcon>Images\Kinect.ico</ApplicationIcon> | ||
44 | + </PropertyGroup> | ||
45 | + <PropertyGroup> | ||
46 | + <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> | ||
47 | + </PropertyGroup> | ||
48 | + <PropertyGroup> | ||
49 | + <SignAssembly>false</SignAssembly> | ||
50 | + </PropertyGroup> | ||
51 | + <ItemGroup> | ||
52 | + <Reference Include="IronPython, Version=2.7.8.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL" /> | ||
53 | + <Reference Include="IronPython.Modules, Version=2.7.8.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL" /> | ||
54 | + <Reference Include="Microsoft.Dynamic, Version=1.2.0.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL" /> | ||
55 | + <Reference Include="Microsoft.Kinect"> | ||
56 | + <HintPath>$(KINECTSDK20_DIR)Assemblies\Microsoft.Kinect.dll</HintPath> | ||
57 | + </Reference> | ||
58 | + <Reference Include="Microsoft.Scripting, Version=1.2.0.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL" /> | ||
59 | + <Reference Include="System" /> | ||
60 | + <Reference Include="System.Data" /> | ||
61 | + <Reference Include="System.Xml" /> | ||
62 | + <Reference Include="Microsoft.CSharp" /> | ||
63 | + <Reference Include="System.Core" /> | ||
64 | + <Reference Include="System.Xml.Linq" /> | ||
65 | + <Reference Include="System.Data.DataSetExtensions" /> | ||
66 | + <Reference Include="System.Xaml"> | ||
67 | + <RequiredTargetFramework>4.0</RequiredTargetFramework> | ||
68 | + </Reference> | ||
69 | + <Reference Include="WindowsBase" /> | ||
70 | + <Reference Include="PresentationCore" /> | ||
71 | + <Reference Include="PresentationFramework" /> | ||
72 | + </ItemGroup> | ||
73 | + <ItemGroup> | ||
74 | + <ApplicationDefinition Include="App.xaml"> | ||
75 | + <Generator>MSBuild:Compile</Generator> | ||
76 | + <SubType>Designer</SubType> | ||
77 | + </ApplicationDefinition> | ||
78 | + <Page Include="MainWindow.xaml"> | ||
79 | + <Generator>MSBuild:Compile</Generator> | ||
80 | + <SubType>Designer</SubType> | ||
81 | + </Page> | ||
82 | + <Compile Include="App.xaml.cs"> | ||
83 | + <DependentUpon>App.xaml</DependentUpon> | ||
84 | + <SubType>Code</SubType> | ||
85 | + </Compile> | ||
86 | + <Compile Include="MainWindow.xaml.cs"> | ||
87 | + <DependentUpon>MainWindow.xaml</DependentUpon> | ||
88 | + <SubType>Code</SubType> | ||
89 | + </Compile> | ||
90 | + </ItemGroup> | ||
91 | + <ItemGroup> | ||
92 | + <Compile Include="Properties\AssemblyInfo.cs"> | ||
93 | + <SubType>Code</SubType> | ||
94 | + </Compile> | ||
95 | + <Compile Include="Properties\Resources.Designer.cs"> | ||
96 | + <AutoGen>True</AutoGen> | ||
97 | + <DesignTime>True</DesignTime> | ||
98 | + <DependentUpon>Resources.resx</DependentUpon> | ||
99 | + </Compile> | ||
100 | + <Compile Include="Properties\Settings.Designer.cs"> | ||
101 | + <AutoGen>True</AutoGen> | ||
102 | + <DependentUpon>Settings.settings</DependentUpon> | ||
103 | + <DesignTimeSharedInput>True</DesignTimeSharedInput> | ||
104 | + </Compile> | ||
105 | + <EmbeddedResource Include="Properties\Resources.resx"> | ||
106 | + <Generator>ResXFileCodeGenerator</Generator> | ||
107 | + <LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
108 | + <SubType>Designer</SubType> | ||
109 | + </EmbeddedResource> | ||
110 | + <None Include="Properties\Settings.settings"> | ||
111 | + <Generator>SettingsSingleFileGenerator</Generator> | ||
112 | + <LastGenOutput>Settings.Designer.cs</LastGenOutput> | ||
113 | + </None> | ||
114 | + <AppDesigner Include="Properties\" /> | ||
115 | + </ItemGroup> | ||
116 | + <ItemGroup> | ||
117 | + <None Include="App.config" /> | ||
118 | + </ItemGroup> | ||
119 | + <ItemGroup> | ||
120 | + <Resource Include="Images\Kinect.ico" /> | ||
121 | + <Resource Include="Images\Logo.png" /> | ||
122 | + <Resource Include="Images\Status.png" /> | ||
123 | + </ItemGroup> | ||
124 | + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
125 | + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
126 | + Other similar extension points exist, see Microsoft.Common.targets. | ||
127 | + <Target Name="BeforeBuild"> | ||
128 | + </Target> | ||
129 | + <Target Name="AfterBuild"> | ||
130 | + </Target> | ||
131 | + --> | ||
132 | +</Project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
BodyBasics-WPF/BodyBasics-WPF.sln
0 → 100644
1 | + | ||
2 | +Microsoft Visual Studio Solution File, Format Version 12.00 | ||
3 | +# Visual Studio 2012 | ||
4 | +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BodyBasics-WPF", "BodyBasics-WPF.csproj", "{269A7B21-FBFE-4E7A-8BBE-C8DE2EC0D833}" | ||
5 | +EndProject | ||
6 | +Global | ||
7 | + GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
8 | + Debug|Any CPU = Debug|Any CPU | ||
9 | + Release|Any CPU = Release|Any CPU | ||
10 | + EndGlobalSection | ||
11 | + GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
12 | + {269A7B21-FBFE-4E7A-8BBE-C8DE2EC0D833}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
13 | + {269A7B21-FBFE-4E7A-8BBE-C8DE2EC0D833}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
14 | + {269A7B21-FBFE-4E7A-8BBE-C8DE2EC0D833}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
15 | + {269A7B21-FBFE-4E7A-8BBE-C8DE2EC0D833}.Release|Any CPU.Build.0 = Release|Any CPU | ||
16 | + EndGlobalSection | ||
17 | + GlobalSection(SolutionProperties) = preSolution | ||
18 | + HideSolutionNode = FALSE | ||
19 | + EndGlobalSection | ||
20 | +EndGlobal |
BodyBasics-WPF/Images/Kinect.ico
0 → 100644
No preview for this file type
BodyBasics-WPF/Images/Logo.png
0 → 100644
11 KB
BodyBasics-WPF/Images/Status.png
0 → 100644
1.22 KB
BodyBasics-WPF/MainWindow.xaml
0 → 100644
1 | +<Window x:Class="Microsoft.Samples.Kinect.BodyBasics.MainWindow" | ||
2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
4 | + Title="Capstone" | ||
5 | + Height="720" Width="1280" | ||
6 | + Loaded="MainWindow_Loaded" | ||
7 | + Closing="MainWindow_Closing"> | ||
8 | + <Window.Resources> | ||
9 | + <SolidColorBrush x:Key="MediumGreyBrush" Color="#ff6e6e6e" /> | ||
10 | + <SolidColorBrush x:Key="KinectPurpleBrush" Color="#ff52318f" /> | ||
11 | + <SolidColorBrush x:Key="KinectBlueBrush" Color="#ff00BCF2" /> | ||
12 | + </Window.Resources> | ||
13 | + <Grid Margin="10 0 10 0"> | ||
14 | + <Grid.RowDefinitions> | ||
15 | + <RowDefinition Height="Auto" /> | ||
16 | + <RowDefinition Height="*" /> | ||
17 | + <RowDefinition Height="Auto" /> | ||
18 | + </Grid.RowDefinitions> | ||
19 | + | ||
20 | + <Label Name="state" Grid.Row="0" Margin="0 0 -1 0" HorizontalAlignment="Left" VerticalAlignment="Bottom" Foreground="{StaticResource MediumGreyBrush}" FontFamily="Segoe UI" FontSize="18">App start!</Label> | ||
21 | + <Label Name="timer" Grid.Row="0" Margin="0 0 -1 0" HorizontalAlignment="Right" VerticalAlignment="Bottom" Foreground="{StaticResource MediumGreyBrush}" FontFamily="Segoe UI" FontSize="18">Timer</Label> | ||
22 | + | ||
23 | + <Viewbox Grid.Row="1" HorizontalAlignment="Center"> | ||
24 | + <Image Name ="camera" Source="{Binding ImageSource}" Stretch="UniformToFill" /> | ||
25 | + </Viewbox> | ||
26 | + | ||
27 | + <StatusBar Grid.Row="2" HorizontalAlignment="Stretch" Name="statusBar" VerticalAlignment="Bottom" Background="White" Foreground="{StaticResource MediumGreyBrush}"> | ||
28 | + <StatusBarItem Content="{Binding StatusText}" /> | ||
29 | + </StatusBar> | ||
30 | + </Grid> | ||
31 | +</Window> |
BodyBasics-WPF/MainWindow.xaml.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | ||
2 | +// <copyright file="MainWindow.xaml.cs" company="Microsoft"> | ||
3 | +// Copyright (c) Microsoft Corporation. All rights reserved. | ||
4 | +// </copyright> | ||
5 | +//------------------------------------------------------------------------------ | ||
6 | + | ||
7 | +namespace Microsoft.Samples.Kinect.BodyBasics | ||
8 | +{ | ||
9 | + using System; | ||
10 | + using System.Collections.Generic; | ||
11 | + using System.ComponentModel; | ||
12 | + using System.Linq; | ||
13 | + using System.Diagnostics; | ||
14 | + using System.Globalization; | ||
15 | + using System.IO; | ||
16 | + using System.Windows; | ||
17 | + using System.Windows.Media; | ||
18 | + using System.Windows.Media.Imaging; | ||
19 | + using System.Windows.Threading; | ||
20 | + using Microsoft.Kinect; | ||
21 | + using IronPython.Hosting; | ||
22 | + using Microsoft.Scripting.Hosting; | ||
23 | + | ||
24 | + /// <summary> | ||
25 | + /// Interaction logic for MainWindow | ||
26 | + /// </summary> | ||
27 | + public partial class MainWindow : Window, INotifyPropertyChanged | ||
28 | + { | ||
29 | + | ||
30 | + enum STATE | ||
31 | + { | ||
32 | + APP_START, FIRST_STATE_READY, FIRST_STATE_START, FIRST_STATE_CAL, FIRST_STATE_CANCEL, FIRST_STATE_END, | ||
33 | + SECOND_STATE_START, SECOND_STATE_CAL, SECOND_STATE_CANCEL, SECOND_STATE_END | ||
34 | + } | ||
35 | + | ||
36 | + int nowState = (int)STATE.APP_START; | ||
37 | + | ||
38 | + /// <summary> | ||
39 | + /// Radius of drawn hand circles | ||
40 | + /// </summary> | ||
41 | + private const double HandSize = 30; | ||
42 | + | ||
43 | + /// <summary> | ||
44 | + /// Thickness of drawn joint lines | ||
45 | + /// </summary> | ||
46 | + private const double JointThickness = 3; | ||
47 | + | ||
48 | + /// <summary> | ||
49 | + /// Thickness of clip edge rectangles | ||
50 | + /// </summary> | ||
51 | + private const double ClipBoundsThickness = 10; | ||
52 | + | ||
53 | + /// <summary> | ||
54 | + /// Constant for clamping Z values of camera space points from being negative | ||
55 | + /// </summary> | ||
56 | + private const float InferredZPositionClamp = 0.1f; | ||
57 | + | ||
58 | + /// <summary> | ||
59 | + /// Brush used for drawing hands that are currently tracked as closed | ||
60 | + /// </summary> | ||
61 | + private readonly Brush handClosedBrush = new SolidColorBrush(Color.FromArgb(128, 255, 0, 0)); | ||
62 | + | ||
63 | + /// <summary> | ||
64 | + /// Brush used for drawing hands that are currently tracked as opened | ||
65 | + /// </summary> | ||
66 | + private readonly Brush handOpenBrush = new SolidColorBrush(Color.FromArgb(128, 0, 255, 0)); | ||
67 | + | ||
68 | + /// <summary> | ||
69 | + /// Brush used for drawing hands that are currently tracked as in lasso (pointer) position | ||
70 | + /// </summary> | ||
71 | + private readonly Brush handLassoBrush = new SolidColorBrush(Color.FromArgb(128, 0, 0, 255)); | ||
72 | + | ||
73 | + /// <summary> | ||
74 | + /// Brush used for drawing joints that are currently tracked | ||
75 | + /// </summary> | ||
76 | + private readonly Brush trackedJointBrush = new SolidColorBrush(Color.FromArgb(255, 68, 192, 68)); | ||
77 | + | ||
78 | + /// <summary> | ||
79 | + /// Brush used for drawing joints that are currently inferred | ||
80 | + /// </summary> | ||
81 | + private readonly Brush inferredJointBrush = Brushes.Yellow; | ||
82 | + | ||
83 | + /// <summary> | ||
84 | + /// Pen used for drawing bones that are currently inferred | ||
85 | + /// </summary> | ||
86 | + private readonly Pen inferredBonePen = new Pen(Brushes.Gray, 1); | ||
87 | + | ||
88 | + /// <summary> | ||
89 | + /// Drawing group for body rendering output | ||
90 | + /// </summary> | ||
91 | + private DrawingGroup drawingGroup; | ||
92 | + | ||
93 | + /// <summary> | ||
94 | + /// Drawing image that we will display | ||
95 | + /// </summary> | ||
96 | + private DrawingImage imageSource; | ||
97 | + | ||
98 | + /// <summary> | ||
99 | + /// Active Kinect sensor | ||
100 | + /// </summary> | ||
101 | + private KinectSensor kinectSensor = null; | ||
102 | + | ||
103 | + /// <summary> | ||
104 | + /// Coordinate mapper to map one type of point to another | ||
105 | + /// </summary> | ||
106 | + private CoordinateMapper coordinateMapper = null; | ||
107 | + | ||
108 | + /// <summary> | ||
109 | + /// Reader for body frames | ||
110 | + /// </summary> | ||
111 | + private BodyFrameReader bodyFrameReader = null; | ||
112 | + | ||
113 | + /// <summary> | ||
114 | + /// Reader for multi frames | ||
115 | + /// </summary> | ||
116 | + private MultiSourceFrameReader multiSourceFrameReader = null; | ||
117 | + | ||
118 | + /// <summary> | ||
119 | + /// Array for the bodies | ||
120 | + /// </summary> | ||
121 | + private Body[] bodies = null; | ||
122 | + | ||
123 | + /// <summary> | ||
124 | + /// definition of bones | ||
125 | + /// </summary> | ||
126 | + private List<Tuple<JointType, JointType>> bones; | ||
127 | + | ||
128 | + /// <summary> | ||
129 | + /// Width of display (depth space) | ||
130 | + /// </summary> | ||
131 | + private int displayWidth; | ||
132 | + | ||
133 | + /// <summary> | ||
134 | + /// Height of display (depth space) | ||
135 | + /// </summary> | ||
136 | + private int displayHeight; | ||
137 | + | ||
138 | + /// <summary> | ||
139 | + /// List of colors for each body tracked | ||
140 | + /// </summary> | ||
141 | + private List<Pen> bodyColors; | ||
142 | + | ||
143 | + /// <summary> | ||
144 | + /// Current status text to display | ||
145 | + /// </summary> | ||
146 | + private string statusText = null; | ||
147 | + | ||
148 | + private DispatcherTimer dispatcherTimer = new DispatcherTimer(); | ||
149 | + private DispatcherTimer startTimer = new DispatcherTimer(); | ||
150 | + | ||
151 | + private int timeLeft; | ||
152 | + | ||
153 | + private int countTime; | ||
154 | + | ||
155 | + | ||
156 | + private String fdatapath; | ||
157 | + private String sdatapath; | ||
158 | + | ||
159 | + private StreamWriter Firstdata; | ||
160 | + private StreamWriter Seconddata; | ||
161 | + | ||
162 | + /// <summary> | ||
163 | + /// Initializes a new instance of the MainWindow class. | ||
164 | + /// </summary> | ||
165 | + public MainWindow() | ||
166 | + { | ||
167 | + // one sensor is currently supported | ||
168 | + this.kinectSensor = KinectSensor.GetDefault(); | ||
169 | + | ||
170 | + // get the coordinate mapper | ||
171 | + this.coordinateMapper = this.kinectSensor.CoordinateMapper; | ||
172 | + | ||
173 | + // get the depth (display) extents | ||
174 | + FrameDescription frameDescription = this.kinectSensor.DepthFrameSource.FrameDescription; | ||
175 | + | ||
176 | + // get size of joint space | ||
177 | + this.displayWidth = frameDescription.Width; | ||
178 | + this.displayHeight = frameDescription.Height; | ||
179 | + | ||
180 | + // open the reader for the body frames | ||
181 | + this.bodyFrameReader = this.kinectSensor.BodyFrameSource.OpenReader(); | ||
182 | + | ||
183 | + // open the reader for the body frames | ||
184 | + this.multiSourceFrameReader = this.kinectSensor.OpenMultiSourceFrameReader(FrameSourceTypes.Color | FrameSourceTypes.Body); | ||
185 | + | ||
186 | + // a bone defined as a line between two joints | ||
187 | + this.bones = new List<Tuple<JointType, JointType>>(); | ||
188 | + | ||
189 | + // Torso | ||
190 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.Head, JointType.Neck)); | ||
191 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.Neck, JointType.SpineShoulder)); | ||
192 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.SpineShoulder, JointType.SpineMid)); | ||
193 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.SpineMid, JointType.SpineBase)); | ||
194 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.SpineShoulder, JointType.ShoulderRight)); | ||
195 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.SpineShoulder, JointType.ShoulderLeft)); | ||
196 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.SpineBase, JointType.HipRight)); | ||
197 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.SpineBase, JointType.HipLeft)); | ||
198 | + | ||
199 | + // Right Arm | ||
200 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.ShoulderRight, JointType.ElbowRight)); | ||
201 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.ElbowRight, JointType.WristRight)); | ||
202 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.WristRight, JointType.HandRight)); | ||
203 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.HandRight, JointType.HandTipRight)); | ||
204 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.WristRight, JointType.ThumbRight)); | ||
205 | + | ||
206 | + // Left Arm | ||
207 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.ShoulderLeft, JointType.ElbowLeft)); | ||
208 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.ElbowLeft, JointType.WristLeft)); | ||
209 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.WristLeft, JointType.HandLeft)); | ||
210 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.HandLeft, JointType.HandTipLeft)); | ||
211 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.WristLeft, JointType.ThumbLeft)); | ||
212 | + | ||
213 | + // Right Leg | ||
214 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.HipRight, JointType.KneeRight)); | ||
215 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.KneeRight, JointType.AnkleRight)); | ||
216 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.AnkleRight, JointType.FootRight)); | ||
217 | + | ||
218 | + // Left Leg | ||
219 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.HipLeft, JointType.KneeLeft)); | ||
220 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.KneeLeft, JointType.AnkleLeft)); | ||
221 | + this.bones.Add(new Tuple<JointType, JointType>(JointType.AnkleLeft, JointType.FootLeft)); | ||
222 | + | ||
223 | + // populate body colors, one for each BodyIndex | ||
224 | + this.bodyColors = new List<Pen>(); | ||
225 | + | ||
226 | + this.bodyColors.Add(new Pen(Brushes.Red, 6)); | ||
227 | + this.bodyColors.Add(new Pen(Brushes.Orange, 6)); | ||
228 | + this.bodyColors.Add(new Pen(Brushes.Green, 6)); | ||
229 | + this.bodyColors.Add(new Pen(Brushes.Blue, 6)); | ||
230 | + this.bodyColors.Add(new Pen(Brushes.Indigo, 6)); | ||
231 | + this.bodyColors.Add(new Pen(Brushes.Violet, 6)); | ||
232 | + | ||
233 | + // set IsAvailableChanged event notifier | ||
234 | + this.kinectSensor.IsAvailableChanged += this.Sensor_IsAvailableChanged; | ||
235 | + | ||
236 | + // open the sensor | ||
237 | + this.kinectSensor.Open(); | ||
238 | + | ||
239 | + // set the status text | ||
240 | + this.StatusText = this.kinectSensor.IsAvailable ? Properties.Resources.RunningStatusText | ||
241 | + : Properties.Resources.NoSensorStatusText; | ||
242 | + | ||
243 | + // Create the drawing group we'll use for drawing | ||
244 | + this.drawingGroup = new DrawingGroup(); | ||
245 | + | ||
246 | + // Create an image source that we can use in our image control | ||
247 | + this.imageSource = new DrawingImage(this.drawingGroup); | ||
248 | + | ||
249 | + // use the window object as the view model in this simple example | ||
250 | + this.DataContext = this; | ||
251 | + | ||
252 | + dispatcherTimer.Interval = TimeSpan.FromSeconds(1); | ||
253 | + dispatcherTimer.Tick += new EventHandler(timer_Tick); | ||
254 | + | ||
255 | + startTimer.Interval = TimeSpan.FromSeconds(1); | ||
256 | + startTimer.Tick += new EventHandler(starter_Tick); | ||
257 | + | ||
258 | + fdatapath = "data/first" + System.DateTime.Now.ToString("yyyyMMddhhmmss") + ".csv"; | ||
259 | + Firstdata = new StreamWriter(fdatapath, false, System.Text.Encoding.UTF8); | ||
260 | + | ||
261 | + sdatapath = "data/second" + System.DateTime.Now.ToString("yyyyMMddhhmmss") + ".csv"; | ||
262 | + Seconddata = new StreamWriter(sdatapath, false, System.Text.Encoding.UTF8); | ||
263 | + | ||
264 | + // initialize the components (controls) of the window | ||
265 | + this.InitializeComponent(); | ||
266 | + } | ||
267 | + | ||
268 | + /// <summary> | ||
269 | + /// INotifyPropertyChangedPropertyChanged event to allow window controls to bind to changeable data | ||
270 | + /// </summary> | ||
271 | + public event PropertyChangedEventHandler PropertyChanged; | ||
272 | + | ||
273 | + /// <summary> | ||
274 | + /// Gets the bitmap to display | ||
275 | + /// </summary> | ||
276 | + public ImageSource ImageSource | ||
277 | + { | ||
278 | + get | ||
279 | + { | ||
280 | + return this.imageSource; | ||
281 | + } | ||
282 | + } | ||
283 | + | ||
284 | + /// <summary> | ||
285 | + /// Gets or sets the current status text to display | ||
286 | + /// </summary> | ||
287 | + public string StatusText | ||
288 | + { | ||
289 | + get | ||
290 | + { | ||
291 | + return this.statusText; | ||
292 | + } | ||
293 | + | ||
294 | + set | ||
295 | + { | ||
296 | + if (this.statusText != value) | ||
297 | + { | ||
298 | + this.statusText = value; | ||
299 | + | ||
300 | + // notify any bound elements that the text has changed | ||
301 | + if (this.PropertyChanged != null) | ||
302 | + { | ||
303 | + this.PropertyChanged(this, new PropertyChangedEventArgs("StatusText")); | ||
304 | + } | ||
305 | + } | ||
306 | + } | ||
307 | + } | ||
308 | + | ||
309 | + /// <summary> | ||
310 | + /// Execute start up tasks | ||
311 | + /// </summary> | ||
312 | + /// <param name="sender">object sending the event</param> | ||
313 | + /// <param name="e">event arguments</param> | ||
314 | + private void MainWindow_Loaded(object sender, RoutedEventArgs e) | ||
315 | + { | ||
316 | + if (this.multiSourceFrameReader != null) | ||
317 | + { | ||
318 | + this.multiSourceFrameReader.MultiSourceFrameArrived += this.Multi_Reader_FrameArrived; | ||
319 | + } | ||
320 | + } | ||
321 | + | ||
322 | + /// <summary> | ||
323 | + /// Execute shutdown tasks | ||
324 | + /// </summary> | ||
325 | + /// <param name="sender">object sending the event</param> | ||
326 | + /// <param name="e">event arguments</param> | ||
327 | + private void MainWindow_Closing(object sender, CancelEventArgs e) | ||
328 | + { | ||
329 | + if (this.bodyFrameReader != null) | ||
330 | + { | ||
331 | + // BodyFrameReader is IDisposable | ||
332 | + this.bodyFrameReader.Dispose(); | ||
333 | + this.bodyFrameReader = null; | ||
334 | + } | ||
335 | + | ||
336 | + if (this.kinectSensor != null) | ||
337 | + { | ||
338 | + this.kinectSensor.Close(); | ||
339 | + this.kinectSensor = null; | ||
340 | + } | ||
341 | + } | ||
342 | + | ||
343 | + | ||
344 | + /// <summary> | ||
345 | + /// Handles the body frame data arriving from the sensor | ||
346 | + /// </summary> | ||
347 | + /// <param name="sender">object sending the event</param> | ||
348 | + /// <param name="e">event arguments</param> | ||
349 | + private void Multi_Reader_FrameArrived(object sender, MultiSourceFrameArrivedEventArgs e) | ||
350 | + { | ||
351 | + bool dataReceived = false; | ||
352 | + var reference = e.FrameReference.AcquireFrame(); | ||
353 | + | ||
354 | + | ||
355 | + | ||
356 | + using (var bodyFrame = reference.BodyFrameReference.AcquireFrame()) | ||
357 | + { | ||
358 | + if (bodyFrame != null) | ||
359 | + { | ||
360 | + if (this.bodies == null) | ||
361 | + { | ||
362 | + this.bodies = new Body[bodyFrame.BodyCount]; | ||
363 | + } | ||
364 | + | ||
365 | + // The first time GetAndRefreshBodyData is called, Kinect will allocate each Body in the array. | ||
366 | + // As long as those body objects are not disposed and not set to null in the array, | ||
367 | + // those body objects will be re-used. | ||
368 | + bodyFrame.GetAndRefreshBodyData(this.bodies); | ||
369 | + dataReceived = true; | ||
370 | + } | ||
371 | + } | ||
372 | + | ||
373 | + if (dataReceived) | ||
374 | + { | ||
375 | + using (DrawingContext dc = this.drawingGroup.Open()) | ||
376 | + { | ||
377 | + // Draw a transparent background to set the render size | ||
378 | + //dc.DrawRectangle(Brushes.Black, null, new Rect(0.0, 0.0, this.displayWidth, this.displayHeight)); | ||
379 | + using (var colorFrame = reference.ColorFrameReference.AcquireFrame()) | ||
380 | + { | ||
381 | + if (colorFrame != null) | ||
382 | + { | ||
383 | + dc.DrawImage(ToBitmap(colorFrame), new Rect(0.0, 0.0, this.displayWidth, this.displayHeight)); | ||
384 | + } | ||
385 | + } | ||
386 | + | ||
387 | + int penIndex = 0; | ||
388 | + foreach (Body body in this.bodies) | ||
389 | + { | ||
390 | + Pen drawPen = this.bodyColors[penIndex++]; | ||
391 | + | ||
392 | + if (body.IsTracked) | ||
393 | + { | ||
394 | + this.DrawClippedEdges(body, dc); | ||
395 | + | ||
396 | + IReadOnlyDictionary<JointType, Joint> joints = body.Joints; | ||
397 | + | ||
398 | + // convert the joint points to depth (display) space | ||
399 | + Dictionary<JointType, Point> jointPoints = new Dictionary<JointType, Point>(); | ||
400 | + | ||
401 | + foreach (JointType jointType in joints.Keys) | ||
402 | + { | ||
403 | + // sometimes the depth(Z) of an inferred joint may show as negative | ||
404 | + // clamp down to 0.1f to prevent coordinatemapper from returning (-Infinity, -Infinity) | ||
405 | + CameraSpacePoint position = joints[jointType].Position; | ||
406 | + if (position.Z < 0) | ||
407 | + { | ||
408 | + position.Z = InferredZPositionClamp; | ||
409 | + } | ||
410 | + | ||
411 | + DepthSpacePoint depthSpacePoint = this.coordinateMapper.MapCameraPointToDepthSpace(position); | ||
412 | + jointPoints[jointType] = new Point(depthSpacePoint.X, depthSpacePoint.Y); | ||
413 | + } | ||
414 | + | ||
415 | + | ||
416 | + | ||
417 | + this.DrawBody(joints, jointPoints, dc, drawPen); | ||
418 | + | ||
419 | + this.DrawHand(body.HandLeftState, jointPoints[JointType.HandLeft], jointPoints[JointType.Head], dc); | ||
420 | + this.DrawHand(body.HandRightState, jointPoints[JointType.HandRight], jointPoints[JointType.Head], dc); | ||
421 | + | ||
422 | + | ||
423 | + | ||
424 | + //if(makeDataset && ((jointPoints[JointType.ElbowLeft].Y < jointPoints[JointType.Head].Y) || (jointPoints[JointType.ElbowRight].Y < jointPoints[JointType.Head].Y))) | ||
425 | + //{ | ||
426 | + // makeDataset = false; | ||
427 | + //} | ||
428 | + | ||
429 | + if (nowState == (int)STATE.FIRST_STATE_CAL) | ||
430 | + { | ||
431 | + Firstdata.WriteLine((jointPoints[JointType.Head].X) + "," + (jointPoints[JointType.Head].Y) | ||
432 | + + "," + (jointPoints[JointType.Neck].X) + "," + (jointPoints[JointType.Neck].Y) | ||
433 | + + "," + (jointPoints[JointType.SpineShoulder].X) + "," + (jointPoints[JointType.SpineShoulder].Y) | ||
434 | + + "," + (jointPoints[JointType.ShoulderRight].X) + "," + (jointPoints[JointType.ShoulderRight].Y) | ||
435 | + + "," + (jointPoints[JointType.ShoulderLeft].X) + "," + (jointPoints[JointType.ShoulderLeft].Y) | ||
436 | + + "," + (jointPoints[JointType.ElbowRight].X) + "," + (jointPoints[JointType.ElbowRight].Y) | ||
437 | + + "," + (jointPoints[JointType.ElbowLeft].X) + "," + (jointPoints[JointType.ElbowLeft].Y) | ||
438 | + + "," + (jointPoints[JointType.WristRight].X) + "," + (jointPoints[JointType.WristRight].Y) | ||
439 | + + "," + (jointPoints[JointType.WristLeft].X) + "," + (jointPoints[JointType.WristLeft].Y)); | ||
440 | + } | ||
441 | + | ||
442 | + if (nowState == (int)STATE.SECOND_STATE_CAL) | ||
443 | + { | ||
444 | + Seconddata.WriteLine((jointPoints[JointType.Head].X) + "," + (jointPoints[JointType.Head].Y) | ||
445 | + + "," + (jointPoints[JointType.Neck].X) + "," + (jointPoints[JointType.Neck].Y) | ||
446 | + + "," + (jointPoints[JointType.SpineShoulder].X) + "," + (jointPoints[JointType.SpineShoulder].Y) | ||
447 | + + "," + (jointPoints[JointType.ShoulderRight].X) + "," + (jointPoints[JointType.ShoulderRight].Y) | ||
448 | + + "," + (jointPoints[JointType.ShoulderLeft].X) + "," + (jointPoints[JointType.ShoulderLeft].Y) | ||
449 | + + "," + (jointPoints[JointType.ElbowRight].X) + "," + (jointPoints[JointType.ElbowRight].Y) | ||
450 | + + "," + (jointPoints[JointType.ElbowLeft].X) + "," + (jointPoints[JointType.ElbowLeft].Y) | ||
451 | + + "," + (jointPoints[JointType.WristRight].X) + "," + (jointPoints[JointType.WristRight].Y) | ||
452 | + + "," + (jointPoints[JointType.WristLeft].X) + "," + (jointPoints[JointType.WristLeft].Y)); | ||
453 | + } | ||
454 | + } | ||
455 | + } | ||
456 | + | ||
457 | + // prevent drawing outside of our render area | ||
458 | + this.drawingGroup.ClipGeometry = new RectangleGeometry(new Rect(0.0, 0.0, this.displayWidth, this.displayHeight)); | ||
459 | + } | ||
460 | + } | ||
461 | + } | ||
462 | + | ||
463 | + /// <summary> | ||
464 | + /// Draws a body | ||
465 | + /// </summary> | ||
466 | + /// <param name="joints">joints to draw</param> | ||
467 | + /// <param name="jointPoints">translated positions of joints to draw</param> | ||
468 | + /// <param name="drawingContext">drawing context to draw to</param> | ||
469 | + /// <param name="drawingPen">specifies color to draw a specific body</param> | ||
470 | + private void DrawBody(IReadOnlyDictionary<JointType, Joint> joints, IDictionary<JointType, Point> jointPoints, DrawingContext drawingContext, Pen drawingPen) | ||
471 | + { | ||
472 | + // Draw the bones | ||
473 | + foreach (var bone in this.bones) | ||
474 | + { | ||
475 | + this.DrawBone(joints, jointPoints, bone.Item1, bone.Item2, drawingContext, drawingPen); | ||
476 | + } | ||
477 | + | ||
478 | + // Draw the joints | ||
479 | + foreach (JointType jointType in joints.Keys) | ||
480 | + { | ||
481 | + Brush drawBrush = null; | ||
482 | + | ||
483 | + TrackingState trackingState = joints[jointType].TrackingState; | ||
484 | + | ||
485 | + if (trackingState == TrackingState.Tracked) | ||
486 | + { | ||
487 | + drawBrush = this.trackedJointBrush; | ||
488 | + } | ||
489 | + else if (trackingState == TrackingState.Inferred) | ||
490 | + { | ||
491 | + drawBrush = this.inferredJointBrush; | ||
492 | + } | ||
493 | + | ||
494 | + if (drawBrush != null) | ||
495 | + { | ||
496 | + drawingContext.DrawEllipse(drawBrush, null, jointPoints[jointType], JointThickness, JointThickness); | ||
497 | + } | ||
498 | + } | ||
499 | + } | ||
500 | + | ||
501 | + /// <summary> | ||
502 | + /// Draws one bone of a body (joint to joint) | ||
503 | + /// </summary> | ||
504 | + /// <param name="joints">joints to draw</param> | ||
505 | + /// <param name="jointPoints">translated positions of joints to draw</param> | ||
506 | + /// <param name="jointType0">first joint of bone to draw</param> | ||
507 | + /// <param name="jointType1">second joint of bone to draw</param> | ||
508 | + /// <param name="drawingContext">drawing context to draw to</param> | ||
509 | + /// /// <param name="drawingPen">specifies color to draw a specific bone</param> | ||
510 | + private void DrawBone(IReadOnlyDictionary<JointType, Joint> joints, IDictionary<JointType, Point> jointPoints, JointType jointType0, JointType jointType1, DrawingContext drawingContext, Pen drawingPen) | ||
511 | + { | ||
512 | + Joint joint0 = joints[jointType0]; | ||
513 | + Joint joint1 = joints[jointType1]; | ||
514 | + | ||
515 | + // If we can't find either of these joints, exit | ||
516 | + if (joint0.TrackingState == TrackingState.NotTracked || | ||
517 | + joint1.TrackingState == TrackingState.NotTracked) | ||
518 | + { | ||
519 | + return; | ||
520 | + } | ||
521 | + | ||
522 | + // We assume all drawn bones are inferred unless BOTH joints are tracked | ||
523 | + Pen drawPen = this.inferredBonePen; | ||
524 | + if ((joint0.TrackingState == TrackingState.Tracked) && (joint1.TrackingState == TrackingState.Tracked)) | ||
525 | + { | ||
526 | + drawPen = drawingPen; | ||
527 | + } | ||
528 | + | ||
529 | + drawingContext.DrawLine(drawPen, jointPoints[jointType0], jointPoints[jointType1]); | ||
530 | + } | ||
531 | + | ||
532 | + /// <summary> | ||
533 | + /// Draws a hand symbol if the hand is tracked: red circle = closed, green circle = opened; blue circle = lasso | ||
534 | + /// </summary> | ||
535 | + /// <param name="handState">state of the hand</param> | ||
536 | + /// <param name="handPosition">position of the hand</param> | ||
537 | + /// <param name="drawingContext">drawing context to draw to</param> | ||
538 | + private void DrawHand(HandState handState, Point handPosition, Point headPosition,DrawingContext drawingContext) | ||
539 | + { | ||
540 | + switch (handState) | ||
541 | + { | ||
542 | + case HandState.Closed: | ||
543 | + drawingContext.DrawEllipse(this.handClosedBrush, null, handPosition, HandSize, HandSize); | ||
544 | + if (nowState == (int)STATE.FIRST_STATE_END && handPosition.Y > headPosition.Y) | ||
545 | + { | ||
546 | + timeLeft = 4; | ||
547 | + timer.Content = "3초"; | ||
548 | + state.Content = "Please stretch your hands forward!"; | ||
549 | + dispatcherTimer.Start(); | ||
550 | + nowState = (int)STATE.SECOND_STATE_START; | ||
551 | + } | ||
552 | + break; | ||
553 | + | ||
554 | + case HandState.Open: | ||
555 | + if (nowState == (int)STATE.APP_START && handPosition.Y > headPosition.Y) | ||
556 | + { | ||
557 | + timeLeft = 4; | ||
558 | + timer.Content = "3초"; | ||
559 | + state.Content = "Please raise your hands!"; | ||
560 | + dispatcherTimer.Start(); | ||
561 | + nowState = (int)STATE.FIRST_STATE_READY; | ||
562 | + } | ||
563 | + drawingContext.DrawEllipse(this.handOpenBrush, null, handPosition, HandSize, HandSize); | ||
564 | + break; | ||
565 | + | ||
566 | + case HandState.Lasso: | ||
567 | + drawingContext.DrawEllipse(this.handLassoBrush, null, handPosition, HandSize, HandSize); | ||
568 | + break; | ||
569 | + } | ||
570 | + | ||
571 | + } | ||
572 | + | ||
573 | + /// <summary> | ||
574 | + /// Draws indicators to show which edges are clipping body data | ||
575 | + /// </summary> | ||
576 | + /// <param name="body">body to draw clipping information for</param> | ||
577 | + /// <param name="drawingContext">drawing context to draw to</param> | ||
578 | + private void DrawClippedEdges(Body body, DrawingContext drawingContext) | ||
579 | + { | ||
580 | + FrameEdges clippedEdges = body.ClippedEdges; | ||
581 | + | ||
582 | + if (clippedEdges.HasFlag(FrameEdges.Bottom)) | ||
583 | + { | ||
584 | + drawingContext.DrawRectangle( | ||
585 | + Brushes.Red, | ||
586 | + null, | ||
587 | + new Rect(0, this.displayHeight - ClipBoundsThickness, this.displayWidth, ClipBoundsThickness)); | ||
588 | + } | ||
589 | + | ||
590 | + if (clippedEdges.HasFlag(FrameEdges.Top)) | ||
591 | + { | ||
592 | + drawingContext.DrawRectangle( | ||
593 | + Brushes.Red, | ||
594 | + null, | ||
595 | + new Rect(0, 0, this.displayWidth, ClipBoundsThickness)); | ||
596 | + } | ||
597 | + | ||
598 | + if (clippedEdges.HasFlag(FrameEdges.Left)) | ||
599 | + { | ||
600 | + drawingContext.DrawRectangle( | ||
601 | + Brushes.Red, | ||
602 | + null, | ||
603 | + new Rect(0, 0, ClipBoundsThickness, this.displayHeight)); | ||
604 | + } | ||
605 | + | ||
606 | + if (clippedEdges.HasFlag(FrameEdges.Right)) | ||
607 | + { | ||
608 | + drawingContext.DrawRectangle( | ||
609 | + Brushes.Red, | ||
610 | + null, | ||
611 | + new Rect(this.displayWidth - ClipBoundsThickness, 0, ClipBoundsThickness, this.displayHeight)); | ||
612 | + } | ||
613 | + } | ||
614 | + | ||
615 | + /// <summary> | ||
616 | + /// Handles the event which the sensor becomes unavailable (E.g. paused, closed, unplugged). | ||
617 | + /// </summary> | ||
618 | + /// <param name="sender">object sending the event</param> | ||
619 | + /// <param name="e">event arguments</param> | ||
620 | + private void Sensor_IsAvailableChanged(object sender, IsAvailableChangedEventArgs e) | ||
621 | + { | ||
622 | + // on failure, set the status text | ||
623 | + this.StatusText = this.kinectSensor.IsAvailable ? Properties.Resources.RunningStatusText | ||
624 | + : Properties.Resources.SensorNotAvailableStatusText; | ||
625 | + } | ||
626 | + private ImageSource ToBitmap(ColorFrame frame) | ||
627 | + { | ||
628 | + int width = frame.FrameDescription.Width; | ||
629 | + int height = frame.FrameDescription.Height; | ||
630 | + PixelFormat format = PixelFormats.Bgr32; | ||
631 | + | ||
632 | + byte[] pixels = new byte[width * height * ((format.BitsPerPixel + 7) / 8)]; | ||
633 | + | ||
634 | + if (frame.RawColorImageFormat == ColorImageFormat.Bgra) | ||
635 | + { | ||
636 | + frame.CopyRawFrameDataToArray(pixels); | ||
637 | + } | ||
638 | + else | ||
639 | + { | ||
640 | + frame.CopyConvertedFrameDataToArray(pixels, ColorImageFormat.Bgra); | ||
641 | + } | ||
642 | + | ||
643 | + int stride = width * format.BitsPerPixel / 8; | ||
644 | + | ||
645 | + return BitmapSource.Create(width, height, 96, 96, format, null, pixels, stride); | ||
646 | + } | ||
647 | + | ||
648 | + private void timer_Tick(object sender, EventArgs e) | ||
649 | + { | ||
650 | + if(nowState == (int)STATE.FIRST_STATE_READY) | ||
651 | + { | ||
652 | + if (timeLeft > 1) | ||
653 | + { | ||
654 | + timeLeft--; | ||
655 | + timer.Content = timeLeft - 1 + "초"; | ||
656 | + } | ||
657 | + else if (timeLeft == 1) | ||
658 | + { | ||
659 | + timeLeft--; | ||
660 | + timer.Content = "Start!"; | ||
661 | + } | ||
662 | + else | ||
663 | + { | ||
664 | + dispatcherTimer.Stop(); | ||
665 | + timer.Content = "Start!"; | ||
666 | + nowState = (int)STATE.FIRST_STATE_CAL; | ||
667 | + countTime = 10; | ||
668 | + timer.Content = "10초"; | ||
669 | + state.Content = "Please stay..."; | ||
670 | + startTimer.Start(); | ||
671 | + | ||
672 | + } | ||
673 | + } | ||
674 | + | ||
675 | + if (nowState == (int)STATE.SECOND_STATE_START) | ||
676 | + { | ||
677 | + if (timeLeft > 1) | ||
678 | + { | ||
679 | + timeLeft--; | ||
680 | + timer.Content = timeLeft - 1 + "초"; | ||
681 | + } | ||
682 | + else if (timeLeft == 1) | ||
683 | + { | ||
684 | + timeLeft--; | ||
685 | + timer.Content = "Start!"; | ||
686 | + } | ||
687 | + else | ||
688 | + { | ||
689 | + dispatcherTimer.Stop(); | ||
690 | + timer.Content = "Start!"; | ||
691 | + nowState = (int)STATE.SECOND_STATE_CAL; | ||
692 | + countTime = 10; | ||
693 | + timer.Content = "10초"; | ||
694 | + state.Content = "Please stay..."; | ||
695 | + startTimer.Start(); | ||
696 | + } | ||
697 | + } | ||
698 | + } | ||
699 | + | ||
700 | + private void starter_Tick(object sender, EventArgs e) | ||
701 | + { | ||
702 | + if(nowState == (int)STATE.FIRST_STATE_CAL) | ||
703 | + { | ||
704 | + if (countTime > 0) | ||
705 | + { | ||
706 | + countTime--; | ||
707 | + timer.Content = countTime + "초"; | ||
708 | + } | ||
709 | + else | ||
710 | + { | ||
711 | + startTimer.Stop(); | ||
712 | + nowState = (int)STATE.FIRST_STATE_END; | ||
713 | + timer.Content = "Timer"; | ||
714 | + state.Content = "Please Grab your hands"; | ||
715 | + Firstdata.Close(); | ||
716 | + | ||
717 | + string[] lines = File.ReadAllLines(fdatapath); | ||
718 | + Interpolation(lines); | ||
719 | + } | ||
720 | + } | ||
721 | + | ||
722 | + if (nowState == (int)STATE.SECOND_STATE_CAL) | ||
723 | + { | ||
724 | + if (countTime > 0) | ||
725 | + { | ||
726 | + countTime--; | ||
727 | + timer.Content = countTime + "초"; | ||
728 | + } | ||
729 | + else | ||
730 | + { | ||
731 | + startTimer.Stop(); | ||
732 | + nowState = (int)STATE.SECOND_STATE_END; | ||
733 | + timer.Content = "Timer"; | ||
734 | + state.Content = "END"; | ||
735 | + Firstdata.Close(); | ||
736 | + | ||
737 | + } | ||
738 | + } | ||
739 | + } | ||
740 | + static void Interpolation(IEnumerable<string> strs) | ||
741 | + { | ||
742 | + IEnumerable<IEnumerable<double>> multiColQuery = | ||
743 | + from line in strs | ||
744 | + let elements = line.Split(',') | ||
745 | + let scores = elements | ||
746 | + select (from str in scores | ||
747 | + select Convert.ToDouble(str)); | ||
748 | + | ||
749 | + | ||
750 | + var results = multiColQuery.ToList(); | ||
751 | + | ||
752 | + // Find out how many columns you have in results. | ||
753 | + int columnCount = results[0].Count(); | ||
754 | + | ||
755 | + // Perform aggregate calculations Average, Max, and | ||
756 | + // Min on each column. | ||
757 | + // Perform one iteration of the loop for each column | ||
758 | + // of scores. | ||
759 | + // You can use a for loop instead of a foreach loop | ||
760 | + // because you already executed the multiColQuery | ||
761 | + // query by calling ToList. | ||
762 | + | ||
763 | + int len = results.Count(); | ||
764 | + | ||
765 | + double[,] result3 = new double[len, 18]; | ||
766 | + | ||
767 | + Console.WriteLine(results.Count()); | ||
768 | + | ||
769 | + for (int column = 0; column < columnCount; column++) | ||
770 | + { | ||
771 | + var results2 = from row in results | ||
772 | + select row.ElementAt(column); | ||
773 | + | ||
774 | + | ||
775 | + | ||
776 | + for (int r = 0; r < results2.Count(); r++) | ||
777 | + { | ||
778 | + result3[r, column] = results2.ElementAt(r); | ||
779 | + Console.WriteLine(result3[r, column]); | ||
780 | + | ||
781 | + | ||
782 | + } | ||
783 | + | ||
784 | + } | ||
785 | + | ||
786 | + | ||
787 | + | ||
788 | + int length = 401; | ||
789 | + double size = 0; | ||
790 | + double denominator = length - 1; | ||
791 | + | ||
792 | + double[,] result4 = new double[length, 18]; | ||
793 | + | ||
794 | + StreamWriter dataset = new StreamWriter("output.csv", false, System.Text.Encoding.UTF8); | ||
795 | + | ||
796 | + for (int i = 0; i < length - 1; i++) | ||
797 | + { | ||
798 | + double temp = Math.Truncate(size / denominator); | ||
799 | + int share = Convert.ToInt32(temp); | ||
800 | + double remain = size % denominator; | ||
801 | + for (int j = 0; j < 18; j++) | ||
802 | + { | ||
803 | + result4[i, j] = Math.Round(result3[share, j] * (denominator - remain) / denominator + result3[share + 1, j] * remain / denominator, 4); | ||
804 | + Console.WriteLine(result4[i, j]); | ||
805 | + } | ||
806 | + dataset.WriteLine(result4[i, 0] + "," + result4[i, 1] + "," + result4[i,2] + "," + result4[i, 3] + "," + result4[i, 4] | ||
807 | + + "," + result4[i, 5] + "," + result4[i, 6] + "," + result4[i, 7] + "," + result4[i, 8] + "," + result4[i, 9] | ||
808 | + + "," + result4[i, 10] + "," + result4[i, 11] + "," + result4[i, 12] + "," + result4[i, 13] + "," + result4[i, 14] | ||
809 | + + "," + result4[i, 15] + "," + result4[i, 16] + "," + result4[i, 17]); | ||
810 | + size += len - 1; | ||
811 | + } | ||
812 | + dataset.Close(); | ||
813 | + } | ||
814 | + } | ||
815 | +} |
BodyBasics-WPF/Properties/AssemblyInfo.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | ||
2 | +// <copyright file="AssemblyInfo.cs" company="Microsoft"> | ||
3 | +// Copyright (c) Microsoft Corporation. All rights reserved. | ||
4 | +// </copyright> | ||
5 | +//------------------------------------------------------------------------------ | ||
6 | + | ||
7 | +using System; | ||
8 | +using System.Reflection; | ||
9 | +using System.Resources; | ||
10 | +using System.Runtime.InteropServices; | ||
11 | +using System.Windows; | ||
12 | + | ||
13 | +// General Information about an assembly is controlled through the following | ||
14 | +// set of attributes. Change these attribute values to modify the information | ||
15 | +// associated with an assembly. | ||
16 | +[assembly: AssemblyTitle("BodyBasics-WPF")] | ||
17 | +[assembly: AssemblyDescription("")] | ||
18 | +[assembly: AssemblyConfiguration("")] | ||
19 | +[assembly: AssemblyTrademark("")] | ||
20 | +[assembly: AssemblyVersionAttribute("1.0.0.0")] | ||
21 | + | ||
22 | +// Setting ComVisible to false makes the types in this assembly not visible | ||
23 | +// to COM components. If you need to access a type in this assembly from | ||
24 | +// COM, set the ComVisible attribute to true on that type. | ||
25 | +[assembly: ComVisible(false)] | ||
26 | + | ||
27 | +// In order to begin building localizable applications, set | ||
28 | +// <UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file | ||
29 | +// inside a <PropertyGroup>. For example, if you are using US english | ||
30 | +// in your source files, set the <UICulture> to en-US. Then uncomment | ||
31 | +// the NeutralResourceLanguage attribute below. Update the "en-US" in | ||
32 | +// the line below to match the UICulture setting in the project file. | ||
33 | + | ||
34 | +//// [assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] | ||
35 | + | ||
36 | +[assembly: ThemeInfo( | ||
37 | + ResourceDictionaryLocation.None, // where theme specific resource dictionaries are located | ||
38 | + // (used if a resource is not found in the page, | ||
39 | + // or application resource dictionaries) | ||
40 | + ResourceDictionaryLocation.SourceAssembly)] // where the generic resource dictionary is located | ||
41 | + // (used if a resource is not found in the page, | ||
42 | + // app, or any theme specific resource dictionaries) | ||
43 | + | ||
44 | +// Version information for an assembly consists of the following four values: | ||
45 | +// | ||
46 | +// Major Version | ||
47 | +// Minor Version | ||
48 | +// Build Number | ||
49 | +// Revision | ||
50 | +// | ||
51 | +// You can specify all the values or you can default the Build and Revision Numbers | ||
52 | +// by using the '*' as shown below: | ||
53 | +// [assembly: AssemblyVersion("1.0.*")][assembly: NeutralResourcesLanguageAttribute("en-US")] | ||
54 | +[assembly: NeutralResourcesLanguage("en-US")] | ||
55 | +[assembly: CLSCompliant(true)] |
1 | +//------------------------------------------------------------------------------ | ||
2 | +// <auto-generated> | ||
3 | +// This code was generated by a tool. | ||
4 | +// Runtime Version:4.0.30319.34014 | ||
5 | +// | ||
6 | +// Changes to this file may cause incorrect behavior and will be lost if | ||
7 | +// the code is regenerated. | ||
8 | +// </auto-generated> | ||
9 | +//------------------------------------------------------------------------------ | ||
10 | + | ||
11 | +namespace Microsoft.Samples.Kinect.BodyBasics.Properties { | ||
12 | + using System; | ||
13 | + | ||
14 | + | ||
15 | + /// <summary> | ||
16 | + /// A strongly-typed resource class, for looking up localized strings, etc. | ||
17 | + /// </summary> | ||
18 | + // This class was auto-generated by the StronglyTypedResourceBuilder | ||
19 | + // class via a tool like ResGen or Visual Studio. | ||
20 | + // To add or remove a member, edit your .ResX file then rerun ResGen | ||
21 | + // with the /str option, or rebuild your VS project. | ||
22 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] | ||
23 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
24 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||
25 | + internal class Resources { | ||
26 | + | ||
27 | + private static global::System.Resources.ResourceManager resourceMan; | ||
28 | + | ||
29 | + private static global::System.Globalization.CultureInfo resourceCulture; | ||
30 | + | ||
31 | + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | ||
32 | + internal Resources() { | ||
33 | + } | ||
34 | + | ||
35 | + /// <summary> | ||
36 | + /// Returns the cached ResourceManager instance used by this class. | ||
37 | + /// </summary> | ||
38 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
39 | + internal static global::System.Resources.ResourceManager ResourceManager { | ||
40 | + get { | ||
41 | + if (object.ReferenceEquals(resourceMan, null)) { | ||
42 | + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Samples.Kinect.BodyBasics.Properties.Resources", typeof(Resources).Assembly); | ||
43 | + resourceMan = temp; | ||
44 | + } | ||
45 | + return resourceMan; | ||
46 | + } | ||
47 | + } | ||
48 | + | ||
49 | + /// <summary> | ||
50 | + /// Overrides the current thread's CurrentUICulture property for all | ||
51 | + /// resource lookups using this strongly typed resource class. | ||
52 | + /// </summary> | ||
53 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
54 | + internal static global::System.Globalization.CultureInfo Culture { | ||
55 | + get { | ||
56 | + return resourceCulture; | ||
57 | + } | ||
58 | + set { | ||
59 | + resourceCulture = value; | ||
60 | + } | ||
61 | + } | ||
62 | + | ||
63 | + /// <summary> | ||
64 | + /// Looks up a localized string similar to Failed to write screenshot to {0}. | ||
65 | + /// </summary> | ||
66 | + internal static string FailedScreenshotStatusTextFormat { | ||
67 | + get { | ||
68 | + return ResourceManager.GetString("FailedScreenshotStatusTextFormat", resourceCulture); | ||
69 | + } | ||
70 | + } | ||
71 | + | ||
72 | + /// <summary> | ||
73 | + /// Looks up a localized string similar to No ready Kinect found!. | ||
74 | + /// </summary> | ||
75 | + internal static string NoSensorStatusText { | ||
76 | + get { | ||
77 | + return ResourceManager.GetString("NoSensorStatusText", resourceCulture); | ||
78 | + } | ||
79 | + } | ||
80 | + | ||
81 | + /// <summary> | ||
82 | + /// Looks up a localized string similar to Running. | ||
83 | + /// </summary> | ||
84 | + internal static string RunningStatusText { | ||
85 | + get { | ||
86 | + return ResourceManager.GetString("RunningStatusText", resourceCulture); | ||
87 | + } | ||
88 | + } | ||
89 | + | ||
90 | + /// <summary> | ||
91 | + /// Looks up a localized string similar to Kinect not available!. | ||
92 | + /// </summary> | ||
93 | + internal static string SensorNotAvailableStatusText { | ||
94 | + get { | ||
95 | + return ResourceManager.GetString("SensorNotAvailableStatusText", resourceCulture); | ||
96 | + } | ||
97 | + } | ||
98 | + } | ||
99 | +} |
BodyBasics-WPF/Properties/Resources.resx
0 → 100644
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<root> | ||
3 | + <!-- | ||
4 | + Microsoft ResX Schema | ||
5 | + | ||
6 | + Version 2.0 | ||
7 | + | ||
8 | + The primary goals of this format is to allow a simple XML format | ||
9 | + that is mostly human readable. The generation and parsing of the | ||
10 | + various data types are done through the TypeConverter classes | ||
11 | + associated with the data types. | ||
12 | + | ||
13 | + Example: | ||
14 | + | ||
15 | + ... ado.net/XML headers & schema ... | ||
16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | ||
17 | + <resheader name="version">2.0</resheader> | ||
18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||
19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||
20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||
21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||
22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||
23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | ||
24 | + </data> | ||
25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||
26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||
27 | + <comment>This is a comment</comment> | ||
28 | + </data> | ||
29 | + | ||
30 | + There are any number of "resheader" rows that contain simple | ||
31 | + name/value pairs. | ||
32 | + | ||
33 | + Each data row contains a name, and value. The row also contains a | ||
34 | + type or mimetype. Type corresponds to a .NET class that support | ||
35 | + text/value conversion through the TypeConverter architecture. | ||
36 | + Classes that don't support this are serialized and stored with the | ||
37 | + mimetype set. | ||
38 | + | ||
39 | + The mimetype is used for serialized objects, and tells the | ||
40 | + ResXResourceReader how to depersist the object. This is currently not | ||
41 | + extensible. For a given mimetype the value must be set accordingly: | ||
42 | + | ||
43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | ||
44 | + that the ResXResourceWriter will generate, however the reader can | ||
45 | + read any of the formats listed below. | ||
46 | + | ||
47 | + mimetype: application/x-microsoft.net.object.binary.base64 | ||
48 | + value : The object must be serialized with | ||
49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||
50 | + : and then encoded with base64 encoding. | ||
51 | + | ||
52 | + mimetype: application/x-microsoft.net.object.soap.base64 | ||
53 | + value : The object must be serialized with | ||
54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||
55 | + : and then encoded with base64 encoding. | ||
56 | + | ||
57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | ||
58 | + value : The object must be serialized into a byte array | ||
59 | + : using a System.ComponentModel.TypeConverter | ||
60 | + : and then encoded with base64 encoding. | ||
61 | + --> | ||
62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||
63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||
64 | + <xsd:element name="root" msdata:IsDataSet="true"> | ||
65 | + <xsd:complexType> | ||
66 | + <xsd:choice maxOccurs="unbounded"> | ||
67 | + <xsd:element name="metadata"> | ||
68 | + <xsd:complexType> | ||
69 | + <xsd:sequence> | ||
70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||
71 | + </xsd:sequence> | ||
72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | ||
73 | + <xsd:attribute name="type" type="xsd:string" /> | ||
74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | ||
75 | + <xsd:attribute ref="xml:space" /> | ||
76 | + </xsd:complexType> | ||
77 | + </xsd:element> | ||
78 | + <xsd:element name="assembly"> | ||
79 | + <xsd:complexType> | ||
80 | + <xsd:attribute name="alias" type="xsd:string" /> | ||
81 | + <xsd:attribute name="name" type="xsd:string" /> | ||
82 | + </xsd:complexType> | ||
83 | + </xsd:element> | ||
84 | + <xsd:element name="data"> | ||
85 | + <xsd:complexType> | ||
86 | + <xsd:sequence> | ||
87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||
89 | + </xsd:sequence> | ||
90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||
91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||
92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||
93 | + <xsd:attribute ref="xml:space" /> | ||
94 | + </xsd:complexType> | ||
95 | + </xsd:element> | ||
96 | + <xsd:element name="resheader"> | ||
97 | + <xsd:complexType> | ||
98 | + <xsd:sequence> | ||
99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
100 | + </xsd:sequence> | ||
101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | ||
102 | + </xsd:complexType> | ||
103 | + </xsd:element> | ||
104 | + </xsd:choice> | ||
105 | + </xsd:complexType> | ||
106 | + </xsd:element> | ||
107 | + </xsd:schema> | ||
108 | + <resheader name="resmimetype"> | ||
109 | + <value>text/microsoft-resx</value> | ||
110 | + </resheader> | ||
111 | + <resheader name="version"> | ||
112 | + <value>2.0</value> | ||
113 | + </resheader> | ||
114 | + <resheader name="reader"> | ||
115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
116 | + </resheader> | ||
117 | + <resheader name="writer"> | ||
118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
119 | + </resheader> | ||
120 | + <data name="FailedScreenshotStatusTextFormat" xml:space="preserve"> | ||
121 | + <value>Failed to write screenshot to {0}</value> | ||
122 | + </data> | ||
123 | + <data name="NoSensorStatusText" xml:space="preserve"> | ||
124 | + <value>No ready Kinect found!</value> | ||
125 | + </data> | ||
126 | + <data name="RunningStatusText" xml:space="preserve"> | ||
127 | + <value>Running</value> | ||
128 | + </data> | ||
129 | + <data name="SensorNotAvailableStatusText" xml:space="preserve"> | ||
130 | + <value>Kinect not available!</value> | ||
131 | + </data> | ||
132 | +</root> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +//------------------------------------------------------------------------------ | ||
2 | +// <auto-generated> | ||
3 | +// This code was generated by a tool. | ||
4 | +// Runtime Version:4.0.30319.34014 | ||
5 | +// | ||
6 | +// Changes to this file may cause incorrect behavior and will be lost if | ||
7 | +// the code is regenerated. | ||
8 | +// </auto-generated> | ||
9 | +//------------------------------------------------------------------------------ | ||
10 | + | ||
11 | +namespace Microsoft.Samples.Kinect.BodyBasics.Properties { | ||
12 | + | ||
13 | + | ||
14 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||
15 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] | ||
16 | + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { | ||
17 | + | ||
18 | + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | ||
19 | + | ||
20 | + public static Settings Default { | ||
21 | + get { | ||
22 | + return defaultInstance; | ||
23 | + } | ||
24 | + } | ||
25 | + } | ||
26 | +} |
BodyBasics-WPF/Properties/Settings.settings
0 → 100644
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
BodyBasics-WPF/obj/Debug/App.g.cs
0 → 100644
1 | +#pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "029B41173BECFEABDA846D992179E0B24B39F735" | ||
2 | +//------------------------------------------------------------------------------ | ||
3 | +// <auto-generated> | ||
4 | +// 이 코드는 도구를 사용하여 생성되었습니다. | ||
5 | +// 런타임 버전:4.0.30319.42000 | ||
6 | +// | ||
7 | +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | ||
8 | +// 이러한 변경 내용이 손실됩니다. | ||
9 | +// </auto-generated> | ||
10 | +//------------------------------------------------------------------------------ | ||
11 | + | ||
12 | +using System; | ||
13 | +using System.Diagnostics; | ||
14 | +using System.Windows; | ||
15 | +using System.Windows.Automation; | ||
16 | +using System.Windows.Controls; | ||
17 | +using System.Windows.Controls.Primitives; | ||
18 | +using System.Windows.Data; | ||
19 | +using System.Windows.Documents; | ||
20 | +using System.Windows.Ink; | ||
21 | +using System.Windows.Input; | ||
22 | +using System.Windows.Markup; | ||
23 | +using System.Windows.Media; | ||
24 | +using System.Windows.Media.Animation; | ||
25 | +using System.Windows.Media.Effects; | ||
26 | +using System.Windows.Media.Imaging; | ||
27 | +using System.Windows.Media.Media3D; | ||
28 | +using System.Windows.Media.TextFormatting; | ||
29 | +using System.Windows.Navigation; | ||
30 | +using System.Windows.Shapes; | ||
31 | +using System.Windows.Shell; | ||
32 | + | ||
33 | + | ||
34 | +namespace Microsoft.Samples.Kinect.BodyBasics { | ||
35 | + | ||
36 | + | ||
37 | + /// <summary> | ||
38 | + /// App | ||
39 | + /// </summary> | ||
40 | + public partial class App : System.Windows.Application { | ||
41 | + | ||
42 | + /// <summary> | ||
43 | + /// InitializeComponent | ||
44 | + /// </summary> | ||
45 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
46 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
47 | + public void InitializeComponent() { | ||
48 | + | ||
49 | + #line 4 "..\..\App.xaml" | ||
50 | + this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); | ||
51 | + | ||
52 | + #line default | ||
53 | + #line hidden | ||
54 | + } | ||
55 | + | ||
56 | + /// <summary> | ||
57 | + /// Application Entry Point. | ||
58 | + /// </summary> | ||
59 | + [System.STAThreadAttribute()] | ||
60 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
61 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
62 | + public static void Main() { | ||
63 | + Microsoft.Samples.Kinect.BodyBasics.App app = new Microsoft.Samples.Kinect.BodyBasics.App(); | ||
64 | + app.InitializeComponent(); | ||
65 | + app.Run(); | ||
66 | + } | ||
67 | + } | ||
68 | +} | ||
69 | + |
BodyBasics-WPF/obj/Debug/App.g.i.cs
0 → 100644
1 | +#pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "029B41173BECFEABDA846D992179E0B24B39F735" | ||
2 | +//------------------------------------------------------------------------------ | ||
3 | +// <auto-generated> | ||
4 | +// 이 코드는 도구를 사용하여 생성되었습니다. | ||
5 | +// 런타임 버전:4.0.30319.42000 | ||
6 | +// | ||
7 | +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | ||
8 | +// 이러한 변경 내용이 손실됩니다. | ||
9 | +// </auto-generated> | ||
10 | +//------------------------------------------------------------------------------ | ||
11 | + | ||
12 | +using System; | ||
13 | +using System.Diagnostics; | ||
14 | +using System.Windows; | ||
15 | +using System.Windows.Automation; | ||
16 | +using System.Windows.Controls; | ||
17 | +using System.Windows.Controls.Primitives; | ||
18 | +using System.Windows.Data; | ||
19 | +using System.Windows.Documents; | ||
20 | +using System.Windows.Ink; | ||
21 | +using System.Windows.Input; | ||
22 | +using System.Windows.Markup; | ||
23 | +using System.Windows.Media; | ||
24 | +using System.Windows.Media.Animation; | ||
25 | +using System.Windows.Media.Effects; | ||
26 | +using System.Windows.Media.Imaging; | ||
27 | +using System.Windows.Media.Media3D; | ||
28 | +using System.Windows.Media.TextFormatting; | ||
29 | +using System.Windows.Navigation; | ||
30 | +using System.Windows.Shapes; | ||
31 | +using System.Windows.Shell; | ||
32 | + | ||
33 | + | ||
34 | +namespace Microsoft.Samples.Kinect.BodyBasics { | ||
35 | + | ||
36 | + | ||
37 | + /// <summary> | ||
38 | + /// App | ||
39 | + /// </summary> | ||
40 | + public partial class App : System.Windows.Application { | ||
41 | + | ||
42 | + /// <summary> | ||
43 | + /// InitializeComponent | ||
44 | + /// </summary> | ||
45 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
46 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
47 | + public void InitializeComponent() { | ||
48 | + | ||
49 | + #line 4 "..\..\App.xaml" | ||
50 | + this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); | ||
51 | + | ||
52 | + #line default | ||
53 | + #line hidden | ||
54 | + } | ||
55 | + | ||
56 | + /// <summary> | ||
57 | + /// Application Entry Point. | ||
58 | + /// </summary> | ||
59 | + [System.STAThreadAttribute()] | ||
60 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
61 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
62 | + public static void Main() { | ||
63 | + Microsoft.Samples.Kinect.BodyBasics.App app = new Microsoft.Samples.Kinect.BodyBasics.App(); | ||
64 | + app.InitializeComponent(); | ||
65 | + app.Run(); | ||
66 | + } | ||
67 | + } | ||
68 | +} | ||
69 | + |
File mode changed
1 | +6dc2c19d1074a207981ebd48b620840bd8eaccc9 |
1 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Debug\BodyBasics-WPF.exe.config | ||
2 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Debug\BodyBasics-WPF.exe | ||
3 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Debug\BodyBasics-WPF.pdb | ||
4 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Debug\Microsoft.Kinect.dll | ||
5 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Debug\Microsoft.Kinect.xml | ||
6 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\BodyBasics-WPF.csprojResolveAssemblyReference.cache | ||
7 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\MainWindow.baml | ||
8 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\MainWindow.g.cs | ||
9 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\App.g.cs | ||
10 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\BodyBasics-WPF_MarkupCompile.cache | ||
11 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\BodyBasics-WPF.g.resources | ||
12 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\Microsoft.Samples.Kinect.BodyBasics.Properties.Resources.resources | ||
13 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\BodyBasics-WPF.csproj.GenerateResource.cache | ||
14 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\BodyBasics-WPF.csproj.CoreCompileInputs.cache | ||
15 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\BodyBasics-WPF.csproj.CopyComplete | ||
16 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\BodyBasics-WPF.exe | ||
17 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\BodyBasics-WPF.pdb | ||
18 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Debug\IronPython.dll | ||
19 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Debug\IronPython.Modules.dll | ||
20 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Debug\Microsoft.Dynamic.dll | ||
21 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Debug\Microsoft.Scripting.dll |
No preview for this file type
No preview for this file type
BodyBasics-WPF/obj/Debug/BodyBasics-WPF.exe
0 → 100644
No preview for this file type
No preview for this file type
BodyBasics-WPF/obj/Debug/BodyBasics-WPF.pdb
0 → 100644
No preview for this file type
1 | +BodyBasics-WPF | ||
2 | + | ||
3 | + | ||
4 | +winexe | ||
5 | +C# | ||
6 | +.cs | ||
7 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\ | ||
8 | +Microsoft.Samples.Kinect.BodyBasics | ||
9 | +none | ||
10 | +false | ||
11 | +DEBUG;TRACE | ||
12 | +D:\Kinect\새 폴더\BodyBasics-WPF\App.xaml | ||
13 | +11151548125 | ||
14 | + | ||
15 | +5-2017746502 | ||
16 | +17-2113880164 | ||
17 | +MainWindow.xaml; | ||
18 | + | ||
19 | +False | ||
20 | + |
1 | +BodyBasics-WPF | ||
2 | + | ||
3 | + | ||
4 | +winexe | ||
5 | +C# | ||
6 | +.cs | ||
7 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Debug\ | ||
8 | +Microsoft.Samples.Kinect.BodyBasics | ||
9 | +none | ||
10 | +false | ||
11 | +DEBUG;TRACE | ||
12 | +D:\Kinect\새 폴더\BodyBasics-WPF\App.xaml | ||
13 | +11151548125 | ||
14 | + | ||
15 | +9465359947 | ||
16 | +17-2113880164 | ||
17 | +MainWindow.xaml; | ||
18 | + | ||
19 | +False | ||
20 | + |
No preview for this file type
No preview for this file type
BodyBasics-WPF/obj/Debug/MainWindow.baml
0 → 100644
No preview for this file type
BodyBasics-WPF/obj/Debug/MainWindow.g.cs
0 → 100644
1 | +#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1FCA1D6DFAFC9BC1AAF15C4F2F1C001FC667316C" | ||
2 | +//------------------------------------------------------------------------------ | ||
3 | +// <auto-generated> | ||
4 | +// 이 코드는 도구를 사용하여 생성되었습니다. | ||
5 | +// 런타임 버전:4.0.30319.42000 | ||
6 | +// | ||
7 | +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | ||
8 | +// 이러한 변경 내용이 손실됩니다. | ||
9 | +// </auto-generated> | ||
10 | +//------------------------------------------------------------------------------ | ||
11 | + | ||
12 | +using System; | ||
13 | +using System.Diagnostics; | ||
14 | +using System.Windows; | ||
15 | +using System.Windows.Automation; | ||
16 | +using System.Windows.Controls; | ||
17 | +using System.Windows.Controls.Primitives; | ||
18 | +using System.Windows.Data; | ||
19 | +using System.Windows.Documents; | ||
20 | +using System.Windows.Ink; | ||
21 | +using System.Windows.Input; | ||
22 | +using System.Windows.Markup; | ||
23 | +using System.Windows.Media; | ||
24 | +using System.Windows.Media.Animation; | ||
25 | +using System.Windows.Media.Effects; | ||
26 | +using System.Windows.Media.Imaging; | ||
27 | +using System.Windows.Media.Media3D; | ||
28 | +using System.Windows.Media.TextFormatting; | ||
29 | +using System.Windows.Navigation; | ||
30 | +using System.Windows.Shapes; | ||
31 | +using System.Windows.Shell; | ||
32 | + | ||
33 | + | ||
34 | +namespace Microsoft.Samples.Kinect.BodyBasics { | ||
35 | + | ||
36 | + | ||
37 | + /// <summary> | ||
38 | + /// MainWindow | ||
39 | + /// </summary> | ||
40 | + public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { | ||
41 | + | ||
42 | + | ||
43 | + #line 20 "..\..\MainWindow.xaml" | ||
44 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
45 | + internal System.Windows.Controls.Label state; | ||
46 | + | ||
47 | + #line default | ||
48 | + #line hidden | ||
49 | + | ||
50 | + | ||
51 | + #line 21 "..\..\MainWindow.xaml" | ||
52 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
53 | + internal System.Windows.Controls.Label timer; | ||
54 | + | ||
55 | + #line default | ||
56 | + #line hidden | ||
57 | + | ||
58 | + | ||
59 | + #line 24 "..\..\MainWindow.xaml" | ||
60 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
61 | + internal System.Windows.Controls.Image camera; | ||
62 | + | ||
63 | + #line default | ||
64 | + #line hidden | ||
65 | + | ||
66 | + | ||
67 | + #line 27 "..\..\MainWindow.xaml" | ||
68 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
69 | + internal System.Windows.Controls.Primitives.StatusBar statusBar; | ||
70 | + | ||
71 | + #line default | ||
72 | + #line hidden | ||
73 | + | ||
74 | + private bool _contentLoaded; | ||
75 | + | ||
76 | + /// <summary> | ||
77 | + /// InitializeComponent | ||
78 | + /// </summary> | ||
79 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
80 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
81 | + public void InitializeComponent() { | ||
82 | + if (_contentLoaded) { | ||
83 | + return; | ||
84 | + } | ||
85 | + _contentLoaded = true; | ||
86 | + System.Uri resourceLocater = new System.Uri("/BodyBasics-WPF;component/mainwindow.xaml", System.UriKind.Relative); | ||
87 | + | ||
88 | + #line 1 "..\..\MainWindow.xaml" | ||
89 | + System.Windows.Application.LoadComponent(this, resourceLocater); | ||
90 | + | ||
91 | + #line default | ||
92 | + #line hidden | ||
93 | + } | ||
94 | + | ||
95 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
96 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
97 | + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] | ||
98 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] | ||
99 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] | ||
100 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] | ||
101 | + void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { | ||
102 | + switch (connectionId) | ||
103 | + { | ||
104 | + case 1: | ||
105 | + | ||
106 | + #line 6 "..\..\MainWindow.xaml" | ||
107 | + ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded); | ||
108 | + | ||
109 | + #line default | ||
110 | + #line hidden | ||
111 | + | ||
112 | + #line 7 "..\..\MainWindow.xaml" | ||
113 | + ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MainWindow_Closing); | ||
114 | + | ||
115 | + #line default | ||
116 | + #line hidden | ||
117 | + return; | ||
118 | + case 2: | ||
119 | + this.state = ((System.Windows.Controls.Label)(target)); | ||
120 | + return; | ||
121 | + case 3: | ||
122 | + this.timer = ((System.Windows.Controls.Label)(target)); | ||
123 | + return; | ||
124 | + case 4: | ||
125 | + this.camera = ((System.Windows.Controls.Image)(target)); | ||
126 | + return; | ||
127 | + case 5: | ||
128 | + this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); | ||
129 | + return; | ||
130 | + } | ||
131 | + this._contentLoaded = true; | ||
132 | + } | ||
133 | + } | ||
134 | +} | ||
135 | + |
BodyBasics-WPF/obj/Debug/MainWindow.g.i.cs
0 → 100644
1 | +#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1FCA1D6DFAFC9BC1AAF15C4F2F1C001FC667316C" | ||
2 | +//------------------------------------------------------------------------------ | ||
3 | +// <auto-generated> | ||
4 | +// 이 코드는 도구를 사용하여 생성되었습니다. | ||
5 | +// 런타임 버전:4.0.30319.42000 | ||
6 | +// | ||
7 | +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | ||
8 | +// 이러한 변경 내용이 손실됩니다. | ||
9 | +// </auto-generated> | ||
10 | +//------------------------------------------------------------------------------ | ||
11 | + | ||
12 | +using System; | ||
13 | +using System.Diagnostics; | ||
14 | +using System.Windows; | ||
15 | +using System.Windows.Automation; | ||
16 | +using System.Windows.Controls; | ||
17 | +using System.Windows.Controls.Primitives; | ||
18 | +using System.Windows.Data; | ||
19 | +using System.Windows.Documents; | ||
20 | +using System.Windows.Ink; | ||
21 | +using System.Windows.Input; | ||
22 | +using System.Windows.Markup; | ||
23 | +using System.Windows.Media; | ||
24 | +using System.Windows.Media.Animation; | ||
25 | +using System.Windows.Media.Effects; | ||
26 | +using System.Windows.Media.Imaging; | ||
27 | +using System.Windows.Media.Media3D; | ||
28 | +using System.Windows.Media.TextFormatting; | ||
29 | +using System.Windows.Navigation; | ||
30 | +using System.Windows.Shapes; | ||
31 | +using System.Windows.Shell; | ||
32 | + | ||
33 | + | ||
34 | +namespace Microsoft.Samples.Kinect.BodyBasics { | ||
35 | + | ||
36 | + | ||
37 | + /// <summary> | ||
38 | + /// MainWindow | ||
39 | + /// </summary> | ||
40 | + public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { | ||
41 | + | ||
42 | + | ||
43 | + #line 20 "..\..\MainWindow.xaml" | ||
44 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
45 | + internal System.Windows.Controls.Label state; | ||
46 | + | ||
47 | + #line default | ||
48 | + #line hidden | ||
49 | + | ||
50 | + | ||
51 | + #line 21 "..\..\MainWindow.xaml" | ||
52 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
53 | + internal System.Windows.Controls.Label timer; | ||
54 | + | ||
55 | + #line default | ||
56 | + #line hidden | ||
57 | + | ||
58 | + | ||
59 | + #line 24 "..\..\MainWindow.xaml" | ||
60 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
61 | + internal System.Windows.Controls.Image camera; | ||
62 | + | ||
63 | + #line default | ||
64 | + #line hidden | ||
65 | + | ||
66 | + | ||
67 | + #line 27 "..\..\MainWindow.xaml" | ||
68 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
69 | + internal System.Windows.Controls.Primitives.StatusBar statusBar; | ||
70 | + | ||
71 | + #line default | ||
72 | + #line hidden | ||
73 | + | ||
74 | + private bool _contentLoaded; | ||
75 | + | ||
76 | + /// <summary> | ||
77 | + /// InitializeComponent | ||
78 | + /// </summary> | ||
79 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
80 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
81 | + public void InitializeComponent() { | ||
82 | + if (_contentLoaded) { | ||
83 | + return; | ||
84 | + } | ||
85 | + _contentLoaded = true; | ||
86 | + System.Uri resourceLocater = new System.Uri("/BodyBasics-WPF;component/mainwindow.xaml", System.UriKind.Relative); | ||
87 | + | ||
88 | + #line 1 "..\..\MainWindow.xaml" | ||
89 | + System.Windows.Application.LoadComponent(this, resourceLocater); | ||
90 | + | ||
91 | + #line default | ||
92 | + #line hidden | ||
93 | + } | ||
94 | + | ||
95 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
96 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
97 | + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] | ||
98 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] | ||
99 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] | ||
100 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] | ||
101 | + void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { | ||
102 | + switch (connectionId) | ||
103 | + { | ||
104 | + case 1: | ||
105 | + | ||
106 | + #line 6 "..\..\MainWindow.xaml" | ||
107 | + ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded); | ||
108 | + | ||
109 | + #line default | ||
110 | + #line hidden | ||
111 | + | ||
112 | + #line 7 "..\..\MainWindow.xaml" | ||
113 | + ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MainWindow_Closing); | ||
114 | + | ||
115 | + #line default | ||
116 | + #line hidden | ||
117 | + return; | ||
118 | + case 2: | ||
119 | + this.state = ((System.Windows.Controls.Label)(target)); | ||
120 | + return; | ||
121 | + case 3: | ||
122 | + this.timer = ((System.Windows.Controls.Label)(target)); | ||
123 | + return; | ||
124 | + case 4: | ||
125 | + this.camera = ((System.Windows.Controls.Image)(target)); | ||
126 | + return; | ||
127 | + case 5: | ||
128 | + this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); | ||
129 | + return; | ||
130 | + } | ||
131 | + this._contentLoaded = true; | ||
132 | + } | ||
133 | + } | ||
134 | +} | ||
135 | + |
BodyBasics-WPF/obj/Debug/Microsoft.Samples.Kinect.BodyBasics.Properties.Resources.resources
0 → 100644
No preview for this file type
No preview for this file type
File mode changed
File mode changed
File mode changed
BodyBasics-WPF/obj/Release/App.g.cs
0 → 100644
1 | +#pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "029B41173BECFEABDA846D992179E0B24B39F735" | ||
2 | +//------------------------------------------------------------------------------ | ||
3 | +// <auto-generated> | ||
4 | +// 이 코드는 도구를 사용하여 생성되었습니다. | ||
5 | +// 런타임 버전:4.0.30319.42000 | ||
6 | +// | ||
7 | +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | ||
8 | +// 이러한 변경 내용이 손실됩니다. | ||
9 | +// </auto-generated> | ||
10 | +//------------------------------------------------------------------------------ | ||
11 | + | ||
12 | +using System; | ||
13 | +using System.Diagnostics; | ||
14 | +using System.Windows; | ||
15 | +using System.Windows.Automation; | ||
16 | +using System.Windows.Controls; | ||
17 | +using System.Windows.Controls.Primitives; | ||
18 | +using System.Windows.Data; | ||
19 | +using System.Windows.Documents; | ||
20 | +using System.Windows.Ink; | ||
21 | +using System.Windows.Input; | ||
22 | +using System.Windows.Markup; | ||
23 | +using System.Windows.Media; | ||
24 | +using System.Windows.Media.Animation; | ||
25 | +using System.Windows.Media.Effects; | ||
26 | +using System.Windows.Media.Imaging; | ||
27 | +using System.Windows.Media.Media3D; | ||
28 | +using System.Windows.Media.TextFormatting; | ||
29 | +using System.Windows.Navigation; | ||
30 | +using System.Windows.Shapes; | ||
31 | +using System.Windows.Shell; | ||
32 | + | ||
33 | + | ||
34 | +namespace Microsoft.Samples.Kinect.BodyBasics { | ||
35 | + | ||
36 | + | ||
37 | + /// <summary> | ||
38 | + /// App | ||
39 | + /// </summary> | ||
40 | + public partial class App : System.Windows.Application { | ||
41 | + | ||
42 | + /// <summary> | ||
43 | + /// InitializeComponent | ||
44 | + /// </summary> | ||
45 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
46 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
47 | + public void InitializeComponent() { | ||
48 | + | ||
49 | + #line 4 "..\..\App.xaml" | ||
50 | + this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); | ||
51 | + | ||
52 | + #line default | ||
53 | + #line hidden | ||
54 | + } | ||
55 | + | ||
56 | + /// <summary> | ||
57 | + /// Application Entry Point. | ||
58 | + /// </summary> | ||
59 | + [System.STAThreadAttribute()] | ||
60 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
61 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
62 | + public static void Main() { | ||
63 | + Microsoft.Samples.Kinect.BodyBasics.App app = new Microsoft.Samples.Kinect.BodyBasics.App(); | ||
64 | + app.InitializeComponent(); | ||
65 | + app.Run(); | ||
66 | + } | ||
67 | + } | ||
68 | +} | ||
69 | + |
BodyBasics-WPF/obj/Release/App.g.i.cs
0 → 100644
1 | +#pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "029B41173BECFEABDA846D992179E0B24B39F735" | ||
2 | +//------------------------------------------------------------------------------ | ||
3 | +// <auto-generated> | ||
4 | +// 이 코드는 도구를 사용하여 생성되었습니다. | ||
5 | +// 런타임 버전:4.0.30319.42000 | ||
6 | +// | ||
7 | +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | ||
8 | +// 이러한 변경 내용이 손실됩니다. | ||
9 | +// </auto-generated> | ||
10 | +//------------------------------------------------------------------------------ | ||
11 | + | ||
12 | +using System; | ||
13 | +using System.Diagnostics; | ||
14 | +using System.Windows; | ||
15 | +using System.Windows.Automation; | ||
16 | +using System.Windows.Controls; | ||
17 | +using System.Windows.Controls.Primitives; | ||
18 | +using System.Windows.Data; | ||
19 | +using System.Windows.Documents; | ||
20 | +using System.Windows.Ink; | ||
21 | +using System.Windows.Input; | ||
22 | +using System.Windows.Markup; | ||
23 | +using System.Windows.Media; | ||
24 | +using System.Windows.Media.Animation; | ||
25 | +using System.Windows.Media.Effects; | ||
26 | +using System.Windows.Media.Imaging; | ||
27 | +using System.Windows.Media.Media3D; | ||
28 | +using System.Windows.Media.TextFormatting; | ||
29 | +using System.Windows.Navigation; | ||
30 | +using System.Windows.Shapes; | ||
31 | +using System.Windows.Shell; | ||
32 | + | ||
33 | + | ||
34 | +namespace Microsoft.Samples.Kinect.BodyBasics { | ||
35 | + | ||
36 | + | ||
37 | + /// <summary> | ||
38 | + /// App | ||
39 | + /// </summary> | ||
40 | + public partial class App : System.Windows.Application { | ||
41 | + | ||
42 | + /// <summary> | ||
43 | + /// InitializeComponent | ||
44 | + /// </summary> | ||
45 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
46 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
47 | + public void InitializeComponent() { | ||
48 | + | ||
49 | + #line 4 "..\..\App.xaml" | ||
50 | + this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); | ||
51 | + | ||
52 | + #line default | ||
53 | + #line hidden | ||
54 | + } | ||
55 | + | ||
56 | + /// <summary> | ||
57 | + /// Application Entry Point. | ||
58 | + /// </summary> | ||
59 | + [System.STAThreadAttribute()] | ||
60 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
61 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
62 | + public static void Main() { | ||
63 | + Microsoft.Samples.Kinect.BodyBasics.App app = new Microsoft.Samples.Kinect.BodyBasics.App(); | ||
64 | + app.InitializeComponent(); | ||
65 | + app.Run(); | ||
66 | + } | ||
67 | + } | ||
68 | +} | ||
69 | + |
File mode changed
1 | +32aafe5d3c7141e023f3f9ba27d3d0e562865577 |
1 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Release\BodyBasics-WPF.exe.config | ||
2 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Release\BodyBasics-WPF.exe | ||
3 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Release\BodyBasics-WPF.pdb | ||
4 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Release\Microsoft.Kinect.dll | ||
5 | +D:\Kinect\새 폴더\BodyBasics-WPF\bin\AnyCPU\Release\Microsoft.Kinect.xml | ||
6 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\MainWindow.baml | ||
7 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\MainWindow.g.cs | ||
8 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\App.g.cs | ||
9 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\BodyBasics-WPF_MarkupCompile.cache | ||
10 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\BodyBasics-WPF.g.resources | ||
11 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\Microsoft.Samples.Kinect.BodyBasics.Properties.Resources.resources | ||
12 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\BodyBasics-WPF.csproj.GenerateResource.cache | ||
13 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\BodyBasics-WPF.csproj.CoreCompileInputs.cache | ||
14 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\BodyBasics-WPF.csproj.CopyComplete | ||
15 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\BodyBasics-WPF.exe | ||
16 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\BodyBasics-WPF.pdb | ||
17 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\BodyBasics-WPF.csprojResolveAssemblyReference.cache |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 | +BodyBasics-WPF | ||
2 | + | ||
3 | + | ||
4 | +winexe | ||
5 | +C# | ||
6 | +.cs | ||
7 | +D:\Kinect\새 폴더\BodyBasics-WPF\obj\Release\ | ||
8 | +Microsoft.Samples.Kinect.BodyBasics | ||
9 | +none | ||
10 | +false | ||
11 | +TRACE | ||
12 | +D:\Kinect\새 폴더\BodyBasics-WPF\App.xaml | ||
13 | +11151548125 | ||
14 | + | ||
15 | +5-2017746502 | ||
16 | +13-830665276 | ||
17 | +MainWindow.xaml; | ||
18 | + | ||
19 | +False | ||
20 | + |
No preview for this file type
BodyBasics-WPF/obj/Release/MainWindow.baml
0 → 100644
No preview for this file type
BodyBasics-WPF/obj/Release/MainWindow.g.cs
0 → 100644
1 | +#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "B9F3844DAED0D618F9AA0417F2C8C3E1DFB32914" | ||
2 | +//------------------------------------------------------------------------------ | ||
3 | +// <auto-generated> | ||
4 | +// 이 코드는 도구를 사용하여 생성되었습니다. | ||
5 | +// 런타임 버전:4.0.30319.42000 | ||
6 | +// | ||
7 | +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | ||
8 | +// 이러한 변경 내용이 손실됩니다. | ||
9 | +// </auto-generated> | ||
10 | +//------------------------------------------------------------------------------ | ||
11 | + | ||
12 | +using System; | ||
13 | +using System.Diagnostics; | ||
14 | +using System.Windows; | ||
15 | +using System.Windows.Automation; | ||
16 | +using System.Windows.Controls; | ||
17 | +using System.Windows.Controls.Primitives; | ||
18 | +using System.Windows.Data; | ||
19 | +using System.Windows.Documents; | ||
20 | +using System.Windows.Ink; | ||
21 | +using System.Windows.Input; | ||
22 | +using System.Windows.Markup; | ||
23 | +using System.Windows.Media; | ||
24 | +using System.Windows.Media.Animation; | ||
25 | +using System.Windows.Media.Effects; | ||
26 | +using System.Windows.Media.Imaging; | ||
27 | +using System.Windows.Media.Media3D; | ||
28 | +using System.Windows.Media.TextFormatting; | ||
29 | +using System.Windows.Navigation; | ||
30 | +using System.Windows.Shapes; | ||
31 | +using System.Windows.Shell; | ||
32 | + | ||
33 | + | ||
34 | +namespace Microsoft.Samples.Kinect.BodyBasics { | ||
35 | + | ||
36 | + | ||
37 | + /// <summary> | ||
38 | + /// MainWindow | ||
39 | + /// </summary> | ||
40 | + public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { | ||
41 | + | ||
42 | + | ||
43 | + #line 20 "..\..\MainWindow.xaml" | ||
44 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
45 | + internal System.Windows.Controls.Label state; | ||
46 | + | ||
47 | + #line default | ||
48 | + #line hidden | ||
49 | + | ||
50 | + | ||
51 | + #line 21 "..\..\MainWindow.xaml" | ||
52 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
53 | + internal System.Windows.Controls.Label timer; | ||
54 | + | ||
55 | + #line default | ||
56 | + #line hidden | ||
57 | + | ||
58 | + | ||
59 | + #line 24 "..\..\MainWindow.xaml" | ||
60 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
61 | + internal System.Windows.Controls.Image camera; | ||
62 | + | ||
63 | + #line default | ||
64 | + #line hidden | ||
65 | + | ||
66 | + | ||
67 | + #line 27 "..\..\MainWindow.xaml" | ||
68 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
69 | + internal System.Windows.Controls.Primitives.StatusBar statusBar; | ||
70 | + | ||
71 | + #line default | ||
72 | + #line hidden | ||
73 | + | ||
74 | + private bool _contentLoaded; | ||
75 | + | ||
76 | + /// <summary> | ||
77 | + /// InitializeComponent | ||
78 | + /// </summary> | ||
79 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
80 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
81 | + public void InitializeComponent() { | ||
82 | + if (_contentLoaded) { | ||
83 | + return; | ||
84 | + } | ||
85 | + _contentLoaded = true; | ||
86 | + System.Uri resourceLocater = new System.Uri("/BodyBasics-WPF;component/mainwindow.xaml", System.UriKind.Relative); | ||
87 | + | ||
88 | + #line 1 "..\..\MainWindow.xaml" | ||
89 | + System.Windows.Application.LoadComponent(this, resourceLocater); | ||
90 | + | ||
91 | + #line default | ||
92 | + #line hidden | ||
93 | + } | ||
94 | + | ||
95 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
96 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
97 | + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] | ||
98 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] | ||
99 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] | ||
100 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] | ||
101 | + void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { | ||
102 | + switch (connectionId) | ||
103 | + { | ||
104 | + case 1: | ||
105 | + | ||
106 | + #line 6 "..\..\MainWindow.xaml" | ||
107 | + ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded); | ||
108 | + | ||
109 | + #line default | ||
110 | + #line hidden | ||
111 | + | ||
112 | + #line 7 "..\..\MainWindow.xaml" | ||
113 | + ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MainWindow_Closing); | ||
114 | + | ||
115 | + #line default | ||
116 | + #line hidden | ||
117 | + return; | ||
118 | + case 2: | ||
119 | + this.state = ((System.Windows.Controls.Label)(target)); | ||
120 | + return; | ||
121 | + case 3: | ||
122 | + this.timer = ((System.Windows.Controls.Label)(target)); | ||
123 | + return; | ||
124 | + case 4: | ||
125 | + this.camera = ((System.Windows.Controls.Image)(target)); | ||
126 | + return; | ||
127 | + case 5: | ||
128 | + this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); | ||
129 | + return; | ||
130 | + } | ||
131 | + this._contentLoaded = true; | ||
132 | + } | ||
133 | + } | ||
134 | +} | ||
135 | + |
BodyBasics-WPF/obj/Release/MainWindow.g.i.cs
0 → 100644
1 | +#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "B9F3844DAED0D618F9AA0417F2C8C3E1DFB32914" | ||
2 | +//------------------------------------------------------------------------------ | ||
3 | +// <auto-generated> | ||
4 | +// 이 코드는 도구를 사용하여 생성되었습니다. | ||
5 | +// 런타임 버전:4.0.30319.42000 | ||
6 | +// | ||
7 | +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | ||
8 | +// 이러한 변경 내용이 손실됩니다. | ||
9 | +// </auto-generated> | ||
10 | +//------------------------------------------------------------------------------ | ||
11 | + | ||
12 | +using System; | ||
13 | +using System.Diagnostics; | ||
14 | +using System.Windows; | ||
15 | +using System.Windows.Automation; | ||
16 | +using System.Windows.Controls; | ||
17 | +using System.Windows.Controls.Primitives; | ||
18 | +using System.Windows.Data; | ||
19 | +using System.Windows.Documents; | ||
20 | +using System.Windows.Ink; | ||
21 | +using System.Windows.Input; | ||
22 | +using System.Windows.Markup; | ||
23 | +using System.Windows.Media; | ||
24 | +using System.Windows.Media.Animation; | ||
25 | +using System.Windows.Media.Effects; | ||
26 | +using System.Windows.Media.Imaging; | ||
27 | +using System.Windows.Media.Media3D; | ||
28 | +using System.Windows.Media.TextFormatting; | ||
29 | +using System.Windows.Navigation; | ||
30 | +using System.Windows.Shapes; | ||
31 | +using System.Windows.Shell; | ||
32 | + | ||
33 | + | ||
34 | +namespace Microsoft.Samples.Kinect.BodyBasics { | ||
35 | + | ||
36 | + | ||
37 | + /// <summary> | ||
38 | + /// MainWindow | ||
39 | + /// </summary> | ||
40 | + public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { | ||
41 | + | ||
42 | + | ||
43 | + #line 20 "..\..\MainWindow.xaml" | ||
44 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
45 | + internal System.Windows.Controls.Label state; | ||
46 | + | ||
47 | + #line default | ||
48 | + #line hidden | ||
49 | + | ||
50 | + | ||
51 | + #line 21 "..\..\MainWindow.xaml" | ||
52 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
53 | + internal System.Windows.Controls.Label timer; | ||
54 | + | ||
55 | + #line default | ||
56 | + #line hidden | ||
57 | + | ||
58 | + | ||
59 | + #line 24 "..\..\MainWindow.xaml" | ||
60 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
61 | + internal System.Windows.Controls.Image camera; | ||
62 | + | ||
63 | + #line default | ||
64 | + #line hidden | ||
65 | + | ||
66 | + | ||
67 | + #line 27 "..\..\MainWindow.xaml" | ||
68 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] | ||
69 | + internal System.Windows.Controls.Primitives.StatusBar statusBar; | ||
70 | + | ||
71 | + #line default | ||
72 | + #line hidden | ||
73 | + | ||
74 | + private bool _contentLoaded; | ||
75 | + | ||
76 | + /// <summary> | ||
77 | + /// InitializeComponent | ||
78 | + /// </summary> | ||
79 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
80 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
81 | + public void InitializeComponent() { | ||
82 | + if (_contentLoaded) { | ||
83 | + return; | ||
84 | + } | ||
85 | + _contentLoaded = true; | ||
86 | + System.Uri resourceLocater = new System.Uri("/BodyBasics-WPF;component/mainwindow.xaml", System.UriKind.Relative); | ||
87 | + | ||
88 | + #line 1 "..\..\MainWindow.xaml" | ||
89 | + System.Windows.Application.LoadComponent(this, resourceLocater); | ||
90 | + | ||
91 | + #line default | ||
92 | + #line hidden | ||
93 | + } | ||
94 | + | ||
95 | + [System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
96 | + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] | ||
97 | + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] | ||
98 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] | ||
99 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] | ||
100 | + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] | ||
101 | + void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { | ||
102 | + switch (connectionId) | ||
103 | + { | ||
104 | + case 1: | ||
105 | + | ||
106 | + #line 6 "..\..\MainWindow.xaml" | ||
107 | + ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded); | ||
108 | + | ||
109 | + #line default | ||
110 | + #line hidden | ||
111 | + | ||
112 | + #line 7 "..\..\MainWindow.xaml" | ||
113 | + ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MainWindow_Closing); | ||
114 | + | ||
115 | + #line default | ||
116 | + #line hidden | ||
117 | + return; | ||
118 | + case 2: | ||
119 | + this.state = ((System.Windows.Controls.Label)(target)); | ||
120 | + return; | ||
121 | + case 3: | ||
122 | + this.timer = ((System.Windows.Controls.Label)(target)); | ||
123 | + return; | ||
124 | + case 4: | ||
125 | + this.camera = ((System.Windows.Controls.Image)(target)); | ||
126 | + return; | ||
127 | + case 5: | ||
128 | + this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); | ||
129 | + return; | ||
130 | + } | ||
131 | + this._contentLoaded = true; | ||
132 | + } | ||
133 | + } | ||
134 | +} | ||
135 | + |
BodyBasics-WPF/obj/Release/Microsoft.Samples.Kinect.BodyBasics.Properties.Resources.resources
0 → 100644
No preview for this file type
No preview for this file type
BodyBasics-WPF/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
0 → 100644
File mode changed
BodyBasics-WPF/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
0 → 100644
File mode changed
BodyBasics-WPF/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
0 → 100644
File mode changed
No preview for this file type
No preview for this file type
-
Please register or login to post a comment