ComputationalBiomechanicsLab / opensim-creator

A UI for building OpenSim models
https://opensimcreator.com
Apache License 2.0
148 stars 17 forks source link

Add "Save CSV and Open" to the "vs. coordinate" muscle plotter #539

Open adamkewley opened 1 year ago

adamkewley commented 1 year ago

Estimate: 0.25-0.5d

The muscle plot widget has an export CSV but, to match other plots (e.g. those in the simulation screen) it should perhaps also have an export CSV and save option. Here would be the affected area:

Screenshot 2023-01-09 131628

The change would be to add an extra ImGui::Menu in ModelMusclePlotPanel around here:

And the code would be the same as export CSV, but it would also need an extra function call to open the relevant application. This is done in SimulatorTab currently like this:

                if (ImGui::MenuItem("as CSV (and open)"))
                {
                    auto p = osc::TryPromptAndSaveAllUserDesiredOutputsAsCSV(*this);
                    if (!p.empty())
                    {
                        osc::OpenPathInOSDefaultApplication(p);
                    }
                }
adamkewley commented 1 year ago

Possible duplicate of #390

adamkewley commented 1 year ago

Dropping from 0.4.1 - a few new bugfix tickets (e.g. #645, #644) pushed time out of the schedule and I need to drop ~3 days of development time from the milestone.