MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ShowAxisMetrics

Function ShowAxisMetrics

Source/3rdParty/implot/implot.cpp:5276–5301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5274}
5275
5276void 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
5303void ShowMetricsWindow(bool* p_popen) {
5304

Callers 1

ShowMetricsWindowFunction · 0.85

Calls 6

BulletTextFunction · 0.85
ShowTicksMetricsFunction · 0.85
GetAxisLabelMethod · 0.80
PixelSizeMethod · 0.80
GetAspectMethod · 0.80
TreeNodeClass · 0.50

Tested by

no test coverage detected