MapLibre Native for Qt
Loading...
Searching...
No Matches
QMapLibre::FilterParameter Class Reference

A helper utility to manage filter parameters for a layer. More...

#include <QMapLibre/FilterParameter>

Inheritance diagram for QMapLibre::FilterParameter:
QMapLibre::StyleParameter

Signals

void expressionUpdated ()
 Signal emitted when the filter expression is updated.
 
- Signals inherited from QMapLibre::StyleParameter
void ready (StyleParameter *parameter)
 Signal emitted when the style parameter is ready.
 
void updated (StyleParameter *parameter)
 Signal emitted when the style parameter is updated.
 

Public Member Functions

 FilterParameter (QObject *parent=nullptr)
 Default constructor.
 
QVariantList expression () const
 Filter expression.
 
void setExpression (const QVariantList &expression)
 Set the filter expression.
 
- Public Member Functions inherited from QMapLibre::StyleParameter
 StyleParameter (QObject *parent=nullptr)
 Default constructor.
 
bool operator== (const StyleParameter &other) const
 Comparison operator.
 
bool isReady () const
 Check if the style parameter is ready.
 
virtual QVariant parsedProperty (const char *propertyName) const
 Get the property value.
 
bool hasProperty (const char *propertyName) const
 Check for property existence.
 
void updateProperty (const char *propertyName, const QVariant &value)
 Update property value.
 
QVariantMap toVariantMap () const
 Return a map of all properties.
 
QString styleId () const
 Return style identifier.
 
void setStyleId (const QString &id)
 Set style identifier.
 

Protected Attributes

QVariantList m_expression
 Filter expression.
 
- Protected Attributes inherited from QMapLibre::StyleParameter
const int m_initialPropertyCount = staticMetaObject.propertyCount()
 Number of properties in the base class.
 
bool m_ready {}
 Ready status of the style parameter.
 
QString m_styleId
 Style identifier of the parameter.
 

Additional Inherited Members

- Public Slots inherited from QMapLibre::StyleParameter
void updateNotify ()
 Notify that the style parameter has been updated.
 

Detailed Description

A helper utility to manage filter parameters for a layer.

Member Function Documentation

◆ expression()

QVariantList QMapLibre::FilterParameter::expression ( ) const
nodiscard

Filter expression.

Returns
QVariantList.

◆ setExpression()

void QMapLibre::FilterParameter::setExpression ( const QVariantList & expression)

Set the filter expression.

Parameters
expressionFilter expression as QVariantList.

expressionUpdated() signal is emitted when the expression is updated.