diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-08-30 20:42:27 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-08-30 20:42:27 -0300 |
commit | 516cdb72d3ff99a1ee786d3ea24c9b579272fe76 (patch) | |
tree | 6017213d5e270f94c1063d11e793c196e3c969f8 /Project/SwitchingForm.cpp | |
parent | 1fcb990bd02da945ac0204caaed6a9aa1f6a7d5f (diff) | |
download | PSP.git-516cdb72d3ff99a1ee786d3ea24c9b579272fe76.tar.gz PSP.git-516cdb72d3ff99a1ee786d3ea24c9b579272fe76.tar.xz PSP.git-516cdb72d3ff99a1ee786d3ea24c9b579272fe76.zip |
COI (center of inertia) implemented
See Milano's book p. 342
Diffstat (limited to 'Project/SwitchingForm.cpp')
-rw-r--r-- | Project/SwitchingForm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Project/SwitchingForm.cpp b/Project/SwitchingForm.cpp index 061b0a5..29da9c2 100644 --- a/Project/SwitchingForm.cpp +++ b/Project/SwitchingForm.cpp @@ -60,6 +60,11 @@ void SwitchingForm::OnOKButtonClick(wxCommandEvent& event) } m_element->SetSwitchingData(data); + if(data.swTime.size() != 0) + m_element->SetDynamicEvent(true); + else + m_element->SetDynamicEvent(false); + EndModal(wxID_OK); } |