summaryrefslogtreecommitdiffstats
path: root/Project/ElementPlotData.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-09-04 20:05:30 -0300
committerGitHub <noreply@github.com>2017-09-04 20:05:30 -0300
commit926af7f34aaf5aebdbac0cbc550ed75647874258 (patch)
tree4df26f8c631aeeeed6e5c9e8aab87c4c663bd30f /Project/ElementPlotData.h
parent17d1dd82ec065eff08546ef1fd2a188ce77471b2 (diff)
parent6f3421c4150e49af026432a2a2be0171d741ad03 (diff)
downloadPSP.git-926af7f34aaf5aebdbac0cbc550ed75647874258.tar.gz
PSP.git-926af7f34aaf5aebdbac0cbc550ed75647874258.tar.xz
PSP.git-926af7f34aaf5aebdbac0cbc550ed75647874258.zip
Merge pull request #33 from Thales1330/wip/electromechanical-calc
Wip electromechanical calc
Diffstat (limited to 'Project/ElementPlotData.h')
-rw-r--r--Project/ElementPlotData.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Project/ElementPlotData.h b/Project/ElementPlotData.h
index 1434664..5c67575 100644
--- a/Project/ElementPlotData.h
+++ b/Project/ElementPlotData.h
@@ -49,6 +49,7 @@ class ElementPlotData
CT_SHUNT_INDUCTOR,
CT_SHUNT_CAPACITOR,
CT_LOAD,
+ CT_TEST,
NUM_ELEMENTS,
CT_TIME
};
@@ -59,12 +60,14 @@ class ElementPlotData
wxString GetName() const { return m_name; }
void SetName(wxString name) { m_name = name; }
CurveType GetCurveType() const { return m_curveType; }
+ void SetCurveType(CurveType type) { m_curveType = type; }
PlotData* GetPlotData(int index) const { return m_elementData[index]; }
void AddData(std::vector<double> values, wxString name);
int GetElementDataNumber() const { return static_cast<int>(m_elementData.size()); }
std::vector<double> GetValues(int index) const { return m_elementData[index]->GetValues(); }
void SetValues(int index, std::vector<double> values) { m_elementData[index]->SetValues(values); }
+ void SetPlot(int index, bool plot = true) { m_elementData[index]->SetPlot(plot); }
wxString GetDataName(int index) const { return m_elementData[index]->GetName(); }
void SetDataName(int index, wxString name) { m_elementData[index]->SetName(name); }
wxColour GetColour(int index) const { return m_elementData[index]->GetColour(); }