コード例 #1
0
        public Beam AddMLCArcBeam(ExternalBeamMachineParameters machineParameters, float[,] leafPositions,
                                  VRect <double> jawPositions, double collimatorAngle, double gantryAngle, double gantryStop,
                                  GantryDirection gantryDirection, double patientSupportAngle, VVector isocenter)
        {
            var local  = this;
            var retVal = X.Instance.CurrentContext.GetValue(sc =>
            {
                return(new Beam(local._client.AddMLCArcBeam(machineParameters, leafPositions, jawPositions,
                                                            collimatorAngle, gantryAngle, gantryStop, gantryDirection, patientSupportAngle, isocenter)));
            });

            return(retVal);
        }
コード例 #2
0
        public Beam AddVMATBeam(ExternalBeamMachineParameters machineParameters, IEnumerable <double> metersetWeights,
                                double collimatorAngle, double gantryAngle, double gantryStop, GantryDirection gantryDirection,
                                double patientSupportAngle, VVector isocenter)
        {
            var local  = this;
            var retVal = X.Instance.CurrentContext.GetValue(sc =>
            {
                return(new Beam(local._client.AddVMATBeam(machineParameters, metersetWeights, collimatorAngle,
                                                          gantryAngle, gantryStop, gantryDirection, patientSupportAngle, isocenter)));
            });

            return(retVal);
        }
コード例 #3
0
        public Beam AddConformalArcBeam(ExternalBeamMachineParameters machineParameters, double collimatorAngle,
                                        int controlPointCount, double gantryAngle, double gantryStop, GantryDirection gantryDirection,
                                        double patientSupportAngle, VVector isocenter)
        {
            var local  = this;
            var retVal = X.Instance.CurrentContext.GetValue(sc =>
            {
                return(new Beam(local._client.AddConformalArcBeam(machineParameters, collimatorAngle,
                                                                  controlPointCount, gantryAngle, gantryStop, gantryDirection, patientSupportAngle, isocenter)));
            });

            return(retVal);
        }