Skip To Content ArcGIS for Developers Sign In Dashboard

UtilityAssociation Class

(Esri::ArcGISRuntime::UtilityAssociation)

A connectivity, containment, or structural attachment association. More...

Header: #include <UtilityAssociation>
Since: Esri::ArcGISRuntime 100.7
Inherits: Object

Public Functions

~UtilityAssociation()
UtilityAssociationType associationType() const
UtilityElement *fromElement() const
Geometry geometry() const
QUuid globalId() const
bool isContainmentVisible() const
UtilityElement *toElement() const
  • 31 public functions inherited from QObject

Additional Inherited Members

Detailed Description

A connectivity, containment, or structural attachment association.

Associations are an integral part of network topology. Connectivity associations allow connectivity between two junctions that don't have geometric coincidence (are not in the same location). Structural attachment associations allow modeling equipment attached to structures. Containment associations allow modeling containment of features within other features. Network traces make use of associations. Associations are defined using two UtilityElement objects.

Member Function Documentation

UtilityAssociation::~UtilityAssociation()

Destructor.

UtilityAssociationType UtilityAssociation::associationType() const

Returns the UtilityAssociationType of this association.

UtilityElement *UtilityAssociation::fromElement() const

Returns the first participant in a UtilityAssociation.

If this is a containment association, this property represents the container. If this is a structural attachment association, this property represents the structure.

Geometry UtilityAssociation::geometry() const

Returns the geometry of this UtilityAssociation.

This geometry represents the connection between UtilityAssociation::fromElement and UtilityAssociation::toElement. This property is valid only on connectivity and structural attachment UtilityAssociation objects returned by UtilityNetwork::associations(const Envelope& extent) or UtilityNetwork::associations(const Envelope& extent, UtilityAssociationType type).

This function was introduced in Esri::ArcGISRuntime 100.8.

QUuid UtilityAssociation::globalId() const

Returns the global ID of the association.

bool UtilityAssociation::isContainmentVisible() const

If this UtilityAssociation represents a containment association, returns whether the containment is visible.

UtilityElement *UtilityAssociation::toElement() const

Returns the second participant in an association.

If this is a containment association, this property represents the content. If this is a structural attachment association, this property represents the attached item.


Feedback on this topic?