• PointCloudValueFilter
  • class Esri::ArcGISRuntime::PointCloudValueFilter

    A filter to include or exclude points using attribute values. More...

    Header: #include <PointCloudValueFilter.h>
    Since: Esri::ArcGISRuntime 300.1
    Inherits: Esri::ArcGISRuntime::PointCloudFilter

    Public Functions

    PointCloudValueFilter(const QString &attributeName, const QList<double> &values, Esri::ArcGISRuntime::PointCloudValueFilterMode mode, QObject *parent = nullptr)
    virtual ~PointCloudValueFilter() override
    Esri::ArcGISRuntime::PointCloudValueFilterMode mode() const
    void setMode(Esri::ArcGISRuntime::PointCloudValueFilterMode mode)
    void setValues(const QList<double> &values)
    QList<double> values() const

    Detailed Description

    This filter includes or excludes points in a PointCloudLayer based on an attribute value. For example, LiDAR point classifications that specify the type of surface reflected by the laser pulse are typically stored in the "CLASS_CODE" attribute. The different categories (for example building, high vegetation, ground) are defined using numeric codes in the LAS files. The PointCloudValueFilter can be used to include or exclude points based on these classification codes by specifying the "CLASS_CODE" attribute as the attribute name and the corresponding numeric integer codes as the values for the filter. The full list of categories, including the corresponding codes, can be found in the LAS specification.

    Member Function Documentation

    PointCloudValueFilter::PointCloudValueFilter(const QString &attributeName, const QList<double> &values, Esri::ArcGISRuntime::PointCloudValueFilterMode mode, QObject *parent = nullptr)

    Creates a PointCloudValueFilter with the specified collection of classification codes for the filter to apply.

    • attributeName - The name of the attribute for the filter to use.
    • values - A collection of numeric values for the filter to apply.
    • mode - Whether points should be included or excluded from the filter.
    • parent - The optional parent QObject.

    [override virtual noexcept] PointCloudValueFilter::~PointCloudValueFilter()

    Destructor.

    Esri::ArcGISRuntime::PointCloudValueFilterMode PointCloudValueFilter::mode() const

    Returns whether points should be included or excluded from the filter.

    See also setMode() and PointCloudValueFilterMode.

    void PointCloudValueFilter::setMode(Esri::ArcGISRuntime::PointCloudValueFilterMode mode)

    Sets the mode to mode.

    See also mode.

    void PointCloudValueFilter::setValues(const QList<double> &values)

    Sets the values to values.

    See also values.

    QList<double> PointCloudValueFilter::values() const

    Returns a QList of double numeric values for the filter to apply.

    If values is empty, include mode hides all points and exclude mode does not affect point visibility.

    See also setValues().