geopro/src/app/panels/chart/TrajectoryStrategy.hpp

26 lines
1.4 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <vector>
#include "IDatasetChartStrategy.hpp" // geopro::controller
namespace geopro::app {
// ERT 电极坐标轨迹dd_trajectory_data策略地图 / 列表 / 高程 三页签(页签序对齐原版)。
// 地图(默认/首位)= WebMapQWebEngineView + Leaflet + 天地图瓦片traj.map 产 MapPayload
// 端点 trajectory/lineelectrodeCoordinate → 经纬点)。
// 列表 = Table懒加载gridHeaderDisplay+rowList → TablePayload
// 高程 = LineProfile平滑折线electrodeNo→elevation
// 列表与高程同端点 trajectory/rowsloaderKey 不同traj.rows 产 TablePayload / traj.elev 产 LinePayload
struct TrajectoryStrategy : controller::IDatasetChartStrategy {
std::string ddCode() const override { return "dd_trajectory_data"; }
std::vector<controller::TabSpec> tabs() const override {
return {
{QStringLiteral("地图"), controller::ViewKind::WebMap,
QStringLiteral("traj.map"), /*lazy*/ false, /*paginated*/ false},
{QStringLiteral("列表"), controller::ViewKind::Table,
QStringLiteral("traj.rows"), /*lazy*/ true, /*paginated*/ false},
{QStringLiteral("高程"), controller::ViewKind::LineProfile,
QStringLiteral("traj.elev"), /*lazy*/ false, /*paginated*/ false},
};
}
};
} // namespace geopro::app