コード例 #1
0
        /// <summary>
        /// Gets the global error state.
        /// </summary>
        /// <returns>null if all is OK, a description of the error otherwise</returns>
        public string GetGlobalErrorState()
        {
            UInt32 state = OpenNIImporter.xnGetGlobalErrorState(this.InternalObject);

            if (state == 0)
            {
                return(null);
            }
            else
            {
                return(WrapperUtils.GetErrorMessage(state));
            }
        }
コード例 #2
0
 private void ErrorStateChangedCallback(UInt32 status, IntPtr cookie)
 {
     if (this.errorStateChanged != null)
     {
         if (status == 0)
         {
             this.errorStateChanged(null);
         }
         else
         {
             this.errorStateChanged(WrapperUtils.GetErrorMessage(status));
         }
     }
 }
コード例 #3
0
        public string GetError()
        {
            UInt32 status = OpenNIImporter.xnEnumerationErrorsGetCurrentError(this.it);

            return(WrapperUtils.GetErrorMessage(status));
        }
コード例 #4
0
ファイル: Wrappers.cs プロジェクト: shenjikai/MetaImagerProj
 public XnStatusException(UInt32 status)
     : base(WrapperUtils.GetErrorMessage(status))
 {
     this.status = status;
 }