aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-12 16:35:25 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-12 16:35:25 +0100
commitf0285c3b3410d197b60599f5118b0b84ebd18cbd (patch)
treea5b8a932b52c7ae63f9942423c19f813e0589315
parent3ffbef1bd65d3db07f2db4b2d16bb91095f09da4 (diff)
Scatterplot: Aesthetical code changes.
-rw-r--r--scatterplot.cpp11
1 files changed, 5 insertions, 6 deletions
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;
}