diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-03-02 15:47:24 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-03-02 15:47:24 -0300 |
commit | 3ce49858c6859fccc2e4d35839c34685348790d1 (patch) | |
tree | 9919729ae2d094ab3bed9fb45184c027713d9127 /voronoisplat.cpp | |
parent | 00efaedf4e328604598975a07a497d1ce769bb19 (diff) |
Improvements related to ColorScale and screenshots.
* ColorScale: now a pointer whenever needed. main() takes care of
updating extents
* New class DivergentColorScale: works specifically for divergent
scales, always has 3 colors as input: negative values, 0, positive
values
* ManipulationHandler: ProjectionHistory no longer needed
Diffstat (limited to 'voronoisplat.cpp')
-rw-r--r-- | voronoisplat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/voronoisplat.cpp b/voronoisplat.cpp index ad553ba..2ae5a1b 100644 --- a/voronoisplat.cpp +++ b/voronoisplat.cpp @@ -79,10 +79,10 @@ void VoronoiSplat::setValues(const arma::vec &values) update(); } -void VoronoiSplat::setColorScale(const ColorScale &scale) +void VoronoiSplat::setColorScale(const ColorScale *scale) { - m_cmap.resize(scale.numColors() * 3); - scale.sample(scale.numColors(), m_cmap.begin()); + m_cmap.resize(SAMPLES * 3); + scale->sample(SAMPLES, m_cmap.begin()); emit colorScaleChanged(scale); setColormapChanged(true); |