Skip To Content ArcGIS for Developers Sign In Dashboard

KmlNode Class

(Esri::ArcGISRuntime::KmlNode)

A KML Node. More...

Public Functions

~KmlNode()
QColor balloonBackgroundColor() const
QString balloonContent() const
QString description() const
Envelope extent() const
bool isHighlighted() const
bool isVisible() const
QString kmlNodeId() const
KmlNodeType kmlNodeType() const
QString name() const
KmlNode *parentNode() const
Error refreshError() const
KmlRefreshStatus refreshStatus() const
TaskWatcher saveAs(const QString &kmzFile) const
void setDescription(const QString &description)
void setHighlighted(bool highlighted)
void setKmlNodeId(const QString &kmlNodeId)
void setName(const QString &name)
void setSnippet(const QString &snippet)
void setSnippetMaxLines(int maxLines)
void setViewpoint(const KmlViewpoint &viewpoint)
void setVisible(bool visible)
QString snippet() const
int snippetMaxLines() const
QImage uxIcon() const
QColor uxIconColor() const
int uxIconId() const
KmlViewpoint viewpoint() const
  • 31 public functions inherited from QObject

Signals

void iconUpdated()
void refreshStatusChanged()
void saveAsCompleted(QUuid taskId)

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

A KML Node.

KML is a file format used to display geographic data (geometric shapes, symbology and attributes). KML uses a tag-based structure with nested elements and attributes and is based on the XML standard. The KML files are often distributed in KMZ files, which are zipped KML files with a .kmz extension.

Member Function Documentation

KmlNode::~KmlNode()

Destructor.

QColor KmlNode::balloonBackgroundColor() const

Returns the color mask to be applied to the KML node's balloon border.

QString KmlNode::balloonContent() const

Returns the balloon content that should be displayed in a balloon popup for the KML node.

QString KmlNode::description() const

Returns the description of the KML node.

See also setDescription().

Envelope KmlNode::extent() const

Returns the extent for the KML node.

[signal] void KmlNode::iconUpdated()

Signal emitted when the uxIcon property changes for this KML node.

bool KmlNode::isHighlighted() const

Returns a flag indicating if the KML node is highlighted.

bool KmlNode::isVisible() const

Returns a flag indicating if the KML node is visible.

QString KmlNode::kmlNodeId() const

Returns the kmlNodeId of the KML node.

The kmlNodeId is a standard XML ID and can be empty.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also setKmlNodeId().

KmlNodeType KmlNode::kmlNodeType() const

Returns the KmlNodeType of this KML Node object.

QString KmlNode::name() const

Returns the name of the KML node.

See also setName().

KmlNode *KmlNode::parentNode() const

Returns the KML node's parent.

Error KmlNode::refreshError() const

Returns the KML node's refresh error.

KmlRefreshStatus KmlNode::refreshStatus() const

Returns the KML node's refresh status.

Use the node refresh status to update the node's properties and update application UI.

  • KmlRefreshStatus::None - No action required.
  • KmlRefreshStatus::InProgress - Invalidate the node and its children. Application may show an appropriate UI cue such as a spinning wheel on top of the node's TOC icon to indicate in-progress status and to restrict user interaction with the node.
  • KmlRefreshStatus::Completed - Read and update the node's properties and its children.
  • KmlRefreshStatus::Error - Application may call refreshError to get the reason for failure and show the error message. Also, applications may show an appropriate UI cue such as a red X with the node's TOC icon to indicate the failed status.

See also refreshError.

[signal] void KmlNode::refreshStatusChanged()

Signal emitted when the refreshStatus property changes for this KML node.

TaskWatcher KmlNode::saveAs(const QString &kmzFile) const

Saves the node and any referenced local files into a zipped KMZ archive at local file path kmzFile

The node will be saved to a KMZ file to ensure that any referenced files are available locally when sharing the file with others. If this method is called on a leaf node (e.g. KMLPlacemark, KMLGroundOverlay, etc), only that node and its referenced files will be saved. If this method is called on container node (e.g. KMLDocument, KMLFolder), the node and all of its children and referenced files will be saved. If this method is called on a KMLNetworkLink, the link will be saved but the children will not. This is because the children will simply be refetched when the saved KMLNetworkLink is loaded. The filename supports unicode characters as well as nested directories.

The saveAsCompleted signal is fired when a saveAs operation completes.

This function was introduced in Esri::ArcGISRuntime 100.6.

[signal] void KmlNode::saveAsCompleted(QUuid taskId)

The signal emitted when the saveAs task with the ID taskId completes.

void KmlNode::setDescription(const QString &description)

Sets the description of the KML node.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also description().

void KmlNode::setHighlighted(bool highlighted)

Sets the isHighlighted property to highlighted.

See also isHighlighted().

void KmlNode::setKmlNodeId(const QString &kmlNodeId)

Sets the ID of this KML node to kmlNodeId.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also kmlNodeId().

void KmlNode::setName(const QString &name)

Sets the name of the KML node.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also name().

void KmlNode::setSnippet(const QString &snippet)

Sets the KML node's snippet.

See snippet

This function was introduced in Esri::ArcGISRuntime 100.6.

See also snippet().

void KmlNode::setSnippetMaxLines(int maxLines)

Sets the maximum number of lines of snippet to be shown in the UI to maxLines.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also snippetMaxLines().

void KmlNode::setViewpoint(const KmlViewpoint &viewpoint)

Sets the KML node's viewpoint.

See viewpoint.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also viewpoint().

void KmlNode::setVisible(bool visible)

Sets the isVisible property to visible.

See also isVisible().

QString KmlNode::snippet() const

Returns the KML node's snippet.

Snippets can be defined for KML nodes as an additional short description for UI display. If no snippet is specified, you can take the first few lines of the description. The maximum number of lines to display is specified by the snippetMaxLines property.

See also setSnippet().

int KmlNode::snippetMaxLines() const

Returns the maximum number of lines of snippet to be shown in the UI.

See also setSnippetMaxLines().

QImage KmlNode::uxIcon() const

Returns the UX icon of a KML node.

Use this icon to represent the KML node in the TOC or list item or any UI element.

QColor KmlNode::uxIconColor() const

Returns the color mask to be applied to the KML node's image buffer.

Returns a color mask that can be used to blend the image associated with KML node.

int KmlNode::uxIconId() const

Returns the UX icon id.

KmlViewpoint KmlNode::viewpoint() const

Returns the KML node's viewpoint.

The KML viewpoint is the specified vantage point for looking at the node. This can be used to show a particular node in the view (for example, if a user selected it in a TOC).

See also setViewpoint().


Feedback on this topic?