public void Get_DW_Param_Test() { Exposure thisExpo = new Exposure(); thisExpo.expo = new double[16]; thisExpo.SR = new double[16]; thisExpo.dispH = new double[16]; for (int i = 0; i < 16; i++) { thisExpo.expo[i] = i; thisExpo.SR[i] = 0.1 + (double)i / 10; thisExpo.dispH[i] = 10 + 10 * i; } Assert.AreEqual(thisExpo.GetDW_Param(0, "Expo"), 8, 1e-6, "Wrong DW Expo Test 1"); Assert.AreEqual(thisExpo.GetDW_Param(3, "Expo"), 11, 1e-6, "Wrong DW Expo Test 2"); Assert.AreEqual(thisExpo.GetDW_Param(12, "Expo"), 4, 1e-6, "Wrong DW Expo Test 3"); Assert.AreEqual(thisExpo.GetDW_Param(4, "SR"), 1.3, 1e-6, "Wrong DW SR Test 4"); Assert.AreEqual(thisExpo.GetDW_Param(9, "SR"), 0.2, 1e-6, "Wrong DW SR Test 5"); Assert.AreEqual(thisExpo.GetDW_Param(15, "SR"), 0.8, 1e-6, "Wrong DW SR Test 6"); Assert.AreEqual(thisExpo.GetDW_Param(1, "DH"), 100, 1e-6, "Wrong DW DH Test 7"); Assert.AreEqual(thisExpo.GetDW_Param(8, "DH"), 10, 1e-6, "Wrong DW DH Test 8"); Assert.AreEqual(thisExpo.GetDW_Param(14, "DH"), 70, 1e-6, "Wrong DW DH Test 9"); }
public override void OnPlayableCreate(Playable playable) { base.OnPlayableCreate(playable); var layer = LayerMask.NameToLayer("PostProcess Volumes"); if (layer == -1) { GameDebug.LogWarning("Unable to find layer mask for camera fader"); } var gameObject = new GameObject() { name = "ScreenFaderMixerBehaviour Quick Volume", layer = layer, hideFlags = HideFlags.HideAndDontSave }; m_FadeVolume = gameObject.AddComponent <Volume>(); m_FadeVolume.priority = 100.0f; m_FadeVolume.isGlobal = true; var profile = m_FadeVolume.profile; m_Exposure = profile.Add <Exposure>(); m_Exposure.mode.Override(ExposureMode.Automatic); m_Exposure.compensation.Override(0); }
public ActionResult LoadExposure() { // TODO: Align RiskWeb and ORE folders on local machines! // Linux //string root = "/home/anders/developer/git/ore/Engine"; //string root = "/app/Resources/"; //string root = "/home/anders/developer/git/RiskWeb/Resources"; string root = _config.Value.OreWindowsRoot; string csv_name1 = string.Format("{0}/{1}", root, "Examples/Example_1/Output/exposure_trade_Swap_20y.csv"); string csv_name2 = string.Format("{0}/{1}", root, "Examples/Example_1/Output/swaption_npv.csv"); List <double> time = GetData(csv_name1, 2).Select(t => Math.Round(t, 1)).ToList(); List <double> values1 = GetData(csv_name1, 3); List <double> values2 = GetData(csv_name1, 4); //List<double> values3 = GetData(csv_name1, val_colidx_1); Exposure model = new Exposure() { DisplayName = "Swaption", Time = time, Values1 = values1, Values2 = values2 }; return(View(model)); }
public void CalcSRDHWithSmallerR_Test() { Continuum thisInst = new Continuum(""); string Filename = testingFolder + "\\TopoInfo testing.cfm"; thisInst.Open(Filename); thisInst.topo.GetElevsAndSRDH_ForCalcs(thisInst, null, false); // Test 1 int thisX = 712026; int thisY = 4539040; double thisElev = 221.6944; int minRadius = 6000; int maxRadius = 8000; Exposure thisExpo = new Exposure(); Exposure smallerExposure = thisInst.topo.CalcExposures(thisX, thisY, thisElev, minRadius, 1.0f, 1, thisInst.topo, 16); thisInst.topo.CalcSRDH(ref smallerExposure, thisX, thisY, minRadius, 1.0f, 16); thisInst.topo.CalcSRDHwithSmallerRadius(ref thisExpo, thisX, thisY, maxRadius, 1.0f, 1, minRadius, smallerExposure, 16); StreamReader sr = new StreamReader(testingFolder + "\\CalcSRDH Test 2.csv"); for (int i = 0; i < 16; i++) { string thisData = sr.ReadLine(); string[] parsedData = thisData.Split(','); Assert.AreEqual(Convert.ToDouble(parsedData[0]), thisExpo.SR[i], 0.05, "Wrong SR from Smaller R Test 1 WD =" + i); Assert.AreEqual(Convert.ToDouble(parsedData[1]), thisExpo.dispH[i], 0.05, "Wrong DH from Smaller R Test 1 WD =" + i); } sr.Close(); thisInst.Close(); }
public void CalcExposuresWithSmallerR_Test() { Continuum thisInst = new Continuum(""); string Filename = testingFolder + "\\TopoInfo testing.cfm"; thisInst.Open(Filename); thisInst.topo.GetElevsAndSRDH_ForCalcs(thisInst, null, false); // Test 1 int thisX = 711325; int thisY = 4552918; double thisElev = 217.823; int minRadius = 8000; int maxRadius = 10000; Exposure smallerExposure = thisInst.topo.CalcExposures(thisX, thisY, thisElev, minRadius, 1.0f, 1, thisInst.topo, 16); Exposure thisExpo = thisInst.topo.CalcExposuresWithSmallerRadius(thisX, thisY, thisElev, maxRadius, 1.0f, 1, minRadius, smallerExposure, 16); StreamReader sr = new StreamReader(testingFolder + "\\CalcExposures Test 3.txt"); for (int i = 0; i < 16; i++) { string thisData = sr.ReadLine(); Assert.AreEqual(Convert.ToDouble(thisData), thisExpo.expo[i], 0.05, "Wrong Exposure from Smaller R Test 1 WD =" + i); } sr.Close(); thisInst.Close(); }
/// <summary> /// Initializes a new instance of the ModifierSignature class /// </summary> /// <param name="exposure"></param> /// <param name="fulltypename"></param> /// <param name="name"></param> /// <param name="parameters"></param> public ModifierSignature(Exposure exposure, string fulltypename, string name, string[] parameters) { Exposure = new[] { exposure }; FullTypeName = fulltypename; Name = name; Parameters = parameters; }
public async Task <List <Exposure> > GetCreditBureauExposureIndividual(List <Exposure> listExposure, RetrieveCreditBureauExposureCommand request, int partyId) { try { var _party = await _involvedPartyRepository.GetPartyGeneralInformation(request.ApplicationNumber, partyId, "employment-data,household-info,financial-profile,contact-points,credit-bureau,product-usage"); var checkBalanceList = _configurationService.GetEffective("offer/exposure/balance-arrangement-kinds", "term-loan").Result; var creditArrangementTypes = _configurationService.GetEffective("offer/exposure/credit-bureau-placement-kinds", "term-loan,term-loan-debtor,overdraft-facility,credit-facility,credit-card-facility").Result.Split(","); if (_party.PartyKind == PartyKind.Individual) { var ind = (IndividualParty)_party; var listExposures = request.CreditBureauExposures.Where(p => p.PartyId.Equals(ind.PartyId.ToString())).ToList(); if (listExposure != null) { foreach (var exp in listExposures) { if (creditArrangementTypes.Contains(exp.Kind)) { Exposure exposure = new Exposure { AccountNumber = "", PartyId = ind.CustomerNumber, Currency = exp.Currency, ExposureApprovedInSourceCurrency = exp.ExposureInSourceCurrency ?? 0, CustomerName = ind.CustomerName, ArrangementKind = ArrangementKind.OtherProductArrangement, Term = "P0M", isBalance = checkBalanceList.Contains(exp.Kind), AnnuityInSourceCurrency = exp.AnnuityInSourceCurrency ?? 0, RiskCategory = exp.RiskCategory, ExposureOutstandingAmountInSourceCurrency = exp.ExposureDebtInSourceCurrency ?? 0 }; var kind = EnumUtils.ToEnum <ArrangementKind>(exp.Kind); if (kind != null) { exposure.ArrangementKind = kind.Value; } if (exp.EndDate != null && exp.StartDate != null) { int months = ((exp.EndDate.Value.Year - exp.StartDate.Value.Year) * 12) + exp.EndDate.Value.Month - exp.StartDate.Value.Month; exposure.Term = "P" + months / 12 + "Y" + months % 12 + "M"; } listExposure.Add(exposure); } } } } return(listExposure); } catch (Exception ex) { _logger.LogError("Updating credit bureau exposure data for application {applicationNumber} has failed. Error: " + ex.Message, request.ApplicationNumber); return(null); } }
private async Task <bool> CalculateExposuresForApplication(OfferApplication application, ExposureList exposureList) { try { if (application.ArrangementRequests == null) { application = await _applicationRepository.GetAsync(application.ApplicationId, "arrangement-requests"); } var checkBalanceList = _configurationService.GetEffective("offer/exposure/balance-arrangement-kinds", "term-loan").Result; var creditArrangementTypes = EnumUtils.GetEnumPropertiesForListString <ArrangementKind>("term-loan,overdraft-facility,credit-facility,credit-card-facility"); var arrangements = application.ArrangementRequests .Where(x => (x.Enabled ?? false) && creditArrangementTypes.Contains(x.ArrangementKind.GetValueOrDefault())) .ToList(); foreach (var arr in arrangements) { // due to abovementioned and selected arrangement kinds we can do this var financial = (FinanceServiceArrangementRequest)arr; var termMonths = 0; if (!string.IsNullOrEmpty(financial.Term) && financial.Term.StartsWith("P")) { termMonths = Utility.GetMonthsFromPeriod(financial.Term); } else if (!string.IsNullOrEmpty(financial.Term)) { termMonths = Convert.ToInt32(financial.Term); } string riskCategory = ResolveRiskCategory(arr.ArrangementKind); Exposure exp = new Exposure { PartyId = application.CustomerNumber, CustomerName = application.CustomerName, ArrangementKind = arr.ArrangementKind, Term = financial.Term != null ? "P" + termMonths / 12 + "Y" + termMonths % 12 + "M" : "P0M", isBalance = checkBalanceList.Contains(StringExtensions.ToKebabCase(arr.ArrangementKind.ToString())) ? true : false, AccountNumber = arr.ApplicationNumber + "/" + arr.ArrangementRequestId, Currency = financial.Currency, ExposureApprovedInSourceCurrency = financial.Amount, AnnuityInSourceCurrency = financial.TotalAnnuity, ExposureOutstandingAmountInSourceCurrency = financial.Amount, RiskCategory = riskCategory }; if (arr.ArrangementKind == ArrangementKind.TermLoan) { var termLoan = (TermLoanRequest)arr; exp.AnnuityInSourceCurrency = termLoan.Annuity; } exposureList.Exposures.Add(exp); } } catch (Exception e) { _logger.LogError(e, "CalculateExposuresForApplication exception"); throw e; } return(true); }
public override int GetHashCode() { int total = Exposure.GetHashCode() + Name.GetHashCode(); foreach (var param in Parameters) { total += param.GetHashCode(); } return(total); }
public ActuatorManagementOptions(IConfiguration config) : base(config) { if (string.IsNullOrEmpty(Path)) { Path = DEFAULT_ACTUATOR_PATH; } Exposure = new Exposure(config); }
public override void OnPlayableDestroy(Playable playable) { m_FirstFrameHappened = false; m_FadeVolume.enabled = false; GameObject.DestroyImmediate(m_FadeVolume.gameObject); m_FadeVolume = null; GameObject.DestroyImmediate(m_Exposure); m_Exposure = null; }
public void ExposureReturnsDefaults() { var appSettings = new Dictionary <string, string>(); var config = new ConfigurationBuilder().AddInMemoryCollection(appSettings).Build(); var exp = new Exposure(config); Assert.Contains("health", exp.Include); Assert.Contains("info", exp.Include); Assert.Null(exp.Exclude); }
public void CalcSRDH_Test() { Continuum thisInst = new Continuum(""); string Filename = testingFolder + "\\TopoInfo testing.cfm"; thisInst.Open(Filename); thisInst.topo.GetElevsAndSRDH_ForCalcs(thisInst, null, false); // Test 1 int thisX = 694370; int thisY = 4537997; double thisElev = 232.3494; int radius = 4000; Exposure thisExpo = thisInst.topo.CalcExposures(thisX, thisY, thisElev, radius, 1.0f, 1, thisInst.topo, 16); thisInst.topo.CalcSRDH(ref thisExpo, thisX, thisY, radius, 1.0f, 16); StreamReader sr = new StreamReader(testingFolder + "\\CalcSRDH Test 1.csv"); for (int i = 0; i < 16; i++) { string thisData = sr.ReadLine(); string[] parsedData = thisData.Split(','); Assert.AreEqual(Convert.ToDouble(parsedData[0]), thisExpo.SR[i], 0.05, "Wrong Surface Roughness Test 1 WD =" + i); Assert.AreEqual(Convert.ToDouble(parsedData[1]), thisExpo.dispH[i], 0.05, "Wrong Displacement Height Test 1 WD =" + i); } sr.Close(); // Test 2 thisX = 712026; thisY = 4539040; thisElev = 221.6944; radius = 8000; thisExpo = thisInst.topo.CalcExposures(thisX, thisY, thisElev, radius, 1.0f, 1, thisInst.topo, 16); thisInst.topo.CalcSRDH(ref thisExpo, thisX, thisY, radius, 1.0f, 16); sr = new StreamReader(testingFolder + "\\CalcSRDH Test 2.csv"); for (int i = 0; i < 16; i++) { string thisData = sr.ReadLine(); string[] parsedData = thisData.Split(','); Assert.AreEqual(Convert.ToDouble(parsedData[0]), thisExpo.SR[i], 0.05, "Wrong Surface Roughness Test 2 WD =" + i); Assert.AreEqual(Convert.ToDouble(parsedData[1]), thisExpo.dispH[i], 0.05, "Wrong Displacement Height Test 2 WD =" + i); } sr.Close(); thisInst.Close(); }
public void ExposureDoesntThrowOnInvalidSpringSettings() { var appSettings = new Dictionary <string, string>() { ["management:endpoints:web:exposure:include"] = "heapdump;env" }; var config = new ConfigurationBuilder().AddInMemoryCollection(appSettings).Build(); var exp = new Exposure(config); Assert.Contains("heapdump;env", exp.Include); Assert.Null(exp.Exclude); }
public void TestInvalidParameter() { var exposure = Exposure.CreateExposure(); try { exposure.AddParameter(Model.Tools.Common.ParameterName.Contrast, new Model.Tools.Common.Parameter <Double>(150)); Assert.Fail("The Parameter Name is not valid"); } catch (Exception) { Assert.IsTrue(true); } }
public void TestEarlyLifeAging() { _fakeDie.Value = 5; Character character = new Character(null, null, null); IAction action = new Exposure(new Ability(), 0); for (uint i = 21; i < 141; i++) { character.CommitAction(action); Assert.AreEqual(i, character.SeasonalAge); Assert.AreEqual(i, character.ApparentAge); } }
public Character CreateAge35Character() { Character character = new Character(null, null, null); IAction action = new Exposure(new Ability(), 0); for (uint i = 21; i < 141; i++) { character.CommitAction(action); Assert.AreEqual(i, character.SeasonalAge); Assert.AreEqual(i, character.ApparentAge); } return character; }
public void TestEarlyLifeAging() { _fakeDie.Value = 5; Character character = new Character(null, null, null); IAction action = new Exposure(new Ability(), 0); for (uint i = 21; i < 141; i++) { character.CommitAction(action); Assert.AreEqual(i, character.SeasonalAge); Assert.AreEqual(i, character.ApparentAge); } }
public Character CreateAge35Character() { Character character = new Character(null, null, null); IAction action = new Exposure(new Ability(), 0); for (uint i = 21; i < 141; i++) { character.CommitAction(action); Assert.AreEqual(i, character.SeasonalAge); Assert.AreEqual(i, character.ApparentAge); } return(character); }
/// <summary> /// Gets a signature for the specified type /// </summary> /// <param name="type"></param> /// <returns></returns> public static ModifierSignature GetModifierSignature(TypeDefinition type) { Exposure exposure = Exposure.Null; if (type.IsPublic || type.IsNestedPublic) { exposure = Exposure.Public; } else if (type.IsNotPublic || type.IsNestedPrivate) { exposure = Exposure.Private; } return(new ModifierSignature(exposure, type.FullName, type.Name, new string[0])); }
public void TestRepeatedParameter() { var exposure = Exposure.CreateExposure(); exposure.AddParameter(Model.Tools.Common.ParameterName.Exposure, new Model.Tools.Common.Parameter <Double>(1)); try { exposure.AddParameter(Model.Tools.Common.ParameterName.Exposure, new Model.Tools.Common.Parameter <Double>(150)); Assert.Fail("You need to remove the parameter first"); } catch (Exception) { Assert.IsTrue(true); } }
public void TestOutOfRangeParameter() { var exposure = Exposure.CreateExposure(); exposure.AddParameter(Model.Tools.Common.ParameterName.Exposure, new Model.Tools.Common.Parameter <double>(2)); try { exposure.ApplyTool(_target); Assert.Fail("Should be between -1 and 1"); } catch (Exception) { Assert.IsTrue(true); } }
public ActuatorManagementOptions(IConfiguration config) : base(config) { if (string.IsNullOrEmpty(Path)) { Path = DEFAULT_ACTUATOR_PATH; } if (Platform.IsCloudFoundry && Path.StartsWith("/cloudfoundryapplication", StringComparison.OrdinalIgnoreCase)) { Path = DEFAULT_ACTUATOR_PATH; // Override path set to /cloudfoundryapplication since it will be hidden by the cloudfoundry context actuators } Exposure = new Exposure(config); }
public void ExposureBindsToSpringSettings() { var appSettings = new Dictionary <string, string>() { ["management:endpoints:web:exposure:include"] = "heapdump,env", ["management:endpoints:web:exposure:exclude"] = "dbmigrations,info" }; var config = new ConfigurationBuilder().AddInMemoryCollection(appSettings).Build(); var exp = new Exposure(config); Assert.Contains("heapdump", exp.Include); Assert.Contains("env", exp.Include); Assert.Contains("dbmigrations", exp.Exclude); Assert.Contains("info", exp.Exclude); }
public void TestAging() { uint runningTally = 0; IAction action = new Exposure(new Ability(), 0); for (int i = 0; i < 100; i++) { _character = new Character(null, null, null); while (_character.Decrepitude < 75) { _character.CommitAction(action); } Trace.WriteLine("Age at Death: " + _character.SeasonalAge); runningTally += _character.SeasonalAge; } Trace.WriteLine("Average Age at Death: " + runningTally / 100); }
public void ExposureBindsToSteeltoeSettings() { var appSettings = new Dictionary <string, string>() { ["management:endpoints:actuator:exposure:include:0"] = "httptrace", ["management:endpoints:actuator:exposure:include:1"] = "dbmigrations", ["management:endpoints:actuator:exposure:exclude:0"] = "trace", ["management:endpoints:actuator:exposure:exclude:1"] = "env" }; var config = new ConfigurationBuilder().AddInMemoryCollection(appSettings).Build(); var exp = new Exposure(config); Assert.Contains("httptrace", exp.Include); Assert.Contains("dbmigrations", exp.Include); Assert.Contains("trace", exp.Exclude); Assert.Contains("env", exp.Exclude); }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendFormat("{0} {1} {2}(", Exposure.ToString().ToLower(), Utility.TransformType(ReturnType), Name); for (int i = 0; i < Parameters.Length; i++) { if (i > 0) { sb.AppendFormat(", {0}", Parameters[i]); } else { sb.Append(Parameters[i]); } } sb.Append(")"); return(sb.ToString()); }
public override string ToString() { if (!string.IsNullOrEmpty(ErrorMessage)) { return(" <tr> <td colspan=\"7\">" + ErrorMessage + "</td> </tr>"); } var color = Exposure == 0 ? "#606060" : OpenProfit > 0 ? "#0040E0" : "#BB0000"; return(string.Format(" <tr style=\"color:{7}\"> <td>{0}</td> <td>{1}</td> " + "<td>{2}</td> <td>{3}</td> <td>{4}</td> <td>{5}</td> <td>{6}</td> </tr>", AccountTitle, ClosedTrades.ToStringUniformMoneyFormat(), OpenedTrades.ToStringUniformMoneyFormat(), ClosedVolumeDepo.ToStringUniformMoneyFormat(), Exposure.ToStringUniformMoneyFormat(), OpenProfit.ToStringUniformMoneyFormat(), LastOpen.HasValue ? LastOpen.Value.ToStringUniform() : "-", color)); }
private void Start() { StartCoroutine(GetSettingsWhenInitialized()); cubemapEventListenerSet = onCubemapUpdate.GetPersistentEventCount() > 0; HDCameraData = XRCamera.GetComponent <HDAdditionalCameraData>(); if (!m_skyboxProfile.TryGet(out volumeSky)) { volumeSky = m_skyboxProfile.Add <HDRISky>(true); } if (!m_skyboxProfile.TryGet(out volumeExposure)) { volumeExposure = m_skyboxProfile.Add <Exposure>(true); } if (!m_skyboxProfile.TryGet(out volumeVSTWhiteBalance)) { volumeVSTWhiteBalance = m_skyboxProfile.Add <VSTWhiteBalance>(true); } }
public async Task <List <Exposure> > GetExposuresForArrangement(string accountsList, string arrangementKind, string customerNumber, string customerName, string term, string riskCategory) { var exposuresList = new List <Exposure>(); var checkBalanceList = _configurationService.GetEffective("offer/exposure/balance-arrangement-kinds", "term-loan").Result; // call account-data API to retrieve balances for accounts in this arrangement List <Balance> balanceList = await GetBalancesPerArrangementKind(accountsList, arrangementKind); var queryGroupAccountsByCurrency = from balance in balanceList group balance by new { balance.AccountNumber, balance.Currency } into newGroup select newGroup; foreach (var balanceGroup in queryGroupAccountsByCurrency) { Exposure exp = new Exposure { PartyId = customerNumber, CustomerName = customerName, ArrangementKind = EnumUtils.ToEnum <ArrangementKind>(arrangementKind), Term = term, isBalance = checkBalanceList.Contains(arrangementKind) ? true : false, AccountNumber = balanceGroup.Key.AccountNumber, Currency = balanceGroup.Key.Currency, ExposureApprovedInSourceCurrency = 0, RiskCategory = riskCategory }; foreach (var balance in balanceGroup) { if (balance.Direction.Equals("c")) { balance.Amount = -1 * balance.Amount; } exp.ExposureApprovedInSourceCurrency += balance.Amount; } exp.ExposureOutstandingAmountInSourceCurrency = exp.ExposureApprovedInSourceCurrency; exposuresList.Add(exp); } return(exposuresList); }
private void Start() { originalOpaqueValue = VarjoRendering.GetOpaque(); VarjoRendering.SetOpaque(false); cubemapEventListenerSet = onCubemapUpdate.GetPersistentEventCount() > 0; HDCameraData = xrCamera.GetComponent <HDAdditionalCameraData>(); if (!m_skyboxProfile.TryGet(out volumeSky)) { volumeSky = m_skyboxProfile.Add <HDRISky>(true); } if (!m_skyboxProfile.TryGet(out volumeExposure)) { volumeExposure = m_skyboxProfile.Add <Exposure>(true); } if (!m_skyboxProfile.TryGet(out volumeVSTWhiteBalance)) { volumeVSTWhiteBalance = m_skyboxProfile.Add <VSTWhiteBalance>(true); } }
public void WriteConfigFile(XmlTextWriter xmlWriter) { if (DeviceName.Length < 1) { DeviceName = "Settings " + DateTime.Now; } xmlWriter.WriteStartElement("CameraSettings"); Settings.WriteElement(xmlWriter, "DeviceName", DeviceName); Settings.WriteElement(xmlWriter, "DeviceNumber", DeviceNumber.ToString()); Settings.WriteElement(xmlWriter, "DeviceMode", DeviceMode.ToString()); Settings.WriteElement(xmlWriter, "Brightness", Brightness.ToString()); Settings.WriteElement(xmlWriter, "BrightnessAuto", BrightnessAuto.ToString()); Settings.WriteElement(xmlWriter, "Contrast", Contrast.ToString()); Settings.WriteElement(xmlWriter, "ContrastAuto", ContrastAuto.ToString()); Settings.WriteElement(xmlWriter, "Saturation", Saturation.ToString()); Settings.WriteElement(xmlWriter, "SaturationAuto", SaturationAuto.ToString()); Settings.WriteElement(xmlWriter, "Sharpness", Sharpness.ToString()); Settings.WriteElement(xmlWriter, "SharpnessAuto", SharpnessAuto.ToString()); Settings.WriteElement(xmlWriter, "Zoom", Zoom.ToString()); Settings.WriteElement(xmlWriter, "ZoomAuto", ZoomAuto.ToString()); Settings.WriteElement(xmlWriter, "Focus", Focus.ToString()); Settings.WriteElement(xmlWriter, "FocusAuto", FocusAuto.ToString()); Settings.WriteElement(xmlWriter, "Exposure", Exposure.ToString()); Settings.WriteElement(xmlWriter, "ExposureAuto", ExposureAuto.ToString()); Settings.WriteElement(xmlWriter, "FlipImage", FlipImage.ToString()); xmlWriter.WriteEndElement(); }
public static void psmove_tracker_set_exposure(PSMoveTracker tracker, Exposure exposure) { PSMoveapiCsharpPinvoke.psmove_tracker_set_exposure(PSMoveTracker.getCPtr(tracker), (int) exposure); }
public static void psmove_tracker_set_exposure(PSMoveTracker tracker, Exposure exposure) { psmoveapi_csharpPINVOKE.psmove_tracker_set_exposure(PSMoveTracker.getCPtr(tracker), (int)exposure); }