From 516cdb72d3ff99a1ee786d3ea24c9b579272fe76 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 30 Aug 2017 20:42:27 -0300 Subject: COI (center of inertia) implemented See Milano's book p. 342 --- Project/SimulationsSettingsForm.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Project/SimulationsSettingsForm.cpp') diff --git a/Project/SimulationsSettingsForm.cpp b/Project/SimulationsSettingsForm.cpp index 9e38010..714e49b 100644 --- a/Project/SimulationsSettingsForm.cpp +++ b/Project/SimulationsSettingsForm.cpp @@ -46,6 +46,8 @@ SimulationsSettingsForm::SimulationsSettingsForm(wxWindow* parent, PropertiesDat m_textCtrlStabMaxIterations->SetValue(wxString::Format("%d", data.stabilityMaxIterations)); m_textCtrlCtrlStepRatio->SetValue(wxString::Format("%d", data.controlTimeStepRatio)); m_textCtrlPrintTime->SetValue(wxString::Format("%g", data.plotTime)); + + m_checkBoxUseCOI->SetValue(data.useCOI); } SimulationsSettingsForm::~SimulationsSettingsForm() {} @@ -111,6 +113,8 @@ bool SimulationsSettingsForm::ValidateData() if(!Element::DoubleFromString(this, m_textCtrlPrintTime->GetValue(), data.plotTime, _("Value entered incorrectly in the field \"Plot time\"."))) return false; + data.useCOI = m_checkBoxUseCOI->GetValue(); + m_properties->SetSimulationPropertiesData(data); return true; } -- cgit