summaryrefslogtreecommitdiffstats
path: root/Project/IndMotor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/IndMotor.cpp')
-rw-r--r--Project/IndMotor.cpp28
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;
+}