Example #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");
            }
        }
Example #2
0
 private static extern OpenNI.Status Device_setImageRegistrationMode(
     IntPtr objectHandler,
     ImageRegistrationMode mode);
Example #3
0
 private static extern bool Device_isImageRegistrationModeSupported(
     IntPtr objectHandler,
     ImageRegistrationMode mode);
Example #4
0
 public bool IsImageRegistrationModeSupported(ImageRegistrationMode mode)
 {
     return(Device_isImageRegistrationModeSupported(this.Handle, mode));
 }
Example #5
0
 private static extern OpenNI.Status Device_setImageRegistrationMode(
     IntPtr objectHandler, 
     ImageRegistrationMode mode);
Example #6
0
 private static extern bool Device_isImageRegistrationModeSupported(
     IntPtr objectHandler, 
     ImageRegistrationMode mode);
Example #7
0
 public bool IsImageRegistrationModeSupported(ImageRegistrationMode mode)
 {
     return Device_isImageRegistrationModeSupported(this.Handle, mode);
 }