You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug] I added TrackballRotateTool, ZoomTool, PanTool when I was rendering 3D images using volume, and the image position was wrong when I switched tools
#1631
Closed
woaihengniu opened this issue
Nov 28, 2024
· 0 comments
· Fixed by #1700
rendering 3D images using volume, Add TrackballRotateTool, ZoomTool, PanTool, I first activate Pan tool or zoom tool, move image or zoom image, after disabling pan tool or zoom tool, activate TrackballRotateTool, The position of the image is returned to the original rendering position and the state of panning or scaling is cleared
Describe the Bug
rendering 3D images using volume, Add TrackballRotateTool, ZoomTool, PanTool, I first activate Pan tool or zoom tool, move image or zoom image, after disabling pan tool or zoom tool, activate TrackballRotateTool, The position of the image is returned to the original rendering position and the state of panning or scaling is cleared
Steps to Reproduce
const addTolls = () => {
addTool(TrackballRotateTool);
toolGroup3d.addTool(TrackballRotateTool.toolName, {
configuration: { volumeId },
});
addTool(ZoomTool);
toolGroup3d.addTool(ZoomTool.toolName, {
configuration: { volumeId },
});
addTool(PanTool);
toolGroup3d.addTool(PanTool.toolName, {
configuration: { volumeId },
});
}
const activeTool = (index) => {
toolGroup3d.setToolDisabled(ZoomTool.toolName);
toolGroup3d.setToolDisabled(PanTool.toolName);
toolGroup3d.setToolDisabled(TrackballRotateTool.toolName);
if (isActiveBack.value == 0) {
toolGroup3d.setToolEnabled(TrackballRotateTool.toolName)
toolGroup3d.setToolActive(TrackballRotateTool.toolName, {
bindings: [
{
mouseButton: MouseBindings.Primary, // Left Click
},
],
});
}
The current behavior
The state of the image after panning or zooming is changed when using the TrackballRotateTool
The expected behavior
The state of the image does not change when you use the TrackballRotateTool after panning or zooming the image
OS
win10
Node version
v18.20.4
Browser
Microsoft Edge 128.0.2739.79
The text was updated successfully, but these errors were encountered: