summaryrefslogtreecommitdiffstats
path: root/Project/PowerElement.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-26 02:21:15 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-26 02:21:15 -0300
commit734476bea0a2b85b131f5a4d2c9e2b219af7be41 (patch)
tree745230f78d5baede413818e19563a043313d75b6 /Project/PowerElement.h
parent993288a099a4ba08c40cfb5ff79620257193131c (diff)
downloadPSP.git-734476bea0a2b85b131f5a4d2c9e2b219af7be41.tar.gz
PSP.git-734476bea0a2b85b131f5a4d2c9e2b219af7be41.tar.xz
PSP.git-734476bea0a2b85b131f5a4d2c9e2b219af7be41.zip
Sync generator plot implemented
Electromechanical calc not working
Diffstat (limited to 'Project/PowerElement.h')
-rw-r--r--Project/PowerElement.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Project/PowerElement.h b/Project/PowerElement.h
index a5d65b1..033d697 100644
--- a/Project/PowerElement.h
+++ b/Project/PowerElement.h
@@ -2,6 +2,7 @@
#define POWERELEMENT_H
#include "Element.h"
+#include "ElementPlotData.h"
/**
* @enum ElectricalUnit
@@ -172,6 +173,13 @@ class PowerElement : public Element
* @return Power flow direction.
*/
virtual PowerFlowDirection GetPowerFlowDirection() const { return m_pfDirection; }
+
+ /**
+ * @brief Fill the plot data.
+ * @param plotData Plot data to be filled.
+ * @return true if the plot data was successfully filled, false otherwise.
+ */
+ virtual bool GetPlotData(ElementPlotData& plotData) { return false; }
protected:
SwitchingData m_swData;
std::vector<std::vector<wxPoint2DDouble> > m_powerFlowArrow;