summaryrefslogtreecommitdiffstats
path: root/Project/Inductor.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-10-25 17:09:19 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-10-25 17:09:19 -0200
commit0e3a45462bf8ce31be988679fd380baeecfb1b95 (patch)
tree9added371f70dd014c4f39a935bf4cd72566c12d /Project/Inductor.h
parent58cc8933337d4681025f890af78bfddc45c212d0 (diff)
downloadPSP.git-0e3a45462bf8ce31be988679fd380baeecfb1b95.tar.gz
PSP.git-0e3a45462bf8ce31be988679fd380baeecfb1b95.tar.xz
PSP.git-0e3a45462bf8ce31be988679fd380baeecfb1b95.zip
Capacitor and Inductor forms implemented
Diffstat (limited to 'Project/Inductor.h')
-rw-r--r--Project/Inductor.h30
1 files changed, 22 insertions, 8 deletions
diff --git a/Project/Inductor.h b/Project/Inductor.h
index 721d58a..21134c5 100644
--- a/Project/Inductor.h
+++ b/Project/Inductor.h
@@ -3,18 +3,32 @@
#include "Shunt.h"
+class ReactiveShuntElementForm;
+
+struct InductorElectricalData {
+ wxString name;
+ double reactivePower = 100.0;
+ ElectricalUnit reactivePowerUnit = UNIT_MVAr;
+};
+
class Inductor : public Shunt
{
-public:
- Inductor();
- ~Inductor();
-
- virtual bool AddParent(Element* parent, wxPoint2DDouble position);
+ public:
+ Inductor();
+ Inductor(wxString name);
+ ~Inductor();
+
+ virtual bool AddParent(Element* parent, wxPoint2DDouble position);
virtual void Draw(wxPoint2DDouble translation, double scale) const;
- virtual bool Contains(wxPoint2DDouble position) const;
- virtual bool Intersects(wxRect2DDouble rect) const;
+ virtual bool Contains(wxPoint2DDouble position) const;
+ virtual bool Intersects(wxRect2DDouble rect) const;
virtual void Rotate(bool clockwise = true);
virtual bool GetContextMenu(wxMenu& menu);
+ virtual bool ShowForm(wxWindow* parent, Element* element);
+ virtual InductorElectricalData GetElectricalData() { return m_electricalData; }
+ virtual void SetElectricalData(InductorElectricalData electricalData) { m_electricalData = electricalData; }
+ protected:
+ InductorElectricalData m_electricalData;
};
-#endif // INDUCTOR_H
+#endif // INDUCTOR_H