Skip To Content ArcGIS for Developers Sign In Dashboard

PolylineBarrier Class

(Esri::ArcGISRuntime::PolylineBarrier)

A Polyline indicating where the network analysis should not traverse. More...

Header: #include <PolylineBarrier>
Since: Esri::ArcGISRuntime 100.0

Public Functions

PolylineBarrier()
PolylineBarrier(const Polyline &polyline)
PolylineBarrier(const PolylineBarrier &other)
PolylineBarrier(PolylineBarrier &&other)
~PolylineBarrier()
int barrierId() const
BarrierType barrierType() const
Polyline geometry() const
bool isEmpty() const
QString name() const
double scaleFactorForCost(const QString &attributeName) const
void setBarrierId(int id)
void setBarrierType(BarrierType type)
void setGeometry(const Polyline &polyline)
void setName(const QString &name)
void setScaleFactorForCost(const QString &attributeName, double scaleFactorForCost)
PolylineBarrier &operator=(const PolylineBarrier &other)
PolylineBarrier &operator=(PolylineBarrier &&other)

Detailed Description

A Polyline indicating where the network analysis should not traverse.

Barriers are used in network analyses. Barriers can be used to represent locations where the analysis cannot pass through. As an example, you can model road closures from a flooded creek or river with a PolylineBarrier to avoid that location.

Member Function Documentation

PolylineBarrier::PolylineBarrier()

Default constructor.

PolylineBarrier::PolylineBarrier(const Polyline &polyline)

Constructor that takes in a polyline.

PolylineBarrier::PolylineBarrier(const PolylineBarrier &other)

Copy constructor from other PolylineBarrier.

PolylineBarrier::PolylineBarrier(PolylineBarrier &&other)

Move constructor from other PolylineBarrier.

PolylineBarrier::~PolylineBarrier()

Destructor.

int PolylineBarrier::barrierId() const

Returns ID of this barrier.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also setBarrierId().

BarrierType PolylineBarrier::barrierType() const

Returns the BarrierType of this PolylineBarrier.

See also setBarrierType().

Polyline PolylineBarrier::geometry() const

Returns the Polyline of this PolylineBarrier.

See also setGeometry().

bool PolylineBarrier::isEmpty() const

Returns true if this PolylineBarrier is empty.

QString PolylineBarrier::name() const

Returns the name of this PolylineBarrier.

This function was introduced in Esri::ArcGISRuntime 100.3.

See also setName().

double PolylineBarrier::scaleFactorForCost(const QString &attributeName) const

Returns scale factor for cost of a given attributeName.

See also setScaleFactorForCost().

void PolylineBarrier::setBarrierId(int id)

Sets the id of this barrier.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also barrierId().

void PolylineBarrier::setBarrierType(BarrierType type)

Sets the type of this PolylineBarrier.

See also barrierType().

void PolylineBarrier::setGeometry(const Polyline &polyline)

Sets the polyline of this PolylineBarrier.

See also geometry().

void PolylineBarrier::setName(const QString &name)

Sets the name of this PolylineBarrier.

This function was introduced in Esri::ArcGISRuntime 100.3.

See also name().

void PolylineBarrier::setScaleFactorForCost(const QString &attributeName, double scaleFactorForCost)

Sets the added cost (scaleFactorForCost) for a given attributeName.

See also scaleFactorForCost().

PolylineBarrier &PolylineBarrier::operator=(const PolylineBarrier &other)

Assignment operator from other PolylineBarrier.

PolylineBarrier &PolylineBarrier::operator=(PolylineBarrier &&other)

Move operator from other PolylineBarrier.


Feedback on this topic?