WB-491 Behavior of Viewport when Overlay ToolBox Vertical Size is Changed:...
WB-491 Behavior of Viewport when Overlay ToolBox Vertical Size is Changed: When the graphics region is changed (by changing the size of the window or a toolbox size), the coordinates of the graphics region are not updated properly and unexpected surface scalings may occur (surfaces may get small). There are two reasons. (1) The default view was, in the early days of wb_view, a dorsal view with the anterior pole at the top. Thus, the vertical coordinate range for the window was set to be just a bit larger then the surface's Y-coordinate range. However, quite a while ago, the default surface view was changed to a lateral view with the dorsal pole at the top. And so, we were scaling the graphics region for a dorsal view but the default view had been changed to a lateral view leaving extra, empty space above and below the surface. (2) The aspect ratio of the graphics region was not accounted for when setting the cooordinate range of the graphics region. As a result, the graphics region's vertical coordinate range was always set to match the surface's vertical (now Z-axis) coordinate range. However, when the viewport was narrow, the parts of the surface were clipped on the left and right edges of the graphics region. Now the aspect ratio is examined and the graphics region's coordinate range now includes both the horizontal and vertical ranges so that parts of a surface do not get clipped on an edge when the graphics region's size changes.
parent
0862d8fd
Please register or sign in to comment