MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::style::ColorRampPropertyValue Class Reference

#include <color_ramp_property_value.hpp>

Public Member Functions

 ColorRampPropertyValue ()
 
 ColorRampPropertyValue (std::shared_ptr< expression::Expression > value_)
 
bool isUndefined () const
 
template<typename Evaluator >
Color evaluate (const Evaluator &, TimePoint={}) const
 
Color evaluate (double rampEvaluationParameter) const
 
bool isDataDriven () const
 
bool hasDataDrivenPropertyDifference (const ColorRampPropertyValue &) const
 
const expression::ExpressiongetExpression () const
 

Friends

bool operator== (const ColorRampPropertyValue &lhs, const ColorRampPropertyValue &rhs)
 
bool operator!= (const ColorRampPropertyValue &lhs, const ColorRampPropertyValue &rhs)
 

Detailed Description

Special-case implementation of (a subset of) the PropertyValue<T> interface used for building the HeatmapColor paint property traits class.

Definition at line 14 of file color_ramp_property_value.hpp.

Constructor & Destructor Documentation

◆ ColorRampPropertyValue() [1/2]

mbgl::style::ColorRampPropertyValue::ColorRampPropertyValue ( )
inline

Definition at line 27 of file color_ramp_property_value.hpp.

◆ ColorRampPropertyValue() [2/2]

mbgl::style::ColorRampPropertyValue::ColorRampPropertyValue ( std::shared_ptr< expression::Expression value_)
inline

Definition at line 28 of file color_ramp_property_value.hpp.

Member Function Documentation

◆ evaluate() [1/2]

template<typename Evaluator >
Color mbgl::style::ColorRampPropertyValue::evaluate ( const Evaluator &  ,
TimePoint  = {} 
) const
inline

Definition at line 34 of file color_ramp_property_value.hpp.

◆ evaluate() [2/2]

Color mbgl::style::ColorRampPropertyValue::evaluate ( double  rampEvaluationParameter) const
inline

Definition at line 36 of file color_ramp_property_value.hpp.

◆ getExpression()

const expression::Expression& mbgl::style::ColorRampPropertyValue::getExpression ( ) const
inline

Definition at line 44 of file color_ramp_property_value.hpp.

◆ hasDataDrivenPropertyDifference()

bool mbgl::style::ColorRampPropertyValue::hasDataDrivenPropertyDifference ( const ColorRampPropertyValue ) const
inline

Definition at line 42 of file color_ramp_property_value.hpp.

◆ isDataDriven()

bool mbgl::style::ColorRampPropertyValue::isDataDriven ( ) const
inline

Definition at line 41 of file color_ramp_property_value.hpp.

◆ isUndefined()

bool mbgl::style::ColorRampPropertyValue::isUndefined ( ) const
inline

Definition at line 30 of file color_ramp_property_value.hpp.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const ColorRampPropertyValue lhs,
const ColorRampPropertyValue rhs 
)
friend

Definition at line 22 of file color_ramp_property_value.hpp.

◆ operator==

bool operator== ( const ColorRampPropertyValue lhs,
const ColorRampPropertyValue rhs 
)
friend

Definition at line 18 of file color_ramp_property_value.hpp.


The documentation for this class was generated from the following file: