46 IN_TERMINAL_VOLTAGE = 1 << 0,
48 IN_ACTIVE_POWER = 1 << 2,
49 IN_REACTIVE_POWER = 1 << 3,
50 OUT_FIELD_VOLTAGE = 1 << 4,
51 OUT_MEC_POWER = 1 << 5,
52 IN_INITIAL_TERMINAL_VOLTAGE = 1 << 6,
53 IN_INITIAL_MEC_POWER = 1 << 7,
54 IN_INITIAL_VELOCITY = 1 << 8,
55 IN_DELTA_VELOCITY = 1 << 9,
56 IN_DELTA_ACTIVE_POWER = 1 << 10,
64 virtual void DrawDC(wxPoint2DDouble translation,
double scale, wxGraphicsContext* gc)
const;
65 virtual bool Contains(wxPoint2DDouble position)
const {
return m_rect.Contains(position); }
66 virtual bool Intersects(wxRect2DDouble rect)
const {
return m_rect.Intersects(rect); }
68 virtual void Rotate(
bool clockwise =
true);
70 virtual wxString GenerateText();
71 virtual void UpdatePoints();
73 virtual IOFlags GetValue()
const {
return m_value; }
74 virtual void SetValue(IOFlags value);
75 virtual int GetIOFlags()
const {
return m_ioFlags; }
76 virtual Node::NodeType GetType() {
return m_ioNodeType; }
77 virtual wxString GetName()
const {
return m_name; }
78 virtual void SetName(
const wxString& name) { m_name = name; }
79 virtual SimTestData GetSimTestData()
const {
return m_simTestData; }
80 virtual void SetSimTestData(
const SimTestData& simTestData) { m_simTestData = simTestData; }
81 virtual double GetTestValue()
const {
return m_testValue; }
82 virtual void SetTestValue(
const double& testValue) { m_testValue = testValue; }
83 virtual bool Initialize();
85 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
86 virtual bool OpenElement(rapidxml::xml_node<>* elementNode);
93 wxString m_name = _(
"Input / Output");
95 double m_testValue = 0.0;
97 Node::NodeType m_ioNodeType = Node::NodeType::NODE_IN;
100 GCText* m_gcText =
nullptr;
Class to draw text on Graphics Context using wxWidgets.