• PointCloudBitfieldFilter
  • class Esri::ArcGISRuntime::PointCloudBitfieldFilter

    A filter that controls which points are rendered according to their associated flags. More...

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

    Public Functions

    PointCloudBitfieldFilter(const QString &attributeName, const QList<quint32> &requiredClearBits, const QList<quint32> &requiredSetBits, QObject *parent = nullptr)
    virtual ~PointCloudBitfieldFilter() override
    QList<quint32> requiredClearBits() const
    QList<quint32> requiredSetBits() const
    void setRequiredClearBits(const QList<quint32> &requiredClearBits)
    void setRequiredSetBits(const QList<quint32> &requiredSetBits)

    Detailed Description

    Use the PointCloudBitfieldFilter to filter points based on the value of specific flags. The PointCloudBitfieldFilter is commonly used with the "FLAGS" attribute. This attribute refers to a subset of the adjacent Point Data Record Format items. This grouping starts with Classification Flags and ends with Edge of Flight Line. Each flag is defined by its bit position and value. If the flag is set, its value is 1; otherwise, its value is 0. The dataset's Point Data Record Format determines the bit position of each flag. The size of the bitfield can be sourced from PointCloudAttribute::valueType. For example, an unsigned 8-bit integer bitfield would have 8 bits (or flags) per point, and valid bit positions would be from 0 to 7. You can read more about Point Data Record Formats in the LAS specification.

    Member Function Documentation

    PointCloudBitfieldFilter::PointCloudBitfieldFilter(const QString &attributeName, const QList<quint32> &requiredClearBits, const QList<quint32> &requiredSetBits, QObject *parent = nullptr)

    Creates a point cloud bitfield filter with the specified collections of bit positions.

    • attributeName - The name of the attribute to use for the filter.
    • requiredClearBits - A collection of bit positions where a point is only displayed if the corresponding bit value is 0.
    • requiredSetBits - A collection of bit positions where a point is only displayed if the corresponding bit value is 1.
    • parent - The optional parent QObject.

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

    Destructor.

    QList<quint32> PointCloudBitfieldFilter::requiredClearBits() const

    Returns an array of bit positions where the bit value must be 0, otherwise the point will not be displayed.

    If both requiredClearBits and requiredSetBits are empty, this filter does not affect point visibility.

    See also setRequiredClearBits().

    QList<quint32> PointCloudBitfieldFilter::requiredSetBits() const

    Returns an array of bit positions where the bit value must be 1, otherwise the point will not be displayed.

    If both requiredSetBits and requiredClearBits are empty, this filter does not affect point visibility.

    See also setRequiredSetBits().

    void PointCloudBitfieldFilter::setRequiredClearBits(const QList<quint32> &requiredClearBits)

    Sets the requiredClearBits to requiredClearBits.

    See also requiredClearBits.

    void PointCloudBitfieldFilter::setRequiredSetBits(const QList<quint32> &requiredSetBits)

    Sets the requiredSetBits to requiredSetBits.

    See also requiredSetBits.