public ESAPIX.Facade.API.Beam AddMLCArcBeam(VMS.TPS.Common.Model.Types.ExternalBeamMachineParameters machineParameters, System.Single[,] leafPositions, VMS.TPS.Common.Model.Types.VRect <System.Double> jawPositions, System.Double collimatorAngle, System.Double gantryAngle, System.Double gantryStop, VMS.TPS.Common.Model.Types.GantryDirection gantryDirection, System.Double patientSupportAngle, VMS.TPS.Common.Model.Types.VVector isocenter) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.AddMLCArcBeam(machineParameters, leafPositions, jawPositions, collimatorAngle, gantryAngle, gantryStop, gantryDirection, patientSupportAngle, isocenter)); if ((fromClient) == (null)) { return(null); } return(new ESAPIX.Facade.API.Beam(fromClient)); } )); return(vmsResult); } else { return((ESAPIX.Facade.API.Beam)(_client.AddMLCArcBeam(machineParameters, leafPositions, jawPositions, collimatorAngle, gantryAngle, gantryStop, gantryDirection, patientSupportAngle, isocenter))); } }
public ESAPIX.Facade.API.Beam AddVMATBeam(VMS.TPS.Common.Model.Types.ExternalBeamMachineParameters machineParameters, System.Collections.Generic.IEnumerable <System.Double> metersetWeights, System.Double collimatorAngle, System.Double gantryAngle, System.Double gantryStop, VMS.TPS.Common.Model.Types.GantryDirection gantryDirection, System.Double patientSupportAngle, VMS.TPS.Common.Model.Types.VVector isocenter) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.AddVMATBeam(machineParameters, metersetWeights, collimatorAngle, gantryAngle, gantryStop, gantryDirection, patientSupportAngle, isocenter)); if ((fromClient) == (null)) { return(null); } return(new ESAPIX.Facade.API.Beam(fromClient)); } )); return(vmsResult); } else { return((ESAPIX.Facade.API.Beam)(_client.AddVMATBeam(machineParameters, metersetWeights, collimatorAngle, gantryAngle, gantryStop, gantryDirection, patientSupportAngle, isocenter))); } }
public ESAPIX.Facade.API.Beam AddConformalArcBeam(VMS.TPS.Common.Model.Types.ExternalBeamMachineParameters machineParameters, System.Double collimatorAngle, System.Int32 controlPointCount, System.Double gantryAngle, System.Double gantryStop, VMS.TPS.Common.Model.Types.GantryDirection gantryDirection, System.Double patientSupportAngle, VMS.TPS.Common.Model.Types.VVector isocenter) { if ((XC.Instance) != (null)) { var vmsResult = (XC.Instance.GetValue(sc => { var fromClient = (_client.AddConformalArcBeam(machineParameters, collimatorAngle, controlPointCount, gantryAngle, gantryStop, gantryDirection, patientSupportAngle, isocenter)); if ((fromClient) == (null)) { return(null); } return(new ESAPIX.Facade.API.Beam(fromClient)); } )); return(vmsResult); } else { return((ESAPIX.Facade.API.Beam)(_client.AddConformalArcBeam(machineParameters, collimatorAngle, controlPointCount, gantryAngle, gantryStop, gantryDirection, patientSupportAngle, isocenter))); } }