| 5198 | } |
| 5199 | |
| 5200 | void ShowAxisMetrics(const ImPlotPlot& plot, const ImPlotAxis& axis) { |
| 5201 | ImGui::BulletText("Label: %s", axis.LabelOffset == -1 ? "[none]" : plot.GetAxisLabel(axis)); |
| 5202 | ImGui::BulletText("Flags: 0x%08X", axis.Flags); |
| 5203 | ImGui::BulletText("Range: [%f,%f]",axis.Range.Min, axis.Range.Max); |
| 5204 | ImGui::BulletText("Pixels: %f", axis.PixelSize()); |
| 5205 | ImGui::BulletText("Aspect: %f", axis.GetAspect()); |
| 5206 | ImGui::BulletText(axis.OrthoAxis == nullptr ? "OrtherAxis: NULL" : "OrthoAxis: 0x%08X", axis.OrthoAxis->ID); |
| 5207 | ImGui::BulletText("LinkedMin: %p", (void*)axis.LinkedMin); |
| 5208 | ImGui::BulletText("LinkedMax: %p", (void*)axis.LinkedMax); |
| 5209 | ImGui::BulletText("HasRange: %s", axis.HasRange ? "true" : "false"); |
| 5210 | ImGui::BulletText("Hovered: %s", axis.Hovered ? "true" : "false"); |
| 5211 | ImGui::BulletText("Held: %s", axis.Held ? "true" : "false"); |
| 5212 | |
| 5213 | if (ImGui::TreeNode("Transform")) { |
| 5214 | ImGui::BulletText("PixelMin: %f", axis.PixelMin); |
| 5215 | ImGui::BulletText("PixelMax: %f", axis.PixelMax); |
| 5216 | ImGui::BulletText("ScaleToPixel: %f", axis.ScaleToPixel); |
| 5217 | ImGui::BulletText("ScaleMax: %f", axis.ScaleMax); |
| 5218 | ImGui::TreePop(); |
| 5219 | } |
| 5220 | |
| 5221 | if (ImGui::TreeNode("Ticks")) { |
| 5222 | ShowTicksMetrics(axis.Ticker); |
| 5223 | ImGui::TreePop(); |
| 5224 | } |
| 5225 | } |
| 5226 | |
| 5227 | void ShowMetricsWindow(bool* p_popen) { |
| 5228 |
no test coverage detected