From f0285c3b3410d197b60599f5118b0b84ebd18cbd Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 12 Jan 2016 16:35:25 +0100 Subject: Scatterplot: Aesthetical code changes. --- scatterplot.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'scatterplot.cpp') diff --git a/scatterplot.cpp b/scatterplot.cpp index 96e9ecb..919c75c 100644 --- a/scatterplot.cpp +++ b/scatterplot.cpp @@ -10,7 +10,7 @@ static const qreal GLYPH_OPACITY_SELECTED = 1.0; static const QColor OUTLINE_COLOR(0, 0, 0); static const QColor SELECTION_COLOR(128, 128, 128, 96); -static const int GLYPH_SIZE = 4.f; +static const int GLYPH_SIZE = 6.f; static const float PADDING = 10.f; Scatterplot::Scatterplot(QQuickItem *parent) @@ -128,17 +128,16 @@ QSGNode *Scatterplot::newSplatNode() QSGSimpleTextureNode *node = new QSGSimpleTextureNode; VoronoiSplatTexture *tex = new VoronoiSplatTexture(QSize(width(), height())); - node->setTexture(tex); - node->setOwnsTexture(true); - node->setRect(x(), y(), width(), height()); - node->setSourceRect(0, 0, width(), height()); - tex->setSites(m_xy); tex->setValues(m_colorData); tex->setColormap(m_colorScale); tex->updateTexture(); window()->resetOpenGLState(); + node->setTexture(tex); + node->setOwnsTexture(true); + node->setSourceRect(0, 0, width(), height()); + return node; } -- cgit v1.2.3