MCPcopy Create free account
hub / github.com/SatDump/SatDump / ShowAxisMetrics

Function ShowAxisMetrics

src-core/imgui/implot/implot.cpp:5200–5225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5198}
5199
5200void 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
5227void ShowMetricsWindow(bool* p_popen) {
5228

Callers 1

ShowMetricsWindowFunction · 0.85

Calls 4

ShowTicksMetricsFunction · 0.85
GetAxisLabelMethod · 0.80
PixelSizeMethod · 0.80
GetAspectMethod · 0.80

Tested by

no test coverage detected