From e3b86f961acd3279181615253ee9a683bd403470 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sat, 19 Dec 2015 14:48:46 +0100 Subject: Updated VoronoiSplat header with comments/formatting. --- voronoisplat.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'voronoisplat.h') 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: -- cgit v1.2.3