10 std::vector<int> harmonicOrder;
11 std::vector<double> injHarmCurrent;
12 std::vector<ElectricalUnit> injHarmCurrentUnit;
13 std::vector<double> injHarmAngle;
23class HarmCurrent :
public Shunt
27 HarmCurrent(wxString name);
31 virtual bool AddParent(
Element* parent, wxPoint2DDouble position,
bool isOpening =
false);
33 virtual void DrawDC(
GUIColour* guiColour, wxPoint2DDouble translation,
double scale, wxGraphicsContext* gc)
const;
34 virtual void DrawDC(
GUIColour* guiColour, wxPoint2DDouble translation,
double scale, wxDC& dc)
const;
35 virtual bool Contains(wxPoint2DDouble position)
const;
36 virtual bool Intersects(wxRect2DDouble rect)
const;
37 virtual void Rotate(
bool clockwise =
true);
40 virtual bool ShowForm(wxWindow* parent,
Element* element, wxWindow* workspace =
nullptr);
45 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
46 virtual bool OpenElement(rapidxml::xml_node<>* elementNode, std::vector<Element*> parentList);
49 std::vector<wxPoint2DDouble> m_triangPts;
virtual wxString GetTipText() const
Get the tip text.
virtual bool Intersects(wxRect2DDouble rect) const
Check if the element's rect intersects other rect.
virtual bool AddParent(Element *parent, wxPoint2DDouble position, bool isOpening=false)
Add a parent to the element. This method must be used on power elements that connect to a bus,...
virtual Element * GetCopy()
Get a the element copy.
virtual bool GetContextMenu(wxMenu &menu)
Get the element contex menu.
virtual void Rotate(bool clockwise=true)
Rotate the element.
virtual bool Contains(wxPoint2DDouble position) const
Checks if the element contains a position.
virtual bool ShowForm(wxWindow *parent, Element *element, wxWindow *workspace=nullptr)
Show element data form.
virtual void DrawDC(GUIColour *guiColour, wxPoint2DDouble translation, double scale, wxGraphicsContext *gc) const
Draw the element using GDI+.