コード例 #1
0
        public HandSide GetHandSide(IntPtr handGestureHandle)
        {
            ApiHandSide apiHandSide = ApiHandSide.ARHAND_SIDE_HAND_UNKNOWN;

            ExternApi.arHandGestureGetHandSide(m_NativeSession.SessionHandle, handGestureHandle, ref apiHandSide);

            return(apiHandSide.ToHandSide());
        }
コード例 #2
0
        public static HandSide ToHandSide(this ApiHandSide apiHandSide)
        {
            switch (apiHandSide)
            {
            case ApiHandSide.ARHAND_SIDE_HAND_UNKNOWN:
                return(HandSide.ARHAND_SIDE_HAND_UNKNOWN);

            case ApiHandSide.ARHAND_SIDE_LEFT_HAND:
                return(HandSide.ARHAND_SIDE_LEFT_HAND);

            case ApiHandSide.ARHAND_SIDE_RIGHT_HAND:
                return(HandSide.ARHAND_SIDE_RIGHT_HAND);

            default:
                return(HandSide.ARHAND_SIDE_HAND_UNKNOWN);
            }
        }
コード例 #3
0
 public static extern void arHandGestureGetHandSide(IntPtr sessionHandle, IntPtr handGestureHandle,
                                                    ref ApiHandSide outHandSide);