Default Color normalization, using a sequential linear scaling in the range [ min, max ]
.
Definition at line 59 of file norm_linear.hpp.
|
| ColorNormalizationLinear ()=default |
| Constructor that sets min == 0.0 and max == 1.0 . More...
|
|
| ColorNormalizationLinear (ColorNormalizationLinear &&)=default |
|
| ColorNormalizationLinear (ColorNormalizationLinear const &)=default |
|
| ColorNormalizationLinear (double min, double max) |
| Constructor that sets min() and max() to the provided values. More...
|
|
template<class ForwardIterator > |
| ColorNormalizationLinear (ForwardIterator first, ForwardIterator last) |
| Constructor that sets min() and max() to the min and max of the provided range. More...
|
|
| ColorNormalizationLinear (std::vector< double > const &values) |
| Constructor that sets min() and max() to the min and max of the provided values . More...
|
|
virtual | ~ColorNormalizationLinear () override=default |
|
template<class ForwardIterator > |
ColorNormalizationLinear & | autoscale (ForwardIterator first, ForwardIterator last) |
| Set the min and max of the Palette so that they reflect the min and max valid values that are found in the range [ first, last ) . More...
|
|
ColorNormalizationLinear & | autoscale (std::vector< double > const &values) |
|
template<class ForwardIterator > |
ColorNormalizationLinear & | autoscale_max (ForwardIterator first, ForwardIterator last) |
| Same as autoscale(), but only updates the max_value(). More...
|
|
ColorNormalizationLinear & | autoscale_max (std::vector< double > const &values) |
|
template<class ForwardIterator > |
ColorNormalizationLinear & | autoscale_min (ForwardIterator first, ForwardIterator last) |
| Same as autoscale(), but only updates the min_value(). More...
|
|
ColorNormalizationLinear & | autoscale_min (std::vector< double > const &values) |
|
double | max_value () const |
| Minimum value, that is, where to end the color scale. More...
|
|
ColorNormalizationLinear & | max_value (double value) |
| Minimum value, that is, where to end the color scale. More...
|
|
double | min_value () const |
| Minimum value, that is, where to begin the color scale. More...
|
|
ColorNormalizationLinear & | min_value (double value) |
| Minimum value, that is, where to begin the color scale. More...
|
|
ColorNormalizationLinear & | operator= (ColorNormalizationLinear &&)=default |
|
ColorNormalizationLinear & | operator= (ColorNormalizationLinear const &)=default |
|
ColorNormalizationLinear & | scale (double min, double max) |
|
| ColorNormalization ()=default |
|
| ColorNormalization (ColorNormalization &&)=default |
|
| ColorNormalization (ColorNormalization const &)=default |
|
virtual | ~ColorNormalization ()=default |
|
bool | is_valid () const |
| Return whether ranges and other values are correct. More...
|
|
double | mask_value () const |
| Mask value that identifies invalid values. More...
|
|
ColorNormalization & | mask_value (double value) |
| Mask value that identifies invalid values. More...
|
|
double | operator() (double value) const |
| Normalize a value into range [ 0.0, 1.0 ] . More...
|
|
template<class ForwardIterator > |
std::vector< double > | operator() (ForwardIterator first, ForwardIterator last) const |
| Return the normalized values for a range of values. More...
|
|
std::vector< double > | operator() (std::vector< double > const &values) const |
| Return the normalized values for a vector of values . More...
|
|
ColorNormalization & | operator= (ColorNormalization &&)=default |
|
ColorNormalization & | operator= (ColorNormalization const &)=default |
|
|
template<class ForwardIterator > |
ColorNormalizationLinear & | autoscale_ (ForwardIterator first, ForwardIterator last, bool set_min, bool set_max) |
|
virtual bool | is_valid_ () const override |
| Return whether the ranges are correct. More...
|
|
virtual void | is_valid_or_throw_ () const |
| Throw if the ranges are incorrect. More...
|
|
virtual double | normalize_ (double value) const override |
| Normalization function. More...
|
|
virtual void | update_hook_ (double min, double max) |
| Called whenever the min and max are set automatically. Gives derived classes a chance to update their values. More...
|
|
Set the min and max of the Palette so that they reflect the min and max valid values that are found in the range [ first, last )
.
The provided iterator range needs to contain values that are convertible and comparable to double
. Any non-finite values or values that are equal to the mask_value() are skipped. If then no value is found at all, the min and max are not changed.
In derived classes, other values might also be set from this. For example, ColorNormalizationLinearDiverging also sets the mid value accordingly.
Definition at line 179 of file norm_linear.hpp.