public VMS.TPS.Common.Model.Types.VVector InverseTransformPoint(VMS.TPS.Common.Model.Types.VVector pt) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.InverseTransformPoint(pt)); if (fromClient.Equals(default(VMS.TPS.Common.Model.Types.VVector))) { return(default(VMS.TPS.Common.Model.Types.VVector)); } return((VMS.TPS.Common.Model.Types.VVector)(fromClient)); } )); return(vmsResult); } else { return((VMS.TPS.Common.Model.Types.VVector)(_client.InverseTransformPoint(pt))); } }
public VMS.TPS.Common.Model.Types.ImageProfile GetImageProfile(VMS.TPS.Common.Model.Types.VVector start, VMS.TPS.Common.Model.Types.VVector stop, System.Double[] preallocatedBuffer) { if ((XC.Instance) != (null)) { var vmsResult = (XC.Instance.GetValue(sc => { var fromClient = (_client.GetImageProfile(start, stop, preallocatedBuffer)); if (fromClient.Equals(default(VMS.TPS.Common.Model.Types.ImageProfile))) { return(default(VMS.TPS.Common.Model.Types.ImageProfile)); } return((VMS.TPS.Common.Model.Types.ImageProfile)(fromClient)); } )); return(vmsResult); } else { return((VMS.TPS.Common.Model.Types.ImageProfile)(_client.GetImageProfile(start, stop, preallocatedBuffer))); } }
public VMS.TPS.Common.Model.Types.VVector UserToDicom(VMS.TPS.Common.Model.Types.VVector user, ESAPIX.Facade.API.PlanSetup planSetup) { if ((XC.Instance) != (null)) { var vmsResult = (XC.Instance.GetValue(sc => { var fromClient = (_client.UserToDicom(user, planSetup._client)); if (fromClient.Equals(default(VMS.TPS.Common.Model.Types.VVector))) { return(default(VMS.TPS.Common.Model.Types.VVector)); } return((VMS.TPS.Common.Model.Types.VVector)(fromClient)); } )); return(vmsResult); } else { return((VMS.TPS.Common.Model.Types.VVector)(_client.UserToDicom(user, planSetup))); } }
public VMS.TPS.Common.Model.Types.SegmentProfile GetSegmentProfile(VMS.TPS.Common.Model.Types.VVector start, VMS.TPS.Common.Model.Types.VVector stop, System.Collections.BitArray preallocatedBuffer) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.GetSegmentProfile(start, stop, preallocatedBuffer)); if (fromClient.Equals(default(VMS.TPS.Common.Model.Types.SegmentProfile))) { return(default(VMS.TPS.Common.Model.Types.SegmentProfile)); } return((VMS.TPS.Common.Model.Types.SegmentProfile)(fromClient)); } )); return(vmsResult); } else { return((VMS.TPS.Common.Model.Types.SegmentProfile)(_client.GetSegmentProfile(start, stop, preallocatedBuffer))); } }
public System.Boolean IsPointInsideSegment(VMS.TPS.Common.Model.Types.VVector point) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.IsPointInsideSegment(point)); if (fromClient.Equals(default(System.Boolean))) { return(default(System.Boolean)); } return((System.Boolean)(fromClient)); } )); return(vmsResult); } else { return((System.Boolean)(_client.IsPointInsideSegment(point))); } }
public VMS.TPS.Common.Model.Types.VVector DicomToUser(VMS.TPS.Common.Model.Types.VVector dicom, ESAPIX.Facade.API.PlanSetup planSetup) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.DicomToUser(dicom, planSetup._client)); if (fromClient.Equals(default(VMS.TPS.Common.Model.Types.VVector))) { return(default(VMS.TPS.Common.Model.Types.VVector)); } return((VMS.TPS.Common.Model.Types.VVector)(fromClient)); } )); return(vmsResult); } else { return((VMS.TPS.Common.Model.Types.VVector)(_client.DicomToUser(dicom, planSetup))); } }
public VMS.TPS.Common.Model.Types.DoseValue GetDoseToPoint(VMS.TPS.Common.Model.Types.VVector at) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.GetDoseToPoint(at)); 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.GetDoseToPoint(at))); } }
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 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))); } }
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))); } }