10 std::vector<int> harmonicOrder;
11 std::vector<double> injHarmCurrent;
12 std::vector<ElectricalUnit> injHarmCurrentUnit;
13 std::vector<double> injHarmAngle;
33 virtual void DrawDC(wxPoint2DDouble translation,
double scale, wxGraphicsContext* gc)
const;
34 virtual void DrawDC(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);
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;
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
Shunt Harmonic Corrent Source.
virtual wxString GetTipText() const
Get the tip text.
virtual bool Intersects(wxRect2DDouble rect) const
Check if the element's rect intersects other rect.
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 void DrawDC(wxPoint2DDouble translation, double scale, wxGraphicsContext *gc) const
Draw the element using GDI+.
virtual bool ShowForm(wxWindow *parent, Element *element)
Show element data form.
virtual bool Contains(wxPoint2DDouble position) const
Checks if the element contains a position.
virtual bool AddParent(Element *parent, wxPoint2DDouble position)
Add a parent to the element. This method must be used on power elements that connect to a bus,...
Abstract class for shunt power elements.