Skip To Content ArcGIS for Developers Sign In Dashboard

PointBarrier Class

(Esri::ArcGISRuntime::PointBarrier)

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

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

Public Functions

PointBarrier()
PointBarrier(const Point &point)
PointBarrier(const PointBarrier &other)
PointBarrier(PointBarrier &&other)
~PointBarrier()
double addedCost(const QString &attributeName) const
int barrierId() const
BarrierType barrierType() const
CurbApproach curbApproach() const
Point geometry() const
bool isEmpty() const
LocationStatus locationStatus() const
QString name() const
void setAddedCost(const QString &attributeName, double addedCost)
void setBarrierId(int id)
void setBarrierType(BarrierType type)
void setCurbApproach(CurbApproach curbApproach)
void setGeometry(const Point &point)
void setName(const QString &name)
PointBarrier &operator=(const PointBarrier &other)
PointBarrier &operator=(PointBarrier &&other)

Detailed Description

A Point indicating where the network analysis should not traverse.

Barriers are used in network analyses. PointBarriers can either restrict a point on the underlying network from being traversed (such as a road closure) or to penalize traversing the point (such as taking time to pass through a checkpoint or road slowdown).

Member Function Documentation

PointBarrier::PointBarrier()

Default constructor.

PointBarrier::PointBarrier(const Point &point)

Constructor that takes in a point.

PointBarrier::PointBarrier(const PointBarrier &other)

Copy constructor from other PointBarrier.

PointBarrier::PointBarrier(PointBarrier &&other)

Move constructor from other PointBarrier.

PointBarrier::~PointBarrier()

Destructor.

double PointBarrier::addedCost(const QString &attributeName) const

Returns added cost of a given attributeName.

See also setAddedCost().

int PointBarrier::barrierId() const

Returns ID of this barrier.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also setBarrierId().

BarrierType PointBarrier::barrierType() const

Returns the BarrierType of this PointBarrier.

See also setBarrierType().

CurbApproach PointBarrier::curbApproach() const

Returns the CurbApproach of this PointBarrier.

See also setCurbApproach().

Point PointBarrier::geometry() const

Returns the Point of this PointBarrier.

See also setGeometry().

bool PointBarrier::isEmpty() const

Returns true if this PointBarrier is empty.

LocationStatus PointBarrier::locationStatus() const

Returns the LocationStatus of this PointBarrier.

QString PointBarrier::name() const

Returns the name of this PointBarrier.

This function was introduced in Esri::ArcGISRuntime 100.3.

See also setName().

void PointBarrier::setAddedCost(const QString &attributeName, double addedCost)

Sets the addedCost for a given attributeName.

See also addedCost().

void PointBarrier::setBarrierId(int id)

Sets the id of this barrier.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also barrierId().

void PointBarrier::setBarrierType(BarrierType type)

Returns the barrier type of this PointBarrier.

See also barrierType().

void PointBarrier::setCurbApproach(CurbApproach curbApproach)

Sets the curbApproach of this PointBarrier.

See also curbApproach().

void PointBarrier::setGeometry(const Point &point)

Sets the point of this PointBarrier.

See also geometry().

void PointBarrier::setName(const QString &name)

Sets the name of this PointBarrier.

This function was introduced in Esri::ArcGISRuntime 100.3.

See also name().

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

Assignment operator from other PointBarrier.

PointBarrier &PointBarrier::operator=(PointBarrier &&other)

Move operator from other PointBarrier.


Feedback on this topic?