From b45a21976bece19da81166324dc1cc4260a0e0f4 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 10 Feb 2016 18:31:48 -0200 Subject: Added ProjectionHistory object for history tracking. --- manipulationhandler.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'manipulationhandler.h') diff --git a/manipulationhandler.h b/manipulationhandler.h index f900ec8..8bb8a98 100644 --- a/manipulationhandler.h +++ b/manipulationhandler.h @@ -4,6 +4,8 @@ #include #include +#include "projectionhistory.h" + class ManipulationHandler : public QObject { @@ -17,8 +19,11 @@ public: TECHNIQUE_PEKALSKA }; - ManipulationHandler(const arma::mat &X, const arma::uvec &cpIndices); - void setTechnique(Technique technique); + ManipulationHandler(const arma::mat &X, + const arma::uvec &cpIndices, + ProjectionHistory *history); + + void setTechnique(Technique technique) { m_technique = technique; } signals: void cpChanged(const arma::mat &cpY) const; @@ -33,9 +38,9 @@ public slots: void setRewind(double t); private: - arma::mat m_X, m_Y, m_firstY, m_prevY; + arma::mat m_X; arma::uvec m_cpIndices, m_rpIndices; - bool m_hasFirst, m_hasPrev; + ProjectionHistory *m_history; Technique m_technique; }; -- cgit v1.2.3