public void SetPrescription(System.Int32 numberOfFractions, VMS.TPS.Common.Model.Types.DoseValue prescribedDosePerFraction, System.Double prescribedPercentage) { if ((XC.Instance) != (null)) { XC.Instance.Invoke(() => { _client.SetPrescription(numberOfFractions, prescribedDosePerFraction, prescribedPercentage); } ); } else { _client.SetPrescription(numberOfFractions, prescribedDosePerFraction, prescribedPercentage); } }
public void ConvertDoseLevelToStructure(ESAPIX.Facade.API.Dose dose, VMS.TPS.Common.Model.Types.DoseValue doseLevel) { if ((XC.Instance.CurrentContext) != (null)) { XC.Instance.CurrentContext.Thread.Invoke(() => { _client.ConvertDoseLevelToStructure(dose._client, doseLevel); } ); } else { _client.ConvertDoseLevelToStructure(dose, doseLevel); } }
public System.Int32 DoseValueToVoxel(VMS.TPS.Common.Model.Types.DoseValue doseValue) { if ((XC.Instance) != (null)) { var vmsResult = (XC.Instance.GetValue(sc => { var fromClient = (_client.DoseValueToVoxel(doseValue)); if (fromClient.Equals(default(System.Int32))) { return(default(System.Int32)); } return((System.Int32)(fromClient)); } )); return(vmsResult); } else { return((System.Int32)(_client.DoseValueToVoxel(doseValue))); } }
public VMS.TPS.Common.Model.Types.DoseValue GetAbsoluteBeamDoseValue(VMS.TPS.Common.Model.Types.DoseValue relative) { if ((XC.Instance) != (null)) { var vmsResult = (XC.Instance.GetValue(sc => { var fromClient = (_client.GetAbsoluteBeamDoseValue(relative)); if (fromClient.Equals(default(VMS.TPS.Common.Model.Types.DoseValue))) { return(default(VMS.TPS.Common.Model.Types.DoseValue)); } return((VMS.TPS.Common.Model.Types.DoseValue)(fromClient)); } )); return(vmsResult); } else { return((VMS.TPS.Common.Model.Types.DoseValue)(_client.GetAbsoluteBeamDoseValue(relative))); } }
public System.Double GetVolumeAtDose(ESAPIX.Facade.API.Structure structure, VMS.TPS.Common.Model.Types.DoseValue dose, VMS.TPS.Common.Model.Types.VolumePresentation requestedVolumePresentation) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.GetVolumeAtDose(structure._client, dose, requestedVolumePresentation)); if (fromClient.Equals(default(System.Double))) { return(default(System.Double)); } return((System.Double)(fromClient)); } )); return(vmsResult); } else { return((System.Double)(_client.GetVolumeAtDose(structure, dose, requestedVolumePresentation))); } }
public ESAPIX.Facade.API.OptimizationPointObjective AddPointObjective(ESAPIX.Facade.API.Structure structure, VMS.TPS.Common.Model.Types.OptimizationObjectiveOperator objectiveOperator, VMS.TPS.Common.Model.Types.DoseValue dose, System.Double volume, System.Double priority) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.AddPointObjective(structure._client, objectiveOperator, dose, volume, priority)); if ((fromClient) == (null)) { return(null); } return(new ESAPIX.Facade.API.OptimizationPointObjective(fromClient)); } )); return(vmsResult); } else { return((ESAPIX.Facade.API.OptimizationPointObjective)(_client.AddPointObjective(structure, objectiveOperator, dose, volume, priority))); } }
public ESAPIX.Facade.API.OptimizationMeanDoseObjective AddMeanDoseObjective(ESAPIX.Facade.API.Structure structure, VMS.TPS.Common.Model.Types.DoseValue dose, System.Double priority) { if ((XC.Instance) != (null)) { var vmsResult = (XC.Instance.GetValue(sc => { var fromClient = (_client.AddMeanDoseObjective(structure._client, dose, priority)); if ((fromClient) == (null)) { return(null); } return(new ESAPIX.Facade.API.OptimizationMeanDoseObjective(fromClient)); } )); return(vmsResult); } else { return((ESAPIX.Facade.API.OptimizationMeanDoseObjective)(_client.AddMeanDoseObjective(structure, dose, priority))); } }