Skip to content

Commit

Permalink
Merge the reportStats imgui support
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Sep 27, 2023
1 parent 70aee6a commit 27ad254
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/osgEarth/ImGui/LayersGUI
Original file line number Diff line number Diff line change
Expand Up @@ -777,15 +777,12 @@ namespace osgEarth
{
ImGui::Text("Upsampling is OFF");
}
}

auto kvr = dynamic_cast<KeyValueReporter*>(layer);
if (kvr)
}
auto report = layer->reportStats();
for (auto& kv : report)
{
for (auto& kv : kvr->keyValueReport())
{
ImGui::Text((kv.first + ": " + kv.second).c_str());
}
ImGui::Text((kv.first + ": " + kv.second).c_str());
}

const GeoExtent& extent = layer->getExtent();
Expand Down

0 comments on commit 27ad254

Please sign in to comment.