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,
65 virtual void DrawDC(
GUIColour* guiColour, wxPoint2DDouble translation,
double scale, wxGraphicsContext* gc)
const;
66 virtual bool Contains(wxPoint2DDouble position)
const {
return m_rect.Contains(position); }
67 virtual bool Intersects(wxRect2DDouble rect)
const {
return m_rect.Intersects(rect); }
68 virtual bool ShowForm(wxWindow* parent,
Element* element, wxWindow* workspace =
nullptr);
69 virtual void Rotate(
bool clockwise =
true);
70 virtual void SetFont(wxFont& font);
72 virtual wxString GenerateText();
73 virtual void UpdatePoints();
75 virtual IOFlags GetValue()
const {
return m_value; }
76 virtual void SetValue(IOFlags value);
77 virtual int GetIOFlags()
const {
return m_ioFlags; }
78 virtual Node::NodeType GetType() {
return m_ioNodeType; }
79 virtual wxString GetName()
const {
return m_name; }
80 virtual void SetName(
const wxString& name) { m_name = name; }
81 virtual SimTestData GetSimTestData()
const {
return m_simTestData; }
82 virtual void SetSimTestData(
const SimTestData& simTestData) { m_simTestData = simTestData; }
83 virtual double GetTestValue()
const {
return m_testValue; }
84 virtual void SetTestValue(
const double& testValue) { m_testValue = testValue; }
85 virtual bool Initialize();
87 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
88 virtual bool OpenElement(rapidxml::xml_node<>* elementNode);
95 wxString m_name = _(
"Input / Output");
97 double m_testValue = 0.0;
99 Node::NodeType m_ioNodeType = Node::NodeType::NODE_IN;
102 GCText* m_gcText =
nullptr;
Class to draw text on Graphics Context using wxWidgets.
virtual void DrawDC(GUIColour *guiColour, wxPoint2DDouble translation, double scale, wxGraphicsContext *gc) const
Draw the element using GDI+.