Skip to content

Commit

Permalink
Merge pull request #2168 from davidkline-ms/specView
Browse files Browse the repository at this point in the history
create HoloToolkit-Preview, moved SpectatorView there until OpenCV passes WACK
  • Loading branch information
David Kline committed May 25, 2018
2 parents ec357c9 + fd73452 commit 8058e72
Show file tree
Hide file tree
Showing 321 changed files with 42 additions and 36 deletions.
10 changes: 10 additions & 0 deletions Assets/HoloToolkit-Preview.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System;
using UnityEngine;
using UnityEngine.Networking;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// In this instance the HoloLens will be listening to broadcasts from the mobile device to turn on the camera
Expand Down Expand Up @@ -40,7 +39,7 @@ private void Awake()
{
OpenCVUtils.CheckOpenCVWrapperHasLoaded();
}
catch (Exception e)
catch (System.Exception e)
{
Debug.LogError(e);
gameObject.SetActive(false);
Expand Down
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System;
using System.Collections;
using System.Linq;
using UnityEngine;
using UnityEngine.Networking;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// </summary>
Expand Down Expand Up @@ -113,7 +112,7 @@ private void Awake()
{
OpenCVUtils.CheckOpenCVWrapperHasLoaded();
}
catch (Exception e)
catch (System.Exception e)
{
Debug.LogError(e);
gameObject.SetActive(false);
Expand Down
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
public class SpectatorViewNetworkManager : NetworkManager
{
Expand Down Expand Up @@ -112,7 +111,7 @@ private void Start()
{
OpenCVUtils.CheckOpenCVWrapperHasLoaded();
}
catch (Exception e)
catch (System.Exception e)
{
Debug.LogError(e);
gameObject.SetActive(false);
Expand Down
Expand Up @@ -9,7 +9,7 @@
using UnityEngine.Apple.ReplayKit;
#endif

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Records and replays screencaptures recorded from the iPhone
Expand Down
Expand Up @@ -4,7 +4,7 @@
using HoloToolkit.Unity.InputModule;
using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Controls the display of the recording UI.
Expand Down
@@ -1,9 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using UnityEngine;
using UnityEngine.XR.iOS;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Detects when an anchor has been located
Expand Down
Expand Up @@ -13,7 +13,7 @@
#endif
#endif

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Manages the camera capture on the HoloLens
Expand Down
Expand Up @@ -5,7 +5,7 @@
using System.Collections.Generic;
using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Manages the capture process on the HoloLens
Expand Down
Expand Up @@ -6,29 +6,29 @@
using System.Runtime.InteropServices;
using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Manages the OpenCV wrapper to detect a marker.
/// </summary>
public class MarkerDetector
{
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Initialize", ExactSpelling=true)]
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Initialize")]
internal static extern void InitalizeMarkerDetector();

[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Terminate", ExactSpelling=true)]
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_Terminate")]
internal static extern void TerminateMarkerDetector();

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

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

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

[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerPose", ExactSpelling=true)]
[DllImport("SpectatorViewPlugin", EntryPoint="MarkerDetector_GetDetectedMarkerPose")]
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);

/// <summary>
Expand Down
Expand Up @@ -4,7 +4,7 @@
using UnityEngine;
using UnityEditor;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
[CustomEditor(typeof(MarkerGeneration3D), true)]
public class MarkerGeneration3DEditor : Editor
Expand Down
Expand Up @@ -5,7 +5,7 @@
using System.Collections.Generic;
using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
public class MarkerGeneration3D : MonoBehaviour
{
Expand Down
Expand Up @@ -3,7 +3,7 @@

using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
public class SimpleMarkerGeneration3D : MarkerGeneration3D
{
Expand Down
Expand Up @@ -4,7 +4,7 @@
using System.Collections;
using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Controls the generation of AR markers from a pool.
Expand Down
Expand Up @@ -3,7 +3,7 @@

using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Manages the scale of the marker to fit in different screen sizes
Expand Down
Expand Up @@ -8,7 +8,7 @@
using UnityEngine.Events;
using UnityEngine.Networking;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Manages the sync of the world between the HoloLens and the mobile
Expand Down
Expand Up @@ -3,7 +3,7 @@

using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Controls displaying of the AR marker on the mobile device
Expand Down
Expand Up @@ -4,7 +4,7 @@
using UnityEngine;
using UnityEngine.UI;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Controls an on screen text field to display connection status to the user
Expand Down
Expand Up @@ -4,7 +4,7 @@
using UnityEngine;
using UnityEditor;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
[CustomEditor(typeof(PlatformSwitcher))]
public class PlatformSwitcherEditor : Editor
Expand Down
Expand Up @@ -2,9 +2,8 @@
// Licensed under the MIT License. See LICENSE in the project root for license information.using UnityEngine;

using System.Runtime.InteropServices;
using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Utility function to ensure the OpenCVWrapper has been successfully loaded
Expand All @@ -14,7 +13,7 @@ public static class OpenCVUtils
/// <summary>
/// Utility function to ensure the OpenCVWrapper has been successfully loaded
/// </summary>
[DllImport("SpectatorViewPlugin", EntryPoint="CheckLibraryHasLoaded", ExactSpelling=true)]
[DllImport("SpectatorViewPlugin", EntryPoint="CheckLibraryHasLoaded")]
public static extern void CheckOpenCVWrapperHasLoaded();
}
}
Expand Up @@ -8,7 +8,7 @@
using UnityEditor;
#endif

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Utility to switch scene state between HoloLens and mobile platforms
Expand Down
Expand Up @@ -2,10 +2,9 @@
// Licensed under the MIT License. See LICENSE in the project root for license information.using UnityEngine;

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace HoloToolkit.Unity.SpectatorView
namespace HoloToolkit.Unity.Preview.SpectatorView
{
/// <summary>
/// Utility for fading out marker
Expand Down

0 comments on commit 8058e72

Please sign in to comment.