public TrackablePlaneFindingMode GetPlaneFindMode(UInt64 config_handle) { TrackablePlaneFindingMode mode = TrackablePlaneFindingMode.DISABLE; NativeApi.NRConfigGetTrackablePlaneFindingMode(m_NativeInterface.TrackingHandle, config_handle, ref mode); return(mode); }
/// <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; }
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); }
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); }
/// <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; }
public static extern NativeResult NRConfigSetTrackablePlaneFindingMode(UInt64 session_handle, UInt64 config_handle, TrackablePlaneFindingMode trackable_plane_finding_mode);
public bool SetPlaneFindMode(UInt64 config_handle, TrackablePlaneFindingMode mode) { var result = NativeApi.NRConfigSetTrackablePlaneFindingMode(m_NativeInterface.TrackingHandle, config_handle, mode); return(result == NativeResult.Success); }