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 13 additions and 1 deletions
Showing only changes of commit 2934bacd34 - Show all commits

View File

@ -103,7 +103,19 @@ void VtkSceneController::rebuildInternal() {
});
}
if (showCurtain_) {
for (const auto& dsId : checkedDs_) view_.addCurtain(grid(dsId), colorScale(dsId));
for (const auto& dsId : checkedDs_) {
sceneRepo_.loadSection(
dsId,
[self, gen](data::SectionData s) {
if (!self || gen != self->rebuildGeneration_) return; // 已析构/迟到:丢弃
self->view_.addCurtain(s.grid, s.scale);
if (!self->inRebuild_) self->view_.render(false); // 同步路径由末尾统一 render
},
[self, gen](const std::string& m) {
if (!self || gen != self->rebuildGeneration_) return;
emit self->loadFailed(QString::fromStdString(m));
});
}
}
if (showVoxel_) {
for (const auto& dsId : checkedDs_) {