public override bool GazeApi(GazeTag tag, string param)
        {
            bool show = false;

            CallStaticMethod <bool>(ref show, nibiruVR, "gazeApiForUnity", (int)tag, param);
            return(show);
        }
Beispiel #2
0
 /// <summary>
 ///  GazeTag.Show, GazeTag.Hide 后面的param传 "" 即可
 /// </summary>
 /// <param name="tag"></param>
 /// <param name="param"></param>
 public void GazeApi(GazeTag tag, String param)
 {
     if (device != null)
     {
         bool rslt = device.GazeApi(tag, param);
         if (tag == GazeTag.Show)
         {
             bool useDFT = NvrViewer.USE_DTR && !NvrGlobal.supportDtr;
             gazeShow = useDFT ? true : rslt;
         }
         else if (tag == GazeTag.Hide)
         {
             gazeShow = false;
         }
     }
 }
Beispiel #3
0
 /// <summary> DTR
 ///  (0=显示点,1=隐藏点,2=设置点距离,3=设置点大小,4=设置点颜色)
 /// </summary>
 /// <param name="tag"></param>
 /// <param name="param"></param>
 public virtual bool GazeApi(GazeTag tag, String param)
 {
     return(false);
 }
Beispiel #4
0
 public override bool GazeApi(GazeTag tag, string param)
 {
     return(true);
 }