Beispiel #1
0
        public void SetJawPositions(VMS.TPS.Common.Model.Types.VRect <System.Double> positions)
        {
            if ((XC.Instance) != (null))
            {
                XC.Instance.Invoke(() =>
                {
                    _client.SetJawPositions(positions);
                }

                                   );
            }
            else
            {
                _client.SetJawPositions(positions);
            }
        }
Beispiel #2
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)));
            }
        }