From 5bd1fec462466d605f974fa27c3b00826a1bab57 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Fri, 12 Feb 2016 19:03:51 -0200 Subject: 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. --- manipulationhandler.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'manipulationhandler.cpp') 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); -} -- cgit v1.2.3