diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-01 17:43:54 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-01 17:43:54 -0300 |
commit | afb0e6e08d3911b7387799f5c465fd59ca26a484 (patch) | |
tree | 7b9b24d512813837c64d6cc9b2e005cd9791b5e6 /Project/Exponential.cpp | |
parent | a684d5c9c9dd131060b5a36d7c7844ae197fcfd1 (diff) | |
download | PSP.git-afb0e6e08d3911b7387799f5c465fd59ca26a484.tar.gz PSP.git-afb0e6e08d3911b7387799f5c465fd59ca26a484.tar.xz PSP.git-afb0e6e08d3911b7387799f5c465fd59ca26a484.zip |
Constant implemented
Missing: gain and io
Diffstat (limited to 'Project/Exponential.cpp')
-rw-r--r-- | Project/Exponential.cpp | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/Project/Exponential.cpp b/Project/Exponential.cpp index dc18a90..18fef19 100644 --- a/Project/Exponential.cpp +++ b/Project/Exponential.cpp @@ -1,4 +1,5 @@ #include "Exponential.h" +#include "ExponentialForm.h" Exponential::Exponential() { @@ -12,10 +13,7 @@ Exponential::Exponential() m_nodeList.push_back(nodeOut); } -Exponential::~Exponential() -{ -} - +Exponential::~Exponential() {} void Exponential::Draw(wxPoint2DDouble translation, double scale) const { glLineWidth(1.0); @@ -36,7 +34,7 @@ void Exponential::Draw(wxPoint2DDouble translation, double scale) const axis.push_back(m_position + wxPoint2DDouble(-13, -13)); axis.push_back(m_position + wxPoint2DDouble(-13, 13)); DrawLine(axis, GL_LINES); - + glLineWidth(2.0); std::vector<wxPoint2DDouble> expSymbol; expSymbol.push_back(m_position + wxPoint2DDouble(-13, 13)); @@ -57,6 +55,12 @@ void Exponential::Draw(wxPoint2DDouble translation, double scale) const bool Exponential::ShowForm(wxWindow* parent, Element* element) { + ExponentialForm* form = new ExponentialForm(parent, this); + if(form->ShowModal() == wxID_OK) { + form->Destroy(); + return true; + } + form->Destroy(); return false; } @@ -95,3 +99,15 @@ void Exponential::UpdatePoints() m_nodeList[1]->SetPosition(m_position + wxPoint2DDouble(0, -18)); } } + +double Exponential::GetValues(double& aValue, double& bValue) +{ + aValue = m_aValue; + bValue = m_bValue; +} + +void Exponential::SetValues(double aValue, double bValue) +{ + m_aValue = aValue; + m_bValue = bValue; +} |