From 1b4866e74ecd893fdb8e8d74d1e101eb066f5e27 Mon Sep 17 00:00:00 2001 From: Chikashi Miyama Date: Sun, 7 Jul 2019 00:17:26 +0200 Subject: [PATCH] add unit tests for kinect related classse --- .../.idea.UnityProject/.idea/contentModel.xml | 30 +- .../.idea.UnityProject/.idea/indexLayout.xml | 18 +- .../.idea.UnityProject/.idea/workspace.xml | 885 +++++++++++++++--- UnityProject/Assembly-CSharp-Editor.csproj | 5 + UnityProject/Assembly-CSharp.csproj | 11 +- .../{Scripts/UnitTest.meta => Materials.meta} | 2 +- .../Assets/Materials/WaveformColor.mat | 84 ++ .../Assets/Materials/WaveformColor.mat.meta | 8 + ...ins.Rider.Unity.Editor.Plugin.Repacked.dll | Bin 1342464 -> 1350656 bytes UnityProject/Assets/Scenes/MainScene.unity | 226 ++++- .../PdConnection/{PdBuffer.cs => PdArray.cs} | 9 +- .../{PdBuffer.cs.meta => PdArray.cs.meta} | 0 .../Scripts/PdConnection/PdBufferTest.cs | 22 - .../Assets/Scripts/UnitTest/SimpleTest.cs | 32 - .../Assets/Scripts/UnitTest/UnitTest.asmdef | 9 - .../UnitTest.asmdef.meta => VideoInput.meta} | 5 +- .../Scripts/VideoInput/ComponentFactory.cs | 21 + .../VideoInput/ComponentFactory.cs.meta | 3 + .../Assets/Scripts/VideoInput/Editor.meta | 8 + .../Scripts/VideoInput/Editor/UnitTest.meta | 3 + .../UnitTest/ComponentFactoryTestCase.cs | 24 + .../ComponentFactoryTestCase.cs.meta} | 2 +- .../Editor/UnitTest/KinectSensorTestCase.cs | 24 + .../UnitTest/KinectSensorTestCase.cs.meta | 3 + .../Scripts/VideoInput/InfraredCamera.cs | 68 ++ .../Scripts/VideoInput/InfraredCamera.cs.meta | 11 + .../Assets/Scripts/VideoInput/KinectSensor.cs | 18 + .../Scripts/VideoInput/KinectSensor.cs.meta | 3 + .../Assets/Scripts/VideoInput/PointCloud.cs | 7 + .../Scripts/VideoInput/PointCloud.cs.meta | 3 + UnityProject/Assets/Scripts/Visualizer.meta | 8 + .../Scripts/Visualizer/WaveformVisualizer.cs | 31 + .../WaveformVisualizer.cs.meta} | 0 .../ProjectSettings/EditorBuildSettings.asset | 5 +- UnityProject/UnitTest.csproj | 5 +- UnityProject/UnityProject.sln | 6 - 36 files changed, 1312 insertions(+), 287 deletions(-) rename UnityProject/Assets/{Scripts/UnitTest.meta => Materials.meta} (77%) create mode 100644 UnityProject/Assets/Materials/WaveformColor.mat create mode 100644 UnityProject/Assets/Materials/WaveformColor.mat.meta rename UnityProject/Assets/Scripts/PdConnection/{PdBuffer.cs => PdArray.cs} (81%) rename UnityProject/Assets/Scripts/PdConnection/{PdBuffer.cs.meta => PdArray.cs.meta} (100%) delete mode 100644 UnityProject/Assets/Scripts/PdConnection/PdBufferTest.cs delete mode 100644 UnityProject/Assets/Scripts/UnitTest/SimpleTest.cs delete mode 100644 UnityProject/Assets/Scripts/UnitTest/UnitTest.asmdef rename UnityProject/Assets/Scripts/{UnitTest/UnitTest.asmdef.meta => VideoInput.meta} (57%) create mode 100644 UnityProject/Assets/Scripts/VideoInput/ComponentFactory.cs create mode 100644 UnityProject/Assets/Scripts/VideoInput/ComponentFactory.cs.meta create mode 100644 UnityProject/Assets/Scripts/VideoInput/Editor.meta create mode 100644 UnityProject/Assets/Scripts/VideoInput/Editor/UnitTest.meta create mode 100644 UnityProject/Assets/Scripts/VideoInput/Editor/UnitTest/ComponentFactoryTestCase.cs rename UnityProject/Assets/Scripts/{UnitTest/SimpleTest.cs.meta => VideoInput/Editor/UnitTest/ComponentFactoryTestCase.cs.meta} (83%) create mode 100644 UnityProject/Assets/Scripts/VideoInput/Editor/UnitTest/KinectSensorTestCase.cs create mode 100644 UnityProject/Assets/Scripts/VideoInput/Editor/UnitTest/KinectSensorTestCase.cs.meta create mode 100644 UnityProject/Assets/Scripts/VideoInput/InfraredCamera.cs create mode 100644 UnityProject/Assets/Scripts/VideoInput/InfraredCamera.cs.meta create mode 100644 UnityProject/Assets/Scripts/VideoInput/KinectSensor.cs create mode 100644 UnityProject/Assets/Scripts/VideoInput/KinectSensor.cs.meta create mode 100644 UnityProject/Assets/Scripts/VideoInput/PointCloud.cs create mode 100644 UnityProject/Assets/Scripts/VideoInput/PointCloud.cs.meta create mode 100644 UnityProject/Assets/Scripts/Visualizer.meta create mode 100644 UnityProject/Assets/Scripts/Visualizer/WaveformVisualizer.cs rename UnityProject/Assets/Scripts/{PdConnection/PdBufferTest.cs.meta => Visualizer/WaveformVisualizer.cs.meta} (100%) diff --git a/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml b/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml index dd2ccec..6e32ea3 100644 --- a/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml +++ b/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml @@ -1,20 +1,30 @@ - - + + - - + - - - + + + + + + + + + + + + + + @@ -130,13 +140,9 @@ - - - - - + diff --git a/UnityProject/.idea/.idea.UnityProject/.idea/indexLayout.xml b/UnityProject/.idea/.idea.UnityProject/.idea/indexLayout.xml index 27ba142..5907414 100644 --- a/UnityProject/.idea/.idea.UnityProject/.idea/indexLayout.xml +++ b/UnityProject/.idea/.idea.UnityProject/.idea/indexLayout.xml @@ -2,7 +2,21 @@ - - + + Library/PackageCache/com.unity.ads@2.0.8 + Library/PackageCache/com.unity.analytics@3.2.2 + Library/PackageCache/com.unity.collab-proxy@1.2.15 + Library/PackageCache/com.unity.package-manager-ui@2.0.7 + Library/PackageCache/com.unity.purchasing@2.0.3 + Library/PackageCache/com.unity.textmeshpro@1.4.1 + Packages + ProjectSettings + + + .idea + Library + Temp + obj + \ No newline at end of file diff --git a/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml b/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml index dc116b7..4106a1d 100644 --- a/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml +++ b/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml @@ -2,14 +2,34 @@ - + + + + + + + + + + + + - + - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - + + - - - - - - + + + + + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - - - - + + + + + - + - + + - - - + + + + + + + + + + + + + + + + + + @@ -111,10 +245,24 @@ - - - + + + + + + + + + + + + + + + + + - - - - true - DEFINITION_ORDER - - @@ -144,39 +304,71 @@ - - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + +