ENH: support to show object labels in 3D scene

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: If2267b13ab15d2c18175dc54cfda605f8f062cf8
This commit is contained in:
yifan.wu 2022-09-02 21:13:00 +08:00 committed by Lane.Wei
parent 612204b443
commit a744f7d60c
1 changed files with 6 additions and 0 deletions

View File

@ -1935,6 +1935,12 @@ void MainFrame::init_menubar_as_editor()
viewMenu->Check(wxID_CAMERA_PERSPECTIVE + camera_id_base, true);
else
viewMenu->Check(wxID_CAMERA_ORTHOGONAL + camera_id_base, true);
viewMenu->AppendSeparator();
append_menu_check_item(viewMenu, wxID_ANY, _L("Show &Labels"), _L("Show object labels in 3D scene"),
[this](wxCommandEvent&) { m_plater->show_view3D_labels(!m_plater->are_view3D_labels_shown()); }, this,
[this]() { return m_plater->is_view3D_shown(); }, [this]() { return m_plater->are_view3D_labels_shown(); }, this);
//viewMenu->AppendSeparator();
////BBS orthogonal view
//append_menu_check_item(viewMenu, wxID_ANY, _L("Show Edges(TODO)"), _L("Show Edges"),