aboutsummaryrefslogtreecommitdiff
path: root/scatterplot.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-05-18 18:33:50 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-05-18 18:33:50 -0300
commit7c4333eed407886114f33d803a3199c50556e4e3 (patch)
tree0f46c89bc7eaa08994faa1095b480baaa1f64c72 /scatterplot.h
parent54571b4a4dcc076923325ee09ad348f389fc25a5 (diff)
Updated UI.
- Removed unnecessary UI elements from QML file; - Added the ColorScale class and implemented glyph color mapping from class labels; - Mark geometry nodes of individual glyphs as dirty when updating the schene graph.
Diffstat (limited to 'scatterplot.h')
-rw-r--r--scatterplot.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/scatterplot.h b/scatterplot.h
index f38ce78..3f2fee6 100644
--- a/scatterplot.h
+++ b/scatterplot.h
@@ -5,22 +5,27 @@
#include <vector>
#include <QQuickItem>
+#include "colorscale.h"
+
class Scatterplot : public QQuickItem
{
Q_OBJECT
public:
- Scatterplot();
+ Scatterplot(QQuickItem *parent = 0);
~Scatterplot();
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *);
void setData(const arma::mat &data);
signals:
public slots:
+protected:
+ QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *);
+
private:
arma::mat m_data;
+ ColorScale m_colorScale;
};
#endif // SCATTERPLOT_H