KmlModel Class

  • KmlModel
  • class Esri::ArcGISRuntime::KmlModel

    A KML model object. More...

    Header: #include <KmlModel.h>
    Since: Esri::ArcGISRuntime 200.6
    Inherits: Esri::ArcGISRuntime::KmlGeometry

    Public Functions

    KmlModel()
    KmlModel(const QUrl &url, Esri::ArcGISRuntime::KmlOrientation *orientation, Esri::ArcGISRuntime::KmlScale *scale)
    KmlModel(const QUrl &url, const Esri::ArcGISRuntime::Point &geometry, Esri::ArcGISRuntime::KmlAltitudeMode altitudeMode)
    KmlModel(const QUrl &url, const Esri::ArcGISRuntime::Point &geometry, Esri::ArcGISRuntime::KmlAltitudeMode altitudeMode, Esri::ArcGISRuntime::KmlOrientation *orientation, Esri::ArcGISRuntime::KmlScale *scale)
    KmlModel(const Esri::ArcGISRuntime::KmlModel &other)
    KmlModel(Esri::ArcGISRuntime::KmlModel &&other)
    KmlModel(const Esri::ArcGISRuntime::KmlGeometry &other)
    ~KmlModel()
    bool isValid() const
    Esri::ArcGISRuntime::KmlOrientation *orientation(QObject *parent) const
    Esri::ArcGISRuntime::KmlScale *scale(QObject *parent) const
    QUrl url() const
    Esri::ArcGISRuntime::KmlModel &operator=(const Esri::ArcGISRuntime::KmlModel &other)
    Esri::ArcGISRuntime::KmlModel &operator=(Esri::ArcGISRuntime::KmlModel &&other)

    Detailed Description

    Member Function Documentation

    KmlModel::KmlModel()

    Default constructor.

    Note: This is provided for convenience only and will construct an unusable, empty object.

    KmlModel::KmlModel(const QUrl &url, Esri::ArcGISRuntime::KmlOrientation *orientation, Esri::ArcGISRuntime::KmlScale *scale)

    Creates a KmlModel from a model file on disk or the network using the specified orientation and scale.

    • url - The URL to the model file on disk or the network.
    • orientation - The orientation values to apply to the model.
    • scale - The scale values to apply to the model.

    This constructor is used when creating a model for use in a track, which will adopt the track's geometry and altitude mode.

    KmlModel::KmlModel(const QUrl &url, const Esri::ArcGISRuntime::Point &geometry, Esri::ArcGISRuntime::KmlAltitudeMode altitudeMode)

    Creates a KmlModel from a model file on disk or the network and a KmlModel using a specified altitude mode.

    • url - The URL to the model file on disk or the network.
    • geometry - The geographic location where the model is placed.
    • altitudeMode - Determines how altitude values are interpreted.

    KmlModel::KmlModel(const QUrl &url, const Esri::ArcGISRuntime::Point &geometry, Esri::ArcGISRuntime::KmlAltitudeMode altitudeMode, Esri::ArcGISRuntime::KmlOrientation *orientation, Esri::ArcGISRuntime::KmlScale *scale)

    Creates a KmlModel from a model file on disk or the network and a KmlModel using the specified altitude mode, orientation, and scale.

    • url - The URL to the model file on disk or the network.
    • geometry - The geographic location where the model is placed.
    • altitudeMode - Determines how altitude values are interpreted.
    • orientation - The orientation values to apply to the model.
    • scale - The scale values to apply to the model.

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

    Copy constructor from other KmlModel.

    KmlModel::KmlModel(Esri::ArcGISRuntime::KmlModel &&other)

    Move constructor from other KmlModel.

    [explicit] KmlModel::KmlModel(const Esri::ArcGISRuntime::KmlGeometry &other)

    Converting constructor from other KmlGeometry.

    See also Downcast helper functions.

    KmlModel::~KmlModel()

    Destructor.

    bool KmlModel::isValid() const

    Gets whether this KmlModel is valid.

    A KmlModel is valid if it is not empty and objectType is KmlGeometryObjectType::Model.

    Returns true if valid.

    Esri::ArcGISRuntime::KmlOrientation *KmlModel::orientation(QObject *parent) const

    Returns the orientation applied to the model.

    Note: a parent is required. Since KmlModel is a value object and not a QObject, the returned object cannot be a child of this object. If you wish to have no parent, pass nullptr. If a parent was already present if provided on the constructor, it will be preserved.

    Esri::ArcGISRuntime::KmlScale *KmlModel::scale(QObject *parent) const

    Returns the scale factors applied to the model.

    Note: a parent is required. Since KmlModel is a value object and not a QObject, the returned object cannot be a child of this object. If you wish to have no parent, pass nullptr. If a parent was already present if provided on the constructor, it will be preserved.

    QUrl KmlModel::url() const

    Returns the URL to the file on disk or the network..

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

    Assignment operator from other KmlModel.

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

    Move operator from other KmlModel.

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

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close