|
cgv
|
Implementation of a specialized interpolator for rgb colors that allows separate piecewise linear interpolation of non-uniform breakpoints per color channel. More...
#include <named_color_schemes.h>
Public Types | |
| using | point_type = std::pair< ParamT, float > |
Public Member Functions | |
| rgb_per_channel_piecewise_interpolator (const std::vector< point_type > &red_points, const std::vector< point_type > &green_points, const std::vector< point_type > &blue_points) | |
| std::unique_ptr< cgv::math::interpolator< cgv::rgb, ParamT > > | clone () const override |
| cgv::rgb | at (ParamT t) const override |
| Return the interpolated value at position t. | |
Public Member Functions inherited from cgv::math::interpolator< ValueT, ParamT > | |
| virtual std::vector< ValueT > | quantize (size_t n) const |
| Return a sequence of n uniformly-spaced samples from the interpolator within the parameter range [0,1]. | |
Public Attributes | |
| std::vector< point_type > | points [3] |
Implementation of a specialized interpolator for rgb colors that allows separate piecewise linear interpolation of non-uniform breakpoints per color channel.
Definition at line 188 of file named_color_schemes.h.
| using cgv::media::schemes::rgb_per_channel_piecewise_interpolator< ParamT >::point_type = std::pair<ParamT, float> |
Definition at line 190 of file named_color_schemes.h.
|
inline |
Definition at line 192 of file named_color_schemes.h.
|
inline |
Definition at line 194 of file named_color_schemes.h.
|
inlineoverridevirtual |
Return the interpolated value at position t.
| t | The position at which to evaluate the interpolator. Typically in the range [0,1]. |
Implements cgv::math::interpolator< ValueT, ParamT >.
Definition at line 204 of file named_color_schemes.h.
|
inlineoverridevirtual |
Implements cgv::math::interpolator< ValueT, ParamT >.
Definition at line 200 of file named_color_schemes.h.
| std::vector<point_type> cgv::media::schemes::rgb_per_channel_piecewise_interpolator< ParamT >::points[3] |
Definition at line 212 of file named_color_schemes.h.