Skip To Content ArcGIS for Developers Sign In Dashboard

UtilityNearestNeighbor Class

(Esri::ArcGISRuntime::UtilityNearestNeighbor)

A filter object to return the next N features from the starting point. More...

Header: #include <UtilityNearestNeighbor>
Since: Esri::ArcGISRuntime 100.8
Inherits: Object

Public Functions

UtilityNearestNeighbor(std::shared_ptr<QRTImpl::UtilityNearestNeighborImpl> impl, QObject *parent)
~UtilityNearestNeighbor()
QList<UtilityAssetType *> assetTypes() const
QList<UtilityCategory *> categories() const
UtilityNetworkAttribute *costNetworkAttribute() const
int count() const
  • 31 public functions inherited from QObject

Static Public Members

UtilityNearestNeighbor *createWithAssetTypes(UtilityNetworkAttribute *costNetworkAttribute, int count, const QList<UtilityAssetType *> &assetTypes, QObject *parent)
UtilityNearestNeighbor *createWithAssetTypesAndCategories(UtilityNetworkAttribute *costNetworkAttribute, int count, const QList<UtilityAssetType *> &assetTypes, const QList<UtilityCategory *> &categories, QObject *parent)
UtilityNearestNeighbor *createWithCategories(UtilityNetworkAttribute *costNetworkAttribute, int count, const QList<UtilityCategory *> &categories, QObject *parent)
  • 10 static public members inherited from QObject

Additional Inherited Members

Detailed Description

A filter object to return the next N features from the starting point.

This type can only be created by calling static methods createWithAssetTypes , createWithCategories or createWithAssetTypesAndCategories.

Member Function Documentation

UtilityNearestNeighbor::UtilityNearestNeighbor(std::shared_ptr<QRTImpl::UtilityNearestNeighborImpl> impl, QObject *parent)

UtilityNearestNeighbor::~UtilityNearestNeighbor()

Destructor.

QList<UtilityAssetType *> UtilityNearestNeighbor::assetTypes() const

Returns a list of UtilityAssetType that are used to define features to return.

QList<UtilityCategory *> UtilityNearestNeighbor::categories() const

Returns a list of UtilityCategory that are used to define features to return.

UtilityNetworkAttribute *UtilityNearestNeighbor::costNetworkAttribute() const

Returns the UtilityNetworkAttribute used to determine the definition of "nearest".

int UtilityNearestNeighbor::count() const

Returns the number of nearest features to return.

[static] UtilityNearestNeighbor *UtilityNearestNeighbor::createWithAssetTypes(UtilityNetworkAttribute *costNetworkAttribute, int count, const QList<UtilityAssetType *> &assetTypes, QObject *parent)

Creates a filter object to return the next N features from the starting point.

  • costNetworkAttribute - The UtilityNetworkAttribute used to determine the definition of "nearest".
  • count - The number of nearest features to return.
  • assetTypes - The collection of UtilityAssetType that are used to define features to return.
  • parent - The parent object (optional).

[static] UtilityNearestNeighbor *UtilityNearestNeighbor::createWithAssetTypesAndCategories(UtilityNetworkAttribute *costNetworkAttribute, int count, const QList<UtilityAssetType *> &assetTypes, const QList<UtilityCategory *> &categories, QObject *parent)

Creates a filter object to return the next N features from the starting point.

  • costNetworkAttribute - The UtilityNetworkAttribute used to determine the definition of "nearest".
  • count - The number of nearest features to return.
  • assetTypes - The collection of UtilityAssetType that are used to define features to return.
  • categories - The collection of UtilityCategory that are used to define features to return.
  • parent - The parent object (optional).

[static] UtilityNearestNeighbor *UtilityNearestNeighbor::createWithCategories(UtilityNetworkAttribute *costNetworkAttribute, int count, const QList<UtilityCategory *> &categories, QObject *parent)

Creates a filter object to return the next N features from the starting point.

  • costNetworkAttribute - The UtilityNetworkAttribute used to determine the definition of "nearest".
  • count - The number of nearest features to return.
  • categories - The collection of UtilityCategory that are used to define features to return.
  • parent - The parent object (optional).

Feedback on this topic?