feat/vtk-3d-view #7

Merged
gaozheng merged 301 commits from feat/vtk-3d-view into main 2026-06-27 18:43:52 +08:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit ff3ce27978 - Show all commits

View File

@ -76,6 +76,10 @@ SliceTool::SliceTool(vtkImageData* image, vtkRenderWindowInteractor* interactor,
}
widget_->On();
// 关闭 widget 自身的鼠标交互(窗位/光标/拖动):否则它会"吃掉"落在切片面上的左键,
// 自定义 PickInteractorStyle 收不到 → 单击选中/双击正视/绕点旋转全失效(实测根因)。
// 关掉后切片仍正常显示,点击穿透到样式;切面移动改由滚轮(advance)驱动。
widget_->InteractionOff();
}
SliceTool::~SliceTool() { close(); }