New gcode visualization integration - Partially enabled imgui debug window

This commit is contained in:
enricoturri1966 2024-01-26 15:08:59 +01:00 committed by Lukas Matena
parent 6785e4fefd
commit a17d727b37
2 changed files with 6 additions and 1 deletions

View File

@ -58,7 +58,7 @@
#define ENABLE_BINARIZED_GCODE_DEBUG_WINDOW 0
#define ENABLE_NEW_GCODE_VIEWER 1
#define ENABLE_NEW_GCODE_VIEWER_DEBUG (0 && ENABLE_NEW_GCODE_VIEWER)
#define ENABLE_NEW_GCODE_VIEWER_DEBUG (1 && ENABLE_NEW_GCODE_VIEWER)
// Enable G-Code viewer statistics imgui dialog
#define ENABLE_GCODE_VIEWER_STATISTICS (0 && !ENABLE_NEW_GCODE_VIEWER)

View File

@ -3866,6 +3866,7 @@ void GCodeViewer::render_toolpaths()
if (ImGui::BeginTable("Data", 2)) {
/*
ImGui::TableNextRow();
ImGui::TableSetColumnIndex(0);
imgui.text_colored(ImGuiWrapper::COL_ORANGE_LIGHT, "# vertices");
@ -3873,6 +3874,7 @@ void GCodeViewer::render_toolpaths()
imgui.text(std::to_string(m_viewer.get_vertices_count()));
ImGui::Separator();
*/
ImGui::TableNextRow();
ImGui::TableSetColumnIndex(0);
@ -3886,6 +3888,7 @@ void GCodeViewer::render_toolpaths()
ImGui::TableSetColumnIndex(1);
imgui.text(format_memsize(m_viewer.get_used_gpu_memory()));
/*
ImGui::Separator();
ImGui::TableNextRow();
@ -4019,6 +4022,8 @@ void GCodeViewer::render_toolpaths()
if (imgui.slider_float("##WipesRadius", &wipes_radius, 0.05f, 0.5f))
m_viewer.set_wipes_radius(wipes_radius);
*/
ImGui::EndTable();
}