aboutsummaryrefslogtreecommitdiff
path: root/scatterplot.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-16 20:55:45 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-16 20:55:45 +0100
commit4c066a82962a9a0634dcfe0a305de7b2a4cacc5b (patch)
tree5dc99bee13b3c216426945c3e1692d4585f2cf6a /scatterplot.h
parent8ffae45e1dd3965763fd74f2f20d88478e939389 (diff)
Added the Colormap component.
* The Colormap component is a simple rect with a texture mapped that displays a ColorScale with a fixed number of samples. This number of samples is exported as a member const, which is used on other components (such as VoronoiSplat). * The texture mapping is reflecting the colormap lookup used in VoronoiSplat. * The ColorScale class now has a method for sampling the color scale and outputs the samples to iterator-style objects, providing easy intergration with existing code.
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 656ed09..f577819 100644
--- a/scatterplot.h
+++ b/scatterplot.h
@@ -25,6 +25,8 @@ public:
void setAutoScale(bool autoScale);
Q_INVOKABLE bool saveToFile(const QUrl &url);
+ static const int PADDING = 10;
+
signals:
void xyChanged(const arma::mat &XY) const;
void xyInteractivelyChanged(const arma::mat &XY) const;