diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-09-03 01:10:18 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-09-03 01:10:18 -0300 |
commit | 077270f0294d236c6047d850703c5d011cb4b711 (patch) | |
tree | c655594e525222104c49564f097734537ccc322b /Project/IndMotor.cpp | |
parent | bd3f70a62f8c2868e20f094a0ad7dd8c977ab853 (diff) | |
download | PSP.git-077270f0294d236c6047d850703c5d011cb4b711.tar.gz PSP.git-077270f0294d236c6047d850703c5d011cb4b711.tar.xz PSP.git-077270f0294d236c6047d850703c5d011cb4b711.zip |
Motor implementation done, elements classes reorganized
Diffstat (limited to 'Project/IndMotor.cpp')
-rw-r--r-- | Project/IndMotor.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Project/IndMotor.cpp b/Project/IndMotor.cpp new file mode 100644 index 0000000..3d7c243 --- /dev/null +++ b/Project/IndMotor.cpp @@ -0,0 +1,28 @@ +#include "IndMotor.h" + +IndMotor::IndMotor() : Machines() +{ +} + +IndMotor::~IndMotor() +{ +} + +void IndMotor::DrawSymbol() const +{ + std::vector<wxPoint2DDouble> mPts; + mPts.push_back(wxPoint2DDouble(-10, 13) + m_position); + mPts.push_back(wxPoint2DDouble(-10, -13) + m_position); + mPts.push_back(wxPoint2DDouble(0, 2) + m_position); + mPts.push_back(wxPoint2DDouble(10, -13) + m_position); + mPts.push_back(wxPoint2DDouble(10, 13) + m_position); + DrawLine(mPts); +} + +bool IndMotor::GetContextMenu(wxMenu& menu) +{ + menu.Append(ID_EDIT_INDMOTOR, _("Edit induction motor")); + menu.Append(ID_ROTATE, _("Rotate")); + menu.Append(ID_DELETE, _("Delete")); + return true; +} |