fix(vtk): 本阶段勾选3D数据集渲染样本帘面(LocalSample仅样本;Api3dRepository就绪后改真id)
This commit is contained in:
parent
575529e5a0
commit
624cdcbb2e
|
|
@ -373,8 +373,14 @@ void buildWorkbench(QMainWindow& window, geopro::data::LocalSampleRepository& re
|
|||
&geopro::controller::VtkSceneController::zoomOut);
|
||||
QObject::connect(c3, &geopro::app::Column3DDataset::fitRequested, sceneCtrl,
|
||||
&geopro::controller::VtkSceneController::fit);
|
||||
// 渲染勾选的 3D 数据集。本阶段渲染走 LocalSampleRepository(仅含样本 dd_section "grid1"),
|
||||
// 真实后端 ds 的渲染数据尚未就绪(Api3dRepository 后置)→ 勾任一 3D ds 暂以样本帘面呈现。
|
||||
// Api3dRepository 就绪后删除此映射、改为直接 setCheckedDatasets(ids) 渲染真实数据。
|
||||
QObject::connect(c3, &geopro::app::Column3DDataset::checkedDatasetsChanged, sceneCtrl,
|
||||
&geopro::controller::VtkSceneController::setCheckedDatasets);
|
||||
[sceneCtrl](const QStringList& ids) {
|
||||
sceneCtrl->setCheckedDatasets(
|
||||
ids.isEmpty() ? QStringList{} : QStringList{QStringLiteral("grid1")});
|
||||
});
|
||||
// O点位置/字体本期 stub(TODO P4:弹框)。
|
||||
QObject::connect(c3, &geopro::app::Column3DDataset::oPointClicked, vtkWidget,
|
||||
[]() { /* TODO P4: O点位置弹框 */ });
|
||||
|
|
|
|||
Loading…
Reference in New Issue