summaryrefslogtreecommitdiffstats
path: root/Project/TransferFunction.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-16 19:07:49 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-16 19:07:49 -0300
commit1158ce068e3b5b391604270bf10c52d0d2f7f4db (patch)
tree7e9b770ede3c0592f631b9e6982be55d2173ea04 /Project/TransferFunction.cpp
parentc6c3ff70bfceac839af471c11fc8aa04060517b0 (diff)
downloadPSP.git-1158ce068e3b5b391604270bf10c52d0d2f7f4db.tar.gz
PSP.git-1158ce068e3b5b391604270bf10c52d0d2f7f4db.tar.xz
PSP.git-1158ce068e3b5b391604270bf10c52d0d2f7f4db.zip
Sync generator control fixed
Diffstat (limited to 'Project/TransferFunction.cpp')
-rw-r--r--Project/TransferFunction.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Project/TransferFunction.cpp b/Project/TransferFunction.cpp
index ebb59fb..b91627a 100644
--- a/Project/TransferFunction.cpp
+++ b/Project/TransferFunction.cpp
@@ -355,3 +355,13 @@ bool TransferFunction::Solve(double input, double timeStep)
return true;
}
+
+Element* TransferFunction::GetCopy()
+{
+ TransferFunction* copy = new TransferFunction(m_elementID);
+ *copy = *this;
+ m_glStringNum = NULL;
+ m_glStringDen = NULL;
+ UpdateTFText();
+ return copy;
+}