aboutsummaryrefslogtreecommitdiff
path: root/voronoisplat.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-12-19 14:48:46 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2015-12-19 14:48:46 +0100
commite3b86f961acd3279181615253ee9a683bd403470 (patch)
treee33c52625012f29812b788fa55001d275ceeb2be /voronoisplat.h
parent59abb2488c3375ef7e32a777deaacca8a48490cd (diff)
Updated VoronoiSplat header with comments/formatting.
Diffstat (limited to 'voronoisplat.h')
-rw-r--r--voronoisplat.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/voronoisplat.h b/voronoisplat.h
index ce84e74..4092da3 100644
--- a/voronoisplat.h
+++ b/voronoisplat.h
@@ -16,19 +16,22 @@ class VoronoiSplatRenderer
: public QQuickFramebufferObject::Renderer
{
public:
- // 'size' must be square (and power of 2); item is the QQuickFBO that
- // creates this
+ // 'size' must be square (and power of 2)
VoronoiSplatRenderer(const QSize &size);
~VoronoiSplatRenderer();
void synchronize(QQuickFramebufferObject *item);
+
// 'points' should be a 2D points matrix (each point in a row)
void setSites(const arma::mat &points);
+
+ // Set the value to be colormapped in each site
void setValues(const arma::vec &values);
+
// Set colormap data based on the given color scale;
void setColorMap(const ColorScale *scale);
- QOpenGLFramebufferObject *createFramebufferObject(const QSize & size);
+ QOpenGLFramebufferObject *createFramebufferObject(const QSize &size);
void render();
private: