opensim-creator icon indicating copy to clipboard operation
opensim-creator copied to clipboard

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

Open adamkewley opened this issue 2 years ago • 2 comments

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:

  • https://github.com/ComputationalBiomechanicsLab/opensim-creator/blob/main/src/OpenSimBindings/Widgets/ModelMusclePlotPanel.cpp#L1934

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 avatar Jan 03 '23 15:01 adamkewley

Possible duplicate of #390

adamkewley avatar Mar 07 '23 09:03 adamkewley

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.

adamkewley avatar Mar 14 '23 15:03 adamkewley