src/Screens/SimulatorScreen.cpp
// draw "selection" tab, which shows details of current selection
draw "selection" tab, which shows details of current selection
draw " selection " tab which shows details of current selection
void drawSelectionTab(osc::SimulatorScreen::Impl& impl) {
        UiSimulation const* maybeSim = impl.mes->getFocusedSim();
        if (!maybeSim) {
            ImGui::TextDisabled("(no simulation selected)");
            return;
        }
        UiSimulation const& sim = *maybeSim;
        if (!sim.selected) {
            ImGui::TextDisabled("(no component selected)");
            return;
        }
        Report const& report = selectReportBasedOnScrubbing(sim, impl.mes->focusedSimulationScrubbingTime);
        ComponentDetails{}.draw(report.state, sim.selected);
        if (ImGui::CollapsingHeader("outputs")) {
            drawOutputPlots(impl, sim, report, *sim.selected);
        }
    }
void drawSelectionTab ( osc :: SimulatorScreen :: Impl & impl ) { UiSimulation const * maybeSim = impl . mes -> getFocusedSim ( ) ; if ( ! maybeSim ) { ImGui :: TextDisabled ( " " ) ; return ; } UiSimulation const & sim = * maybeSim ; if ( ! sim . selected ) { ImGui :: TextDisabled ( " " ) ; return ; } Report const & report = selectReportBasedOnScrubbing ( sim , impl . mes -> focusedSimulationScrubbingTime ) ; ComponentDetails { } . draw ( report . state , sim . selected ) ; if ( ImGui :: CollapsingHeader ( " " ) ) { drawOutputPlots ( impl , sim , report , * sim . selected ) ; } }
draw "selection" tab, which shows details of current selection
draw " selection " tab which shows details of current selection