geopro/src/app/VtkViewToolbar.hpp

23 lines
750 B
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 <QWidget>
#include "I3dSceneView.hpp" // geopro::controller::ViewDir
namespace geopro::app {
// VTK 画布竖排工具条spec §9全局视图控制——设置(坐标轴)/前后上下左右/放大缩小复位。
// 仅发信号,不认 VTK由 main 接到场景控制器。
class VtkViewToolbar : public QWidget {
Q_OBJECT
public:
explicit VtkViewToolbar(QWidget* parent = nullptr);
signals:
void axesSettingsRequested(); // 设置 → 弹 AxesSettingsDialog
void viewRequested(geopro::controller::ViewDir dir); // 前/后/上/下/左/右
void zoomInRequested();
void zoomOutRequested();
void fitRequested(); // 复位=适配
};
} // namespace geopro::app