diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-02-12 19:03:51 -0200 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-02-12 19:03:51 -0200 |
commit | 5bd1fec462466d605f974fa27c3b00826a1bab57 (patch) | |
tree | 6cfefd8bd5c81644755c3be197f7ab2d60cd268b /manipulationhandler.cpp | |
parent | 95a77b04a6855b26d340aaca5e3030a7d1a7cb3c (diff) |
Refactoring of Projection{Observer,History} & ManipulationHandler.
ProjectionObserver class has been removed, all of its functionality
is now inside class ProjectionHistory, thus dealing with the design
problem mentioned in the previous commit. ProjectionHistory is now
also responsible for all rewinding functionality, which makes more
sense.
Diffstat (limited to 'manipulationhandler.cpp')
-rw-r--r-- | manipulationhandler.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/manipulationhandler.cpp b/manipulationhandler.cpp index f561ad7..daaba01 100644 --- a/manipulationhandler.cpp +++ b/manipulationhandler.cpp @@ -35,13 +35,3 @@ void ManipulationHandler::setCP(const arma::mat &Ys) emit mapChanged(Y); } - -void ManipulationHandler::setRewind(double t) -{ - if (!m_history->hasPrev()) { - return; - } - - arma::mat Y = m_history->Y() * t + m_history->prev() * (1.0 - t); - emit mapRewound(Y); -} |