KmlImageCoordinate Class

  • KmlImageCoordinate
  • class Esri::ArcGISRuntime::KmlImageCoordinate

    A KML image coordinate object. More...

    Header: #include <KmlImageCoordinate.h>
    Since: Esri::ArcGISRuntime 100.7
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    KmlImageCoordinate(double x, double y, Esri::ArcGISRuntime::KmlUnitsType xUnits, Esri::ArcGISRuntime::KmlUnitsType yUnits, QObject *parent = nullptr)
    virtual ~KmlImageCoordinate() override
    double x() const
    Esri::ArcGISRuntime::KmlUnitsType xUnits() const
    double y() const
    Esri::ArcGISRuntime::KmlUnitsType yUnits() const

    Detailed Description

    According to the OGC 2.3 specification in section 16.26.2 (https://docs.opengeospatial.org/is/12-007r2/12-007r2.html#1254) "Specifies an image coordinate system. The x and y values may each be specified in three different ways - as pixels (pixels), as fractions of the icon (fraction), or as inset pixels (insetPixels), which is an offset in pixels from the upper right corner of the icon. They may or may not be specified in a consistent manner - for example, x can be specified in pixels and y as a fraction." Use the KmlUnitsType enumeration (either via the xUnits and yUnits properties or via the KmlImageCoordinate(double, double, Esri::ArcGISRuntime::KmlUnitsType, Esri::ArcGISRuntime::KmlUnitsType, QObject*) constructor) to establish the KML image coordinate system. The KmlUnitsType::Pixels and KmlUnitsType::InsetPixels image coordinate systems are defined with device-independent pixels (DIPs).

    See also KmlUnitsType.

    Member Function Documentation

    KmlImageCoordinate::KmlImageCoordinate(double x, double y, Esri::ArcGISRuntime::KmlUnitsType xUnits, Esri::ArcGISRuntime::KmlUnitsType yUnits, QObject *parent = nullptr)

    Creates a KML image coordinate.

    • x - The x component of a point. Default is 0.5
    • y - The y component of a point. Default is 0.5
    • xUnits - Units in which the x value is specified. Default is KmlUnitsType::fraction.
    • yUnits - Units in which the y value is specified. Default is KmlUnitsType::fraction.
    • parent - An optional parent.

    See also KmlUnitsType and KmlUnitsType.

    [override virtual] KmlImageCoordinate::~KmlImageCoordinate()

    Destructor

    double KmlImageCoordinate::x() const

    The x component of a point.

    Esri::ArcGISRuntime::KmlUnitsType KmlImageCoordinate::xUnits() const

    Units in which the x value is specified.

    double KmlImageCoordinate::y() const

    The y component of a point.

    Esri::ArcGISRuntime::KmlUnitsType KmlImageCoordinate::yUnits() const

    Units in which the y value is specified.

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