public ReadOnlyVolumeSlicerParams(IVolumeSlicerParams source)
			{
				if (source.SlicingPlaneRotation != null)
					_slicingPlaneRotation = new Matrix(source.SlicingPlaneRotation);
				if (source.SliceThroughPointPatient != null)
					_sliceThroughPointPatient = new Vector3D(source.SliceThroughPointPatient);
				_description = source.Description;
				_interpolationMode = source.InterpolationMode;
				_sliceExtentXMillimeters = source.SliceExtentXMillimeters;
				_sliceExtentYMillimeters = source.SliceExtentYMillimeters;
				_sliceSpacing = source.SliceSpacing;
			}
 public ReadOnlyVolumeSlicerParams(IVolumeSlicerParams source)
 {
     if (source.SlicingPlaneRotation != null)
     {
         _slicingPlaneRotation = new Matrix(source.SlicingPlaneRotation);
     }
     if (source.SliceThroughPointPatient != null)
     {
         _sliceThroughPointPatient = new Vector3D(source.SliceThroughPointPatient);
     }
     _description             = source.Description;
     _interpolationMode       = source.InterpolationMode;
     _sliceExtentXMillimeters = source.SliceExtentXMillimeters;
     _sliceExtentYMillimeters = source.SliceExtentYMillimeters;
     _sliceSpacing            = source.SliceSpacing;
 }
Example #3
0
        private static VolumeInterpolationMode Convert(VolumeSlicerInterpolationMode mode)
        {
            switch (mode)
            {
            case VolumeSlicerInterpolationMode.NearestNeighbor:
                return(VolumeInterpolationMode.NearestNeighbor);

            case VolumeSlicerInterpolationMode.Linear:
                return(VolumeInterpolationMode.Linear);

            case VolumeSlicerInterpolationMode.Cubic:
                return(VolumeInterpolationMode.Cubic);

            default:
                throw new ArgumentOutOfRangeException("mode");
            }
        }
Example #4
0
		private static VolumeInterpolationMode Convert(VolumeSlicerInterpolationMode mode)
		{
			switch (mode)
			{
				case VolumeSlicerInterpolationMode.NearestNeighbor:
					return VolumeInterpolationMode.NearestNeighbor;

				case VolumeSlicerInterpolationMode.Linear:
					return VolumeInterpolationMode.Linear;
				case VolumeSlicerInterpolationMode.Cubic:
					return VolumeInterpolationMode.Cubic;
				default:
					throw new ArgumentOutOfRangeException("mode");
			}
		}