27 double reactivePower = 100.0;
48 virtual void DrawDC(wxPoint2DDouble translation,
double scale, wxGraphicsContext* gc)
const;
49 virtual void DrawDC(wxPoint2DDouble translation,
double scale, wxDC& dc)
const;
50 virtual bool Contains(wxPoint2DDouble position)
const;
51 virtual bool Intersects(wxRect2DDouble rect)
const;
52 virtual void Rotate(
bool clockwise =
true);
58 virtual void SetElectricalData(
InductorElectricalData electricalData) { m_electricalData = electricalData; }
60 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
61 virtual bool OpenElement(rapidxml::xml_node<>* elementNode, std::vector<Element*> parentList);
ElectricalUnit
Electrical units.
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
Inductor shunt power element.
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 AddParent(Element *parent, wxPoint2DDouble position)
Add a parent to the element. This method must be used on power elements that connect to a bus,...
virtual void Rotate(bool clockwise=true)
Rotate the element.
virtual bool GetContextMenu(wxMenu &menu)
Get the element contex menu.
virtual bool ShowForm(wxWindow *parent, Element *element)
Show element data form.
virtual wxString GetTipText() const
Get the tip text.
virtual bool Contains(wxPoint2DDouble position) const
Checks if the element contains a position.
virtual void DrawDC(wxPoint2DDouble translation, double scale, wxGraphicsContext *gc) const
Draw the element using GDI+.
Abstract class for shunt power elements.