From b2753081420af9aa532014150f9f3d08887679e2 Mon Sep 17 00:00:00 2001 From: Steve Kauffman Date: Thu, 8 Nov 2018 13:45:29 -0800 Subject: [PATCH] Fix elevation-plane span settings in TestViewer There's an error in the initialization of the height/width parameters for the elevation plane (Z-Y plane, lower-left quadrant of TestViewer). Prior to the change, the lower-left "Z-Y plane" quadrant shows black. After the change, the lower-left "Z-Y plane" quadrant shows the correct image slice. --- TestViewer/MainWindow.xaml.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TestViewer/MainWindow.xaml.cs b/TestViewer/MainWindow.xaml.cs index 6fd7898..8eade2e 100644 --- a/TestViewer/MainWindow.xaml.cs +++ b/TestViewer/MainWindow.xaml.cs @@ -248,12 +248,12 @@ private void DrawImages (uint frame) bboxZY.origin_x = bbox.origin_x + bbox.dir1_x / 2; bboxZY.origin_y = bbox.origin_y + bbox.dir1_y / 2; bboxZY.origin_z = bbox.origin_z + bbox.dir1_z / 2; - bboxZY.dir1_x = bbox.dir3_x; - bboxZY.dir1_y = bbox.dir3_y; - bboxZY.dir1_z = bbox.dir3_z; - bboxZY.dir2_x = bbox.dir2_x; - bboxZY.dir2_y = bbox.dir2_y; - bboxZY.dir2_z = bbox.dir2_z; + bboxZY.dir1_x = bbox.dir2_x; + bboxZY.dir1_y = bbox.dir2_y; + bboxZY.dir1_z = bbox.dir2_z; + bboxZY.dir2_x = bbox.dir3_x; + bboxZY.dir2_y = bbox.dir3_y; + bboxZY.dir2_z = bbox.dir3_z; bboxZY.dir3_x = 0; bboxZY.dir3_y = 0; bboxZY.dir3_z = 0;