A class that represents a polygon feature to be avoided (or penalized) by a route. A polygon barrier may represent a regional area of interest within the network to be avoided (i.e., not entered) by a route (e.g., a flood zone) or to penalize/delay a route within any portions of the area traversed by the route (e.g., a busy downtown area or a bad neighborhood).
The polygon barrier class is derived from the graphic class.
Relevant samples:
Default constructor.
[explicit]
PolygonBarrier::PolygonBarrier(const Esri::ArcGISRuntime::Polygon &polygon)
Constructor that takes in a polygon.
PolygonBarrier::PolygonBarrier(const Esri::ArcGISRuntime::PolygonBarrier &other)Copy constructor from other PolygonBarrier.
[noexcept]
PolygonBarrier::PolygonBarrier(Esri::ArcGISRuntime::PolygonBarrier &&other)
Move constructor from other PolygonBarrier.
[noexcept]
PolygonBarrier::~PolygonBarrier()
Destructor.
[since Esri::ArcGISRuntime 100.6]
int PolygonBarrier::barrierId() const
Returns the polygon barrier ID.
This is a caller supplied foreign key that can be used to associate output polygon barriers with input polygon barriers.
{RouteParameters::setPolygonBarriers(Esri::ArcGISRuntime::ArcGISFeatureTable*, const Esri::ArcGISRuntime::QueryParameters&)}, {Esri::ArcGISRuntime::RouteResult::polygonBarriers} {RouteResult::polygonBarriers}, {Esri::ArcGISRuntime::ClosestFacilityParameters::setPolygonBarriers(Esri::ArcGISRuntime::ArcGISFeatureTable*, const Esri::ArcGISRuntime::QueryParameters&)} {ClosestFacilityParameters::setPolygonBarriers(Esri::ArcGISRuntime::ArcGISFeatureTable*, const Esri::ArcGISRuntime::QueryParameters&)}, {Esri::ArcGISRuntime::ClosestFacilityResult::polygonBarriers} {ClosestFacilityResult::polygonBarriers}, {Esri::ArcGISRuntime::ServiceAreaParameters::setPolygonBarriers(Esri::ArcGISRuntime::ArcGISFeatureTable*, const Esri::ArcGISRuntime::QueryParameters&)} {ServiceAreaParameters::setPolygonBarriers(Esri::ArcGISRuntime::ArcGISFeatureTable*, const Esri::ArcGISRuntime::QueryParameters&)}, {Esri::ArcGISRuntime::ServiceAreaResult::polygonBarriers} {ServiceAreaResult::polygonBarriers}
This function was introduced in Esri::ArcGISRuntime 100.6.
See also setBarrierId() and Esri::ArcGISRuntime::RouteParameters::setPolygonBarriers().
Esri::ArcGISRuntime::BarrierType PolygonBarrier::barrierType() constReturns the BarrierType of this PolygonBarrier.
See also setBarrierType().
[since Esri::ArcGISRuntime 200.1]
Esri::ArcGISRuntime::PolygonBarrier PolygonBarrier::clone() const
Clones the PolygonBarrier to a new instance.
Returns a new instance of the current PolygonBarrier.
This function was introduced in Esri::ArcGISRuntime 200.1.
Esri::ArcGISRuntime::Polygon PolygonBarrier::geometry() constReturns the Polygon of this PolygonBarrier.
See also setGeometry().
bool PolygonBarrier::isEmpty() constReturns true
if this PolygonBarrier is empty.
[since Esri::ArcGISRuntime 100.3]
QString PolygonBarrier::name() const
Returns the name of this PolygonBarrier.
This function was introduced in Esri::ArcGISRuntime 100.3.
See also setName().
double PolygonBarrier::scaleFactorForCost(const QString &attributeName) constReturns the scale factor for cost of a given attributeName.
See also setScaleFactorForCost().
[since Esri::ArcGISRuntime 100.6]
void PolygonBarrier::setBarrierId(int id)
Sets the id of this barrier.
This function was introduced in Esri::ArcGISRuntime 100.6.
See also barrierId.
void PolygonBarrier::setBarrierType(Esri::ArcGISRuntime::BarrierType type)Sets the type of this PolygonBarrier.
See also barrierType.
void PolygonBarrier::setGeometry(const Esri::ArcGISRuntime::Polygon &polygon)Sets the polygon of this PolygonBarrier.
See also geometry.
[since Esri::ArcGISRuntime 100.3]
void PolygonBarrier::setName(const QString &name)
Sets the name of this PolygonBarrier.
This function was introduced in Esri::ArcGISRuntime 100.3.
See also name.
void PolygonBarrier::setScaleFactorForCost(const QString &attributeName, double scaleFactorForCost)Sets the added cost (scaleFactorForCost) for a given attributeName.
See also scaleFactorForCost().
[noexcept]
Esri::ArcGISRuntime::PolygonBarrier &PolygonBarrier::operator=(Esri::ArcGISRuntime::PolygonBarrier &&other)
Move operator from other PolygonBarrier.
Esri::ArcGISRuntime::PolygonBarrier &PolygonBarrier::operator=(const Esri::ArcGISRuntime::PolygonBarrier &other)Assignment operator from other PolygonBarrier.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4