ClearCanvas.ImageViewer.Graphics.MammographyImageSpatialTransform.GetNormativeOrientationVectors C# (CSharp) Метод

GetNormativeOrientationVectors() приватный статический Метод

private static GetNormativeOrientationVectors ( string laterality, Vector3D &headVector, Vector3D &leftVector, Vector3D &posteriorVector ) : void
laterality string
headVector Vector3D
leftVector Vector3D
posteriorVector Vector3D
Результат void
		private static void GetNormativeOrientationVectors(string laterality, out Vector3D headVector, out Vector3D leftVector, out Vector3D posteriorVector)
		{
			headVector = leftVector = posteriorVector = null;
			if (string.IsNullOrEmpty(laterality))
				return;

			// head should always be up where possible
			headVector = new Vector3D(0, -1, 0);

			if (char.ToUpperInvariant(laterality[0]) == _lateralityLeft)
			{
				// when a left breast is shown, the chest should be oriented to the left on the screen and the patient's left side should be oriented up on the screen
				leftVector = new Vector3D(0, -1, 0);
				posteriorVector = new Vector3D(-1, 0, 0);
			}
			else if (char.ToUpperInvariant(laterality[0]) == _lateralityRight)
			{
				// when a right breast is shown, the chest should be oriented to the right on the screen and the patient's left side should be oriented down on the screen
				leftVector = new Vector3D(0, +1, 0);
				posteriorVector = new Vector3D(+1, 0, 0);
			}
		}