| 5274 | } |
| 5275 | |
| 5276 | void ShowAxisMetrics(const ImPlotPlot& plot, const ImPlotAxis& axis) { |
| 5277 | ImGui::BulletText("Label: %s", axis.LabelOffset == -1 ? "[none]" : plot.GetAxisLabel(axis)); |
| 5278 | ImGui::BulletText("Flags: 0x%08X", axis.Flags); |
| 5279 | ImGui::BulletText("Range: [%f,%f]",axis.Range.Min, axis.Range.Max); |
| 5280 | ImGui::BulletText("Pixels: %f", axis.PixelSize()); |
| 5281 | ImGui::BulletText("Aspect: %f", axis.GetAspect()); |
| 5282 | ImGui::BulletText(axis.OrthoAxis == nullptr ? "OrthoAxis: NULL" : "OrthoAxis: 0x%08X", axis.OrthoAxis->ID); |
| 5283 | ImGui::BulletText("LinkedMin: %p", (void*)axis.LinkedMin); |
| 5284 | ImGui::BulletText("LinkedMax: %p", (void*)axis.LinkedMax); |
| 5285 | ImGui::BulletText("HasRange: %s", axis.HasRange ? "true" : "false"); |
| 5286 | ImGui::BulletText("Hovered: %s", axis.Hovered ? "true" : "false"); |
| 5287 | ImGui::BulletText("Held: %s", axis.Held ? "true" : "false"); |
| 5288 | |
| 5289 | if (ImGui::TreeNode("Transform")) { |
| 5290 | ImGui::BulletText("PixelMin: %f", axis.PixelMin); |
| 5291 | ImGui::BulletText("PixelMax: %f", axis.PixelMax); |
| 5292 | ImGui::BulletText("ScaleToPixel: %f", axis.ScaleToPixel); |
| 5293 | ImGui::BulletText("ScaleMax: %f", axis.ScaleMax); |
| 5294 | ImGui::TreePop(); |
| 5295 | } |
| 5296 | |
| 5297 | if (ImGui::TreeNode("Ticks")) { |
| 5298 | ShowTicksMetrics(axis.Ticker); |
| 5299 | ImGui::TreePop(); |
| 5300 | } |
| 5301 | } |
| 5302 | |
| 5303 | void ShowMetricsWindow(bool* p_popen) { |
| 5304 |
no test coverage detected