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);
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.
Shunt capactior power element.
virtual wxString GetTipText() const
Get the tip text.
virtual bool GetContextMenu(wxMenu &menu)
Get the element contex menu.
virtual void Rotate(bool clockwise=true)
Rotate the element.
virtual Element * GetCopy()
Get a the element copy.
virtual bool ShowForm(wxWindow *parent, Element *element)
Show element data form.
virtual bool Intersects(wxRect2DDouble rect) const
Check if the element's rect intersects other rect.
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,...
virtual void DrawDC(wxPoint2DDouble translation, double scale, wxGraphicsContext *gc) const
Draw the element using GDI+.
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
Abstract class for shunt power elements.