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

#include <property_expression.hpp>

Inheritance diagram for mbgl::style::PropertyExpressionBase:
mbgl::style::PropertyExpression< T >

Public Member Functions

 PropertyExpressionBase (std::unique_ptr< expression::Expression >)
 
bool isZoomConstant () const noexcept
 
bool isFeatureConstant () const noexcept
 
bool isRuntimeConstant () const noexcept
 
float interpolationFactor (const Range< float > &, float) const noexcept
 
Range< float > getCoveringStops (float, float) const noexcept
 
const expression::ExpressiongetExpression () const noexcept
 
std::shared_ptr< const expression::ExpressiongetSharedExpression () const noexcept
 

Public Attributes

bool useIntegerZoom = false
 

Protected Attributes

std::shared_ptr< const expression::Expressionexpression
 
variant< std::nullptr_t, const expression::Interpolate *, const expression::Step * > zoomCurve
 
bool isZoomConstant_
 
bool isFeatureConstant_
 
bool isRuntimeConstant_
 

Detailed Description

Definition at line 15 of file property_expression.hpp.

Constructor & Destructor Documentation

◆ PropertyExpressionBase()

mbgl::style::PropertyExpressionBase::PropertyExpressionBase ( std::unique_ptr< expression::Expression )
explicit

Member Function Documentation

◆ getCoveringStops()

Range<float> mbgl::style::PropertyExpressionBase::getCoveringStops ( float  ,
float   
) const
noexcept

◆ getExpression()

const expression::Expression& mbgl::style::PropertyExpressionBase::getExpression ( ) const
noexcept

◆ getSharedExpression()

std::shared_ptr<const expression::Expression> mbgl::style::PropertyExpressionBase::getSharedExpression ( ) const
noexcept

Can be used for aggregating property expressions from multiple properties(layers) into single match / case expression. Method may be removed if a better way of aggregation is found.

◆ interpolationFactor()

float mbgl::style::PropertyExpressionBase::interpolationFactor ( const Range< float > &  ,
float   
) const
noexcept

◆ isFeatureConstant()

bool mbgl::style::PropertyExpressionBase::isFeatureConstant ( ) const
noexcept

◆ isRuntimeConstant()

bool mbgl::style::PropertyExpressionBase::isRuntimeConstant ( ) const
noexcept

◆ isZoomConstant()

bool mbgl::style::PropertyExpressionBase::isZoomConstant ( ) const
noexcept

Member Data Documentation

◆ expression

std::shared_ptr<const expression::Expression> mbgl::style::PropertyExpressionBase::expression
protected

Definition at line 34 of file property_expression.hpp.

◆ isFeatureConstant_

bool mbgl::style::PropertyExpressionBase::isFeatureConstant_
protected

Definition at line 37 of file property_expression.hpp.

◆ isRuntimeConstant_

bool mbgl::style::PropertyExpressionBase::isRuntimeConstant_
protected

Definition at line 38 of file property_expression.hpp.

◆ isZoomConstant_

bool mbgl::style::PropertyExpressionBase::isZoomConstant_
protected

Definition at line 36 of file property_expression.hpp.

◆ useIntegerZoom

bool mbgl::style::PropertyExpressionBase::useIntegerZoom = false

Definition at line 31 of file property_expression.hpp.

◆ zoomCurve

variant<std::nullptr_t, const expression::Interpolate*, const expression::Step*> mbgl::style::PropertyExpressionBase::zoomCurve
protected

Definition at line 35 of file property_expression.hpp.


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