| 1615 | } |
| 1616 | |
| 1617 | void ShowPlaneContextMenu(ImPlot3DPlot& plot, int plane_idx) { |
| 1618 | for (int i = 0; i < 3; i++) { |
| 1619 | if (i == plane_idx) |
| 1620 | continue; |
| 1621 | ImPlot3DAxis& axis = plot.Axes[i]; |
| 1622 | ImGui::PushID(i); |
| 1623 | if (ImGui::BeginMenu(axis.HasLabel() ? axis.GetLabel() : axis_labels[i])) { |
| 1624 | ShowAxisContextMenu(plot, i); |
| 1625 | ImGui::EndMenu(); |
| 1626 | } |
| 1627 | ImGui::PopID(); |
| 1628 | } |
| 1629 | } |
| 1630 | |
| 1631 | void ShowPlotContextMenu(ImPlot3DPlot& plot) { |
| 1632 | char buf[16] = {}; |
no test coverage detected