diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-18 18:33:50 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-21 18:09:02 -0300 |
commit | a96f9f1a2688c215c478cfbee5748b4bb2043a43 (patch) | |
tree | 0f46c89bc7eaa08994faa1095b480baaa1f64c72 /scatterplot.h | |
parent | 54571b4a4dcc076923325ee09ad348f389fc25a5 (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 scene
graph.
Diffstat (limited to 'scatterplot.h')
-rw-r--r-- | scatterplot.h | 9 |
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 |