Esempio n. 1
0
        public void SetData(Int32 frameID, Int64 timestamp, Int32 dataSize, IntPtr buffer)
        {
            int status = SafeNativeMethods.xnMockIRSetData(this.InternalObject, (UInt32)frameID, (UInt64)timestamp, (UInt32)dataSize, buffer);

            WrapperUtils.ThrowOnError(status);
        }
        public void LoadScriptFromFile(string fileName)
        {
            int status = SafeNativeMethods.xnLoadScriptFromFile(this.InternalObject, fileName);

            WrapperUtils.ThrowOnError(status);
        }
        public void Run()
        {
            int status = SafeNativeMethods.xnScriptNodeRun(this.InternalObject);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 4
0
        public void SetStringProperty(string propName, string value)
        {
            int status = SafeNativeMethods.xnSetStringProperty(this.InternalObject, propName, value);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 5
0
        public void StartTracking(Point3D position)
        {
            int status = SafeNativeMethods.xnStartTracking(this.InternalObject, ref position);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 6
0
        public void StartGenerating()
        {
            int status = SafeNativeMethods.xnStartGenerating(this.InternalObject);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 7
0
        public void LockedNodeEndChanges(LockHandle lockHandle)
        {
            int status = SafeNativeMethods.xnLockedNodeEndChanges(this.InternalObject, lockHandle.InternalHandle);

            WrapperUtils.ThrowOnError(status);
        }
        public void SetPosition(int index, BoundingBox3D pos)
        {
            int status = SafeNativeMethods.xnSetUserPosition(this.InternalObject, (uint)index, ref pos);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 9
0
        public void SetJointActive(SkeletonJoint joint, bool state)
        {
            int status = SafeNativeMethods.xnSetJointActive(this.InternalObject, joint, state);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 10
0
        public void RemoveGesture(string gesture)
        {
            int status = SafeNativeMethods.xnRemoveGesture(InternalObject, gesture);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 11
0
 public StatusException(Int32 status) :
     base(WrapperUtils.GetErrorMessage(status))
 {
     this.status = status;
 }
Esempio n. 12
0
        public void AddGesture(string gesture)
        {
            int status = SafeNativeMethods.xnAddGesture(InternalObject, gesture, IntPtr.Zero);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 13
0
        public void AddGesture(string gesture, BoundingBox3D area)
        {
            int status = SafeNativeMethods.xnAddGesture(InternalObject, gesture, ref area);

            WrapperUtils.ThrowOnError(status);
        }
        public void StopPoseDetection(UserID user)
        {
            int status = SafeNativeMethods.xnStopPoseDetection(this.InternalObject, user);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 15
0
        public void SetSkeletonProfile(SkeletonProfile profile)
        {
            int status = SafeNativeMethods.xnSetSkeletonProfile(this.InternalObject, profile);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 16
0
        public void RequestCalibration(UserID user, bool force)
        {
            int status = SafeNativeMethods.xnRequestSkeletonCalibration(this.InternalObject, user, force);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 17
0
        public void WaitAndUpdateData()
        {
            int status = SafeNativeMethods.xnWaitAndUpdateData(this.InternalObject);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 18
0
        public void AbortCalibration(UserID user)
        {
            int status = SafeNativeMethods.xnAbortSkeletonCalibration(this.InternalObject, user);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 19
0
        public void StopFrameSyncWith(Generator other)
        {
            int status = SafeNativeMethods.xnStopFrameSyncWith(this.InternalObject, other.InternalObject);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 20
0
        public void LoadCalibrationDataFromFile(UserID user, string fileName)
        {
            int status = SafeNativeMethods.xnLoadSkeletonCalibrationDataFromFile(this.InternalObject, user, fileName);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 21
0
        public void RemoveNeededNode(ProductionNode needed)
        {
            int status = SafeNativeMethods.xnRemoveNeededNode(this.InternalObject, needed.InternalObject);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 22
0
        public void LoadCalibrationData(UserID user, Int32 slot)
        {
            int status = SafeNativeMethods.xnLoadSkeletonCalibrationData(this.InternalObject, user, (UInt32)slot);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 23
0
        public void SetGeneralProperty(string propName, int size, IntPtr buff)
        {
            int status = SafeNativeMethods.xnSetGeneralProperty(this.InternalObject, propName, (UInt32)size, buff);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 24
0
        public void ClearCalibrationData(Int32 slot)
        {
            int status = SafeNativeMethods.xnClearSkeletonCalibrationData(this.InternalObject, (UInt32)slot);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 25
0
        public void SetSmoothing(float factor)
        {
            int status = SafeNativeMethods.xnSetTrackingSmoothing(this.InternalObject, factor);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 26
0
        public void StopTracking(UserID user)
        {
            int status = SafeNativeMethods.xnStopSkeletonTracking(this.InternalObject, user);

            WrapperUtils.ThrowOnError(status);
        }
        public void LoadScriptFromString(string script)
        {
            int status = SafeNativeMethods.xnLoadScriptFromString(this.InternalObject, script);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 28
0
        public void Reset(UserID user)
        {
            int status = SafeNativeMethods.xnResetSkeleton(this.InternalObject, user);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 29
0
        public void StopTrackingAll()
        {
            int status = SafeNativeMethods.xnStopTrackingAll(this.InternalObject);

            WrapperUtils.ThrowOnError(status);
        }
Esempio n. 30
0
        public void SetMirror(bool mirror)
        {
            int status = SafeNativeMethods.xnSetMirror(this.InternalObject, mirror);

            WrapperUtils.ThrowOnError(status);
        }