From 077270f0294d236c6047d850703c5d011cb4b711 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 3 Sep 2016 01:10:18 -0300 Subject: Motor implementation done, elements classes reorganized --- Project/IndMotor.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Project/IndMotor.cpp (limited to 'Project/IndMotor.cpp') 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 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; +} -- cgit