#include <interpolate.hpp>
|
| Interpolate (const type::Type &type_, Interpolator interpolator_, std::unique_ptr< Expression > input_, std::map< double, std::unique_ptr< Expression >> stops_) |
|
const std::unique_ptr< Expression > & | getInput () const |
|
const Interpolator & | getInterpolator () const |
|
void | eachChild (const std::function< void(const Expression &)> &visit) const override |
|
void | eachStop (const std::function< void(double, const Expression &)> &visit) const |
|
Range< float > | getCoveringStops (const double lower, const double upper) const |
|
double | interpolationFactor (const Range< double > &inputLevels, const double inputValue) const |
|
bool | operator== (const Expression &e) const override |
|
std::vector< std::optional< Value > > | possibleOutputs () const override |
|
mbgl::Value | serialize () const override |
|
std::string | getOperator () const override |
|
| Expression (Kind kind_, type::Type type_) |
|
virtual | ~Expression ()=default |
|
virtual EvaluationResult | evaluate (const EvaluationContext ¶ms) const =0 |
|
bool | operator!= (const Expression &rhs) const |
|
Kind | getKind () const |
|
type::Type | getType () const |
|
EvaluationResult | evaluate (std::optional< float > zoom, const Feature &feature, std::optional< double > colorRampParameter) const |
|
EvaluationResult | evaluate (std::optional< float > zoom, const Feature &feature, std::optional< double > colorRampParameter, const std::set< std::string > &availableImages) const |
|
EvaluationResult | evaluate (std::optional< float > zoom, const Feature &feature, std::optional< double > colorRampParameter, const std::set< std::string > &availableImages, const CanonicalTileID &canonical) const |
|
EvaluationResult | evaluate (std::optional< mbgl::Value > accumulated, const Feature &feature) const |
|
|
template<typename T > |
static bool | childrenEqual (const T &lhs, const T &rhs) |
|
static bool | childEqual (const std::unique_ptr< Expression > &lhs, const std::unique_ptr< Expression > &rhs) |
|
template<typename T > |
static bool | childEqual (const std::pair< T, std::unique_ptr< Expression >> &lhs, const std::pair< T, std::unique_ptr< Expression >> &rhs) |
|
template<typename T > |
static bool | childEqual (const std::pair< T, std::shared_ptr< Expression >> &lhs, const std::pair< T, std::shared_ptr< Expression >> &rhs) |
|
static bool | childEqual (const std::pair< std::unique_ptr< Expression >, std::unique_ptr< Expression >> &lhs, const std::pair< std::unique_ptr< Expression >, std::unique_ptr< Expression >> &rhs) |
|
Definition at line 20 of file interpolate.hpp.
◆ Interpolate()
◆ eachChild()
void mbgl::style::expression::Interpolate::eachChild |
( |
const std::function< void(const Expression &)> & |
visit | ) |
const |
|
inlineoverridevirtual |
◆ eachStop()
void mbgl::style::expression::Interpolate::eachStop |
( |
const std::function< void(double, const Expression &)> & |
visit | ) |
const |
|
inline |
◆ getCoveringStops()
Range<float> mbgl::style::expression::Interpolate::getCoveringStops |
( |
const double |
lower, |
|
|
const double |
upper |
|
) |
| const |
|
inline |
◆ getInput()
const std::unique_ptr<Expression>& mbgl::style::expression::Interpolate::getInput |
( |
| ) |
const |
|
inline |
◆ getInterpolator()
const Interpolator& mbgl::style::expression::Interpolate::getInterpolator |
( |
| ) |
const |
|
inline |
◆ getOperator()
std::string mbgl::style::expression::Interpolate::getOperator |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ interpolationFactor()
double mbgl::style::expression::Interpolate::interpolationFactor |
( |
const Range< double > & |
inputLevels, |
|
|
const double |
inputValue |
|
) |
| const |
|
inline |
◆ operator==()
bool mbgl::style::expression::Interpolate::operator== |
( |
const Expression & |
e | ) |
const |
|
inlineoverridevirtual |
◆ possibleOutputs()
std::vector<std::optional<Value> > mbgl::style::expression::Interpolate::possibleOutputs |
( |
| ) |
const |
|
overridevirtual |
Statically analyze the expression, attempting to enumerate possible outputs. Returns an array of values plus the sentinel null optional value, used to indicate that the complete set of outputs is statically undecidable.
Implements mbgl::style::expression::Expression.
◆ serialize()
mbgl::Value mbgl::style::expression::Interpolate::serialize |
( |
| ) |
const |
|
overridevirtual |
◆ input
const std::unique_ptr<Expression> mbgl::style::expression::Interpolate::input |
|
protected |
◆ interpolator
const Interpolator mbgl::style::expression::Interpolate::interpolator |
|
protected |
◆ stops
const std::map<double, std::unique_ptr<Expression> > mbgl::style::expression::Interpolate::stops |
|
protected |
The documentation for this class was generated from the following file:
- /home/runner/work/maplibre-native/maplibre-native/include/mbgl/style/expression/interpolate.hpp