Exemple #1
0
        public TrackablePlaneFindingMode GetPlaneFindMode(UInt64 config_handle)
        {
            TrackablePlaneFindingMode mode = TrackablePlaneFindingMode.DISABLE;

            NativeApi.NRConfigGetTrackablePlaneFindingMode(m_NativeInterface.TrackingHandle, config_handle, ref mode);
            return(mode);
        }
Exemple #2
0
 /// <summary>
 /// ValueType copy from another SessionConfig object into this one.
 /// </summary>
 /// <param name="other"></param>
 public void CopyFrom(NRSessionConfig other)
 {
     OptimizedRendering    = other.OptimizedRendering;
     PlaneFindingMode      = other.PlaneFindingMode;
     ImageTrackingMode     = other.ImageTrackingMode;
     TrackingImageDatabase = other.TrackingImageDatabase;
 }
Exemple #3
0
        public bool SetPlaneFindMode(UInt64 config_handle, TrackablePlaneFindingMode mode)
        {
            int mode_value;

            switch (mode)
            {
            case TrackablePlaneFindingMode.DISABLE:
            case TrackablePlaneFindingMode.HORIZONTAL:
            case TrackablePlaneFindingMode.VERTICLE:
                mode_value = (int)mode;
                break;

            case TrackablePlaneFindingMode.BOTH:
                mode_value = ((int)TrackablePlaneFindingMode.HORIZONTAL) | ((int)TrackablePlaneFindingMode.VERTICLE);
                break;

            default:
                mode_value = (int)TrackablePlaneFindingMode.DISABLE;
                break;
            }
            var result = NativeApi.NRConfigSetTrackablePlaneFindingMode(m_NativeInterface.TrackingHandle, config_handle, mode_value);

            NativeErrorListener.Check(result, this, "SetPlaneFindMode");
            return(result == NativeResult.Success);
        }
Exemple #4
0
        public TrackablePlaneFindingMode GetPlaneFindMode(UInt64 config_handle)
        {
            TrackablePlaneFindingMode mode = TrackablePlaneFindingMode.DISABLE;
            var result = NativeApi.NRConfigGetTrackablePlaneFindingMode(m_NativeInterface.TrackingHandle, config_handle, ref mode);

            NativeErrorListener.Check(result, this, "GetPlaneFindMode");
            return(mode);
        }
Exemple #5
0
 /// <summary>
 /// ValueType copy from another SessionConfig object into this one.
 /// </summary>
 /// <param name="other"></param>
 public void CopyFrom(NRSessionConfig other)
 {
     OptimizedRendering    = other.OptimizedRendering;
     PlaneFindingMode      = other.PlaneFindingMode;
     ImageTrackingMode     = other.ImageTrackingMode;
     TrackingImageDatabase = other.TrackingImageDatabase;
     EnableNotification    = other.EnableNotification;
     ErrorTipsPrefab       = other.ErrorTipsPrefab;
 }
Exemple #6
0
 public static extern NativeResult NRConfigSetTrackablePlaneFindingMode(UInt64 session_handle,
                                                                        UInt64 config_handle, TrackablePlaneFindingMode trackable_plane_finding_mode);
Exemple #7
0
        public bool SetPlaneFindMode(UInt64 config_handle, TrackablePlaneFindingMode mode)
        {
            var result = NativeApi.NRConfigSetTrackablePlaneFindingMode(m_NativeInterface.TrackingHandle, config_handle, mode);

            return(result == NativeResult.Success);
        }