aboutsummaryrefslogtreecommitdiff
path: root/interactionhandler.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-12-19 12:27:02 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2015-12-19 12:27:02 +0100
commit20fb359d2a487f425463f2efe2390c1d34e724d9 (patch)
treec20ba104c3630233bdc741a07f5908c997f32a62 /interactionhandler.h
parent044eb56f2a332ef10927a8539ab1450b53add6b5 (diff)
InteractionHandler: added setTechnique()
* Added new method to set the technique being used (should probably add the related signals * Added a new protected constructor to use enums with QML * Enum type renamed to Technique (was InteractiveTechnique) voronoisplat.cpp \
Diffstat (limited to 'interactionhandler.h')
-rw-r--r--interactionhandler.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/interactionhandler.h b/interactionhandler.h
index 784746e..eeda230 100644
--- a/interactionhandler.h
+++ b/interactionhandler.h
@@ -8,15 +8,16 @@ class InteractionHandler : public QObject
{
Q_OBJECT
public:
- enum InteractiveTechnique {
+ Q_ENUMS(Technique)
+ enum Technique {
TECHNIQUE_PLMP,
TECHNIQUE_LAMP,
- TECHNIQUE_LSP
+ TECHNIQUE_LSP,
+ TECHNIQUE_PEKALSKA
};
InteractionHandler(const arma::mat &X, const arma::uvec &sampleIndices);
-
- void setTechnique(InteractiveTechnique technique) { m_technique = technique; }
+ void setTechnique(Technique technique);
signals:
void subsampleChanged(const arma::mat &Y);
@@ -24,10 +25,13 @@ signals:
public slots:
void setSubsample(const arma::mat &Ys);
+protected:
+ InteractionHandler() {}
+
private:
arma::mat m_X, m_Y;
arma::uvec m_sampleIndices;
- InteractiveTechnique m_technique;
+ Technique m_technique;
};
#endif // INTERACTIONHANDLER_H