blob: 2880cc1f4e40d7cf537f5cfbeb8b8c65aca693fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#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_CLOCK, _("Rotate clockwise"));
menu.Append(ID_ROTATE_COUNTERCLOCK, _("Rotate counter-clockwise"));
menu.Append(ID_DELETE, _("Delete"));
return true;
}
|