Класс WpfMprVisualizationController
В этом разделе
Позволяет просматривать различные срезы MPR в нескольких просмотрщиках изображений.
Объектная модель
Синтаксис
'Declaration
Public Class WpfMprVisualizationController
public class WpfMprVisualizationController
public __gc class WpfMprVisualizationController
public ref class WpfMprVisualizationController
Пример
Вот C#/VB.NET код, который демонстрирует, как отображать коронарные, сагиттальные и аксиальные срезы DICOM MPR в 3 просмотрщиках изображений.
''' <summary>
''' Displays the coronal, sagittal and axial DICOM MPR slices in 3 image viewers.
''' </summary>
''' <param name="sagittalViewer">The sagittal viewer.</param>
''' <param name="coronalViewer">The coronal viewer.</param>
''' <param name="axialViewer">The axial viewer.</param>
''' <param name="mprImage">The MPR image.</param>
Public Shared Sub DisplayThreePlanarSlicesInThreeViewers(sagittalViewer As Vintasoft.Imaging.Wpf.UI.WpfImageViewer, coronalViewer As Vintasoft.Imaging.Wpf.UI.WpfImageViewer, axialViewer As Vintasoft.Imaging.Wpf.UI.WpfImageViewer, mprImage As Vintasoft.Imaging.Dicom.Mpr.MprImage)
' create the MPR visualization controller
Dim controller As New Vintasoft.Imaging.Dicom.Mpr.Wpf.UI.WpfMprVisualizationController(mprImage, sagittalViewer, coronalViewer, axialViewer)
' add slices to the MPR visualization controller
Dim slices As Vintasoft.Imaging.Dicom.Mpr.MprSlice() = controller.AddThreeSlicesVisualization(mprImage.XLength / 2.0, System.Windows.Media.Colors.LightBlue, mprImage.YLength / 2.0, System.Windows.Media.Colors.Coral, mprImage.ZLength / 2.0, System.Windows.Media.Colors.Yellow)
' specify that the first slice must be shown in sagittalViewer
controller.ShowSliceInViewer(sagittalViewer, slices(0))
' specify that the second slice must be shown in coronalViewer
controller.ShowSliceInViewer(coronalViewer, slices(1))
' specify that the third slice must be shown in axialViewer
controller.ShowSliceInViewer(axialViewer, slices(2))
End Sub
/// <summary>
/// Displays the coronal, sagittal and axial DICOM MPR slices in 3 image viewers.
/// </summary>
/// <param name="sagittalViewer">The sagittal viewer.</param>
/// <param name="coronalViewer">The coronal viewer.</param>
/// <param name="axialViewer">The axial viewer.</param>
/// <param name="mprImage">The MPR image.</param>
public static void DisplayThreePlanarSlicesInThreeViewers(
Vintasoft.Imaging.Wpf.UI.WpfImageViewer sagittalViewer,
Vintasoft.Imaging.Wpf.UI.WpfImageViewer coronalViewer,
Vintasoft.Imaging.Wpf.UI.WpfImageViewer axialViewer,
Vintasoft.Imaging.Dicom.Mpr.MprImage mprImage)
{
// create the MPR visualization controller
Vintasoft.Imaging.Dicom.Mpr.Wpf.UI.WpfMprVisualizationController controller =
new Vintasoft.Imaging.Dicom.Mpr.Wpf.UI.WpfMprVisualizationController(
mprImage, sagittalViewer, coronalViewer, axialViewer);
// add slices to the MPR visualization controller
Vintasoft.Imaging.Dicom.Mpr.MprSlice[] slices = controller.AddThreeSlicesVisualization(
mprImage.XLength / 2.0, System.Windows.Media.Colors.LightBlue,
mprImage.YLength / 2.0, System.Windows.Media.Colors.Coral,
mprImage.ZLength / 2.0, System.Windows.Media.Colors.Yellow);
// specify that the first slice must be shown in sagittalViewer
controller.ShowSliceInViewer(sagittalViewer, slices[0]);
// specify that the second slice must be shown in coronalViewer
controller.ShowSliceInViewer(coronalViewer, slices[1]);
// specify that the third slice must be shown in axialViewer
controller.ShowSliceInViewer(axialViewer, slices[2]);
}
Иерархия наследования
System.Object
 Vintasoft.Imaging.Dicom.Mpr.Wpf.UI.WpfMprVisualizationController
Требования
Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5
Смотрите также