diff options
Diffstat (limited to 'projectionobserver.h')
-rw-r--r-- | projectionobserver.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/projectionobserver.h b/projectionobserver.h index 5ac6988..1c305bd 100644 --- a/projectionobserver.h +++ b/projectionobserver.h @@ -10,21 +10,29 @@ class ProjectionObserver : public QObject { Q_OBJECT public: + static const int OBSERVER_CURRENT = 0; + static const int OBSERVER_DIFF_PREVIOUS = 1; + static const int OBSERVER_DIFF_ORIGINAL = 2; + ProjectionObserver(const arma::mat &X, const arma::uvec &cpIndices); signals: - void mapChanged(const arma::vec &values) const; + void valuesChanged(const arma::vec &values) const; public slots: void setMap(const arma::mat &Y); + bool setType(int type); private: + bool emitValuesChanged() const; + + int m_type; arma::mat m_X, m_Y, m_origY, m_prevY; - arma::mat m_distX, m_distY, m_distOrigY, m_distPrevY; + arma::mat m_distX, m_distY, m_origDistY, m_prevDistY; arma::uvec m_cpIndices; // TODO: one per implemented measure - arma::vec m_values; + arma::vec m_values, m_prevValues, m_origValues; }; #endif // PROJECTIONOBSERVER_H |