Skip to content

Commit 8058e72

Browse files
author
David Kline
authored
Merge pull request #2168 from davidkline-ms/specView
create HoloToolkit-Preview, moved SpectatorView there until OpenCV passes WACK
2 parents ec357c9 + fd73452 commit 8058e72

File tree

321 files changed

+42
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+42
-36
lines changed

Assets/HoloToolkit-Preview.meta

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/HoloToolkit/SpectatorView/Scripts/Networking/NewDeviceDiscovery.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Networking/NewDeviceDiscovery.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4-
using System;
54
using UnityEngine;
65
using UnityEngine.Networking;
76

8-
namespace HoloToolkit.Unity.SpectatorView
7+
namespace HoloToolkit.Unity.Preview.SpectatorView
98
{
109
/// <summary>
1110
/// In this instance the HoloLens will be listening to broadcasts from the mobile device to turn on the camera
@@ -40,7 +39,7 @@ private void Awake()
4039
{
4140
OpenCVUtils.CheckOpenCVWrapperHasLoaded();
4241
}
43-
catch (Exception e)
42+
catch (System.Exception e)
4443
{
4544
Debug.LogError(e);
4645
gameObject.SetActive(false);

Assets/HoloToolkit/SpectatorView/Scripts/Networking/SpectatorViewNetworkDiscovery.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Networking/SpectatorViewNetworkDiscovery.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4-
using System;
54
using System.Collections;
65
using System.Linq;
76
using UnityEngine;
87
using UnityEngine.Networking;
98

10-
namespace HoloToolkit.Unity.SpectatorView
9+
namespace HoloToolkit.Unity.Preview.SpectatorView
1110
{
1211
/// <summary>
1312
/// </summary>
@@ -113,7 +112,7 @@ private void Awake()
113112
{
114113
OpenCVUtils.CheckOpenCVWrapperHasLoaded();
115114
}
116-
catch (Exception e)
115+
catch (System.Exception e)
117116
{
118117
Debug.LogError(e);
119118
gameObject.SetActive(false);

Assets/HoloToolkit/SpectatorView/Scripts/Networking/SpectatorViewNetworkManager.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Networking/SpectatorViewNetworkManager.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4-
using System;
54
using System.Collections;
65
using UnityEngine;
76
using UnityEngine.Networking;
87

9-
namespace HoloToolkit.Unity.SpectatorView
8+
namespace HoloToolkit.Unity.Preview.SpectatorView
109
{
1110
public class SpectatorViewNetworkManager : NetworkManager
1211
{
@@ -112,7 +111,7 @@ private void Start()
112111
{
113112
OpenCVUtils.CheckOpenCVWrapperHasLoaded();
114113
}
115-
catch (Exception e)
114+
catch (System.Exception e)
116115
{
117116
Debug.LogError(e);
118117
gameObject.SetActive(false);

Assets/HoloToolkit/SpectatorView/Scripts/Recording/ReplayKitRecorder.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Recording/ReplayKitRecorder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using UnityEngine.Apple.ReplayKit;
1010
#endif
1111

12-
namespace HoloToolkit.Unity.SpectatorView
12+
namespace HoloToolkit.Unity.Preview.SpectatorView
1313
{
1414
/// <summary>
1515
/// Records and replays screencaptures recorded from the iPhone

Assets/HoloToolkit/SpectatorView/Scripts/Recording/ShowRecordingControls.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Recording/ShowRecordingControls.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using HoloToolkit.Unity.InputModule;
55
using UnityEngine;
66

7-
namespace HoloToolkit.Unity.SpectatorView
7+
namespace HoloToolkit.Unity.Preview.SpectatorView
88
{
99
/// <summary>
1010
/// Controls the display of the recording UI.

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/AnchorLocated.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/AnchorLocated.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
34
using UnityEngine;
45
using UnityEngine.XR.iOS;
56

6-
namespace HoloToolkit.Unity.SpectatorView
7+
namespace HoloToolkit.Unity.Preview.SpectatorView
78
{
89
/// <summary>
910
/// Detects when an anchor has been located

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/CameraCaptureHololens.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/CameraCaptureHololens.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#endif
1414
#endif
1515

16-
namespace HoloToolkit.Unity.SpectatorView
16+
namespace HoloToolkit.Unity.Preview.SpectatorView
1717
{
1818
/// <summary>
1919
/// Manages the camera capture on the HoloLens

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/MarkerDetectionHololens.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/MarkerDetectionHololens.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Collections.Generic;
66
using UnityEngine;
77

8-
namespace HoloToolkit.Unity.SpectatorView
8+
namespace HoloToolkit.Unity.Preview.SpectatorView
99
{
1010
/// <summary>
1111
/// Manages the capture process on the HoloLens

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/MarkerDetector.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/MarkerDetector.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@
66
using System.Runtime.InteropServices;
77
using UnityEngine;
88

9-
namespace HoloToolkit.Unity.SpectatorView
9+
namespace HoloToolkit.Unity.Preview.SpectatorView
1010
{
1111
/// <summary>
1212
/// Manages the OpenCV wrapper to detect a marker.
1313
/// </summary>
1414
public class MarkerDetector
1515
{
16-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Initialize", ExactSpelling=true)]
16+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Initialize")]
1717
internal static extern void InitalizeMarkerDetector();
1818

19-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Terminate", ExactSpelling=true)]
19+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Terminate")]
2020
internal static extern void TerminateMarkerDetector();
2121

22-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_DetectMarkers", ExactSpelling=true)]
22+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_DetectMarkers")]
2323
internal static extern bool DetectMarkers(int _imageWidth, int _imageHeight, IntPtr _imageDate, float _markerSize);
2424

25-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetNumMarkersDetected", ExactSpelling=true)]
25+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetNumMarkersDetected")]
2626
internal static extern bool GetNumMarkersDetected(out int _numMarkersDetected);
2727

28-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerIds", ExactSpelling=true)]
28+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerIds")]
2929
internal static extern bool GetDetectedMarkerIds(IntPtr _detectedMarkers);
3030

31-
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerPose", ExactSpelling=true)]
31+
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerPose")]
3232
internal static extern bool GetDetectedMarkerPose(int _markerId, out float _xPos, out float _yPos, out float _zPos, out float _xRot, out float _yRot, out float _zRot);
3333

3434
/// <summary>

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/MarkerGeneration3D/Editor/MarkerGeneration3DEditor.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/MarkerGeneration3D/Editor/MarkerGeneration3DEditor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using UnityEngine;
55
using UnityEditor;
66

7-
namespace HoloToolkit.Unity.SpectatorView
7+
namespace HoloToolkit.Unity.Preview.SpectatorView
88
{
99
[CustomEditor(typeof(MarkerGeneration3D), true)]
1010
public class MarkerGeneration3DEditor : Editor

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/MarkerGeneration3D/MarkerGeneration3D.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/MarkerGeneration3D/MarkerGeneration3D.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Collections.Generic;
66
using UnityEngine;
77

8-
namespace HoloToolkit.Unity.SpectatorView
8+
namespace HoloToolkit.Unity.Preview.SpectatorView
99
{
1010
public class MarkerGeneration3D : MonoBehaviour
1111
{

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/MarkerGeneration3D/SimpleMarkerGeneration3D.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/MarkerGeneration3D/SimpleMarkerGeneration3D.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using UnityEngine;
55

6-
namespace HoloToolkit.Unity.SpectatorView
6+
namespace HoloToolkit.Unity.Preview.SpectatorView
77
{
88
public class SimpleMarkerGeneration3D : MarkerGeneration3D
99
{

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/MarkerGeneration3D/SpectatorViewMarkerGenerator3D.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/MarkerGeneration3D/SpectatorViewMarkerGenerator3D.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Collections;
55
using UnityEngine;
66

7-
namespace HoloToolkit.Unity.SpectatorView
7+
namespace HoloToolkit.Unity.Preview.SpectatorView
88
{
99
/// <summary>
1010
/// Controls the generation of AR markers from a pool.

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/Scale3DMarker.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/Scale3DMarker.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using UnityEngine;
55

6-
namespace HoloToolkit.Unity.SpectatorView
6+
namespace HoloToolkit.Unity.Preview.SpectatorView
77
{
88
/// <summary>
99
/// Manages the scale of the marker to fit in different screen sizes

Assets/HoloToolkit/SpectatorView/Scripts/SpatialSync/WorldSync.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/SpatialSync/WorldSync.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using UnityEngine.Events;
99
using UnityEngine.Networking;
1010

11-
namespace HoloToolkit.Unity.SpectatorView
11+
namespace HoloToolkit.Unity.Preview.SpectatorView
1212
{
1313
/// <summary>
1414
/// Manages the sync of the world between the HoloLens and the mobile

Assets/HoloToolkit/SpectatorView/Scripts/Utilities/ARMarkerController.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Utilities/ARMarkerController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using UnityEngine;
55

6-
namespace HoloToolkit.Unity.SpectatorView
6+
namespace HoloToolkit.Unity.Preview.SpectatorView
77
{
88
/// <summary>
99
/// Controls displaying of the AR marker on the mobile device

Assets/HoloToolkit/SpectatorView/Scripts/Utilities/ConnectionStatusController.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Utilities/ConnectionStatusController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using UnityEngine;
55
using UnityEngine.UI;
66

7-
namespace HoloToolkit.Unity.SpectatorView
7+
namespace HoloToolkit.Unity.Preview.SpectatorView
88
{
99
/// <summary>
1010
/// Controls an on screen text field to display connection status to the user

Assets/HoloToolkit/SpectatorView/Scripts/Utilities/Editor/PlatformSwitcherEditor.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Utilities/Editor/PlatformSwitcherEditor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using UnityEngine;
55
using UnityEditor;
66

7-
namespace HoloToolkit.Unity.SpectatorView
7+
namespace HoloToolkit.Unity.Preview.SpectatorView
88
{
99
[CustomEditor(typeof(PlatformSwitcher))]
1010
public class PlatformSwitcherEditor : Editor

Assets/HoloToolkit/SpectatorView/Scripts/Utilities/OpenCVUtils.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Utilities/OpenCVUtils.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
// Licensed under the MIT License. See LICENSE in the project root for license information.using UnityEngine;
33

44
using System.Runtime.InteropServices;
5-
using UnityEngine;
65

7-
namespace HoloToolkit.Unity.SpectatorView
6+
namespace HoloToolkit.Unity.Preview.SpectatorView
87
{
98
/// <summary>
109
/// Utility function to ensure the OpenCVWrapper has been successfully loaded
@@ -14,7 +13,7 @@ public static class OpenCVUtils
1413
/// <summary>
1514
/// Utility function to ensure the OpenCVWrapper has been successfully loaded
1615
/// </summary>
17-
[DllImport("SpectatorViewPlugin", EntryPoint="CheckLibraryHasLoaded", ExactSpelling=true)]
16+
[DllImport("SpectatorViewPlugin", EntryPoint="CheckLibraryHasLoaded")]
1817
public static extern void CheckOpenCVWrapperHasLoaded();
1918
}
2019
}

Assets/HoloToolkit/SpectatorView/Scripts/Utilities/PlatformSwitcher.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Utilities/PlatformSwitcher.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using UnityEditor;
99
#endif
1010

11-
namespace HoloToolkit.Unity.SpectatorView
11+
namespace HoloToolkit.Unity.Preview.SpectatorView
1212
{
1313
/// <summary>
1414
/// Utility to switch scene state between HoloLens and mobile platforms

Assets/HoloToolkit/SpectatorView/Scripts/Utilities/TweenAlpha.cs Assets/HoloToolkit-Preview/SpectatorView/Scripts/Utilities/TweenAlpha.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
// Licensed under the MIT License. See LICENSE in the project root for license information.using UnityEngine;
33

44
using System.Collections;
5-
using System.Collections.Generic;
65
using UnityEngine;
76

8-
namespace HoloToolkit.Unity.SpectatorView
7+
namespace HoloToolkit.Unity.Preview.SpectatorView
98
{
109
/// <summary>
1110
/// Utility for fading out marker

0 commit comments

Comments
 (0)