public void WriteTo(PXCMCapture.Device device, CameraSettings oldSettings) { if (oldSettings.DepthConfidenceThreshold != DepthConfidenceThreshold) device.SetDepthConfidenceThreshold(DepthConfidenceThreshold); if (oldSettings.IVCAMAccuracy != IVCAMAccuracy) device.SetIVCAMAccuracy((PXCMCapture.Device.IVCAMAccuracy)IVCAMAccuracy); if (oldSettings.IVCAMFilterOption != IVCAMFilterOption) device.SetIVCAMFilterOption(IVCAMFilterOption); if (oldSettings.IVCAMLaserPower != IVCAMLaserPower) device.SetIVCAMLaserPower(IVCAMLaserPower); if (oldSettings.IVCAMMotionRangeTradeOff != IVCAMMotionRangeTradeOff) device.SetIVCAMMotionRangeTradeOff(IVCAMMotionRangeTradeOff); this.changed = false; }