From c6d815b6b11504be68d7a97df63cfef749624418 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 20 Dec 2017 20:45:35 -0200 Subject: Math expr GUI implemented --- Project/Divider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project/Divider.cpp') diff --git a/Project/Divider.cpp b/Project/Divider.cpp index 2bd8251..c458002 100644 --- a/Project/Divider.cpp +++ b/Project/Divider.cpp @@ -33,7 +33,7 @@ void Divider::DrawSymbol() const DrawCircle(m_position + wxPoint2DDouble(0, 3), 2, 10, GL_POLYGON); } -bool Divider::Solve(double input, double timeStep) +bool Divider::Solve(double input, double timeStep, double currentTime) { std::vector inputVector; for(auto itN = m_nodeList.begin(), itNEnd = m_nodeList.end(); itN != itNEnd; ++itN) { -- cgit From dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sun, 31 Dec 2017 17:59:10 -0200 Subject: Math Expression implemented --- Project/Divider.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Project/Divider.cpp') diff --git a/Project/Divider.cpp b/Project/Divider.cpp index c458002..3f7027d 100644 --- a/Project/Divider.cpp +++ b/Project/Divider.cpp @@ -33,8 +33,9 @@ void Divider::DrawSymbol() const DrawCircle(m_position + wxPoint2DDouble(0, 3), 2, 10, GL_POLYGON); } -bool Divider::Solve(double input, double timeStep, double currentTime) +bool Divider::Solve(double* input, double timeStep) { + // Get the input vector from connection lines (can't use default (one) input argument) std::vector inputVector; for(auto itN = m_nodeList.begin(), itNEnd = m_nodeList.end(); itN != itNEnd; ++itN) { Node* node = *itN; -- cgit