Example #1
0
        public ESAPIX.Facade.API.Beam AddStaticBeam(VMS.TPS.Common.Model.Types.ExternalBeamMachineParameters machineParameters, VMS.TPS.Common.Model.Types.VRect <System.Double> jawPositions, System.Double collimatorAngle, System.Double gantryAngle, 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.AddStaticBeam(machineParameters, jawPositions, collimatorAngle, gantryAngle, patientSupportAngle, isocenter));
                    if ((fromClient) == (null))
                    {
                        return(null);
                    }

                    return(new ESAPIX.Facade.API.Beam(fromClient));
                }

                                                                     ));
                return(vmsResult);
            }
            else
            {
                return((ESAPIX.Facade.API.Beam)(_client.AddStaticBeam(machineParameters, jawPositions, collimatorAngle, gantryAngle, patientSupportAngle, isocenter)));
            }
        }
Example #2
0
        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)));
            }
        }
Example #3
0
        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)));
            }
        }