diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-02-10 18:31:48 -0200 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-02-10 18:31:48 -0200 |
commit | b45a21976bece19da81166324dc1cc4260a0e0f4 (patch) | |
tree | 2f21da285edb214766fa559081b76a6754cfa8b0 /manipulationhandler.h | |
parent | 8d4e5ff43fd9d51dc05d8d2dd87f69ab35bee423 (diff) |
Added ProjectionHistory object for history tracking.
Diffstat (limited to 'manipulationhandler.h')
-rw-r--r-- | manipulationhandler.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/manipulationhandler.h b/manipulationhandler.h index f900ec8..8bb8a98 100644 --- a/manipulationhandler.h +++ b/manipulationhandler.h @@ -4,6 +4,8 @@ #include <QObject> #include <armadillo> +#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; }; |