PolylineBarrier Class

  • PolylineBarrier
  • class Esri::ArcGISRuntime::PolylineBarrier

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

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

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

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

    Detailed Description

    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(Esri::ArcGISRuntime::PolylineBarrier &&other)

    Move constructor from other PolylineBarrier.

    PolylineBarrier::PolylineBarrier(const Esri::ArcGISRuntime::PolylineBarrier &other)

    Copy constructor from other PolylineBarrier.

    PolylineBarrier::PolylineBarrier(const Esri::ArcGISRuntime::Polyline &polyline)

    Constructor that takes in a polyline.

    PolylineBarrier::PolylineBarrier()

    Default constructor.

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

    Move operator from other PolylineBarrier.

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

    Assignment operator 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().

    Esri::ArcGISRuntime::BarrierType PolylineBarrier::barrierType() const

    Returns the BarrierType of this PolylineBarrier.

    See also setBarrierType().

    Esri::ArcGISRuntime::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(Esri::ArcGISRuntime::BarrierType type)

    Sets the type of this PolylineBarrier.

    See also barrierType().

    void PolylineBarrier::setGeometry(const Esri::ArcGISRuntime::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().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.