Пример #1
0
        internal static OniImageRegistrationMode ToNative(this ImageRegistrationMode imageRegistrationMode)
        {
            switch (imageRegistrationMode)
            {
            case ImageRegistrationMode.Off:
                return(OniImageRegistrationMode.ONI_IMAGE_REGISTRATION_OFF);

            case ImageRegistrationMode.DepthToColor:
                return(OniImageRegistrationMode.ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR);

            default:
                throw new ArgumentOutOfRangeException("imageRegistrationMode");
            }
        }
Пример #2
0
 private static extern OpenNI.Status Device_setImageRegistrationMode(
     IntPtr objectHandler,
     ImageRegistrationMode mode);
Пример #3
0
 private static extern bool Device_isImageRegistrationModeSupported(
     IntPtr objectHandler,
     ImageRegistrationMode mode);
Пример #4
0
 public bool IsImageRegistrationModeSupported(ImageRegistrationMode mode)
 {
     return(Device_isImageRegistrationModeSupported(this.Handle, mode));
 }
Пример #5
0
 private static extern OpenNI.Status Device_setImageRegistrationMode(
     IntPtr objectHandler, 
     ImageRegistrationMode mode);
Пример #6
0
 private static extern bool Device_isImageRegistrationModeSupported(
     IntPtr objectHandler, 
     ImageRegistrationMode mode);
Пример #7
0
 public bool IsImageRegistrationModeSupported(ImageRegistrationMode mode)
 {
     return Device_isImageRegistrationModeSupported(this.Handle, mode);
 }