aboutsummaryrefslogtreecommitdiff
path: root/scatterplot.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-09-03 14:31:52 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-09-03 14:31:52 -0300
commite05a1bd658a7bacb4e13f05b7125ceed7a33dd4b (patch)
treefbd6c8bca9368f33b2e26094610d08a0300c5d7f /scatterplot.h
parenta1956a4ff879eb2d34c7a0ca448f48ee6e64ce99 (diff)
Updated Scatteplot's drawing code.
- All glyphs use the same geometry, placement is done via affine transforms - Geometry memory handled using unique_ptr - Added outline to each glyph, avoiding color issues with the background
Diffstat (limited to 'scatterplot.h')
-rw-r--r--scatterplot.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scatterplot.h b/scatterplot.h
index 7ed58c8..4275561 100644
--- a/scatterplot.h
+++ b/scatterplot.h
@@ -1,6 +1,7 @@
#ifndef SCATTERPLOT_H
#define SCATTERPLOT_H
+#include <memory>
#include <armadillo>
#include <QtQuick>
@@ -54,6 +55,7 @@ private:
QSet<int> m_selectedGlyphs;
+ std::unique_ptr<QSGGeometry> m_glyphGeometryPtr, m_glyphOutlineGeometryPtr;
bool m_shouldUpdateGeometry, m_shouldUpdateMaterials;
arma::vec m_colorData;