Skip To Content ArcGIS for Developers Sign In Dashboard

LayerContent Class

(Esri::ArcGISRuntime::LayerContent)

Marker interface inherited by all types of layers. More...

Header: #include <LayerContent>
Since: Esri::ArcGISRuntime 100.0
Inherits: Object
Inherited By:

Esri::ArcGISRuntime::AnnotationSublayer, Esri::ArcGISRuntime::ArcGISSublayer, Esri::ArcGISRuntime::Layer, and Esri::ArcGISRuntime::WmsSublayer

Public Functions

~LayerContent()
virtual bool canChangeVisibility() const = 0
virtual bool isAutoFetchLegendInfos() const = 0
virtual bool isShowInLegend() const = 0
virtual bool isVisible() const = 0
virtual bool isVisibleAtScale(double scale) const = 0
virtual LegendInfoListModel *legendInfos() const = 0
virtual QString name() const = 0
virtual void setAutoFetchLegendInfos(bool autoFetchLegendInfos) = 0
virtual void setShowInLegend(bool showInLegend) = 0
virtual void setVisible(bool visible) = 0
virtual QList<LayerContent *> subLayerContents() const = 0
  • 31 public functions inherited from QObject

Signals

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

Marker interface inherited by all types of layers.

A pure virtual interface implemented by all layers and sublayers.

Member Function Documentation

LayerContent::~LayerContent()

Destructor.

[pure virtual] bool LayerContent::canChangeVisibility() const

Gets whether the layer can change visibility.

Returns true if the layer can change visibility.

[pure virtual] bool LayerContent::isAutoFetchLegendInfos() const

Gets whether legend infos are automatically fetched by the layer's legend info list model.

Returns true if legend infos will be fetched automatically when the LegendInfoListModel is instantiated.

[pure virtual] bool LayerContent::isShowInLegend() const

Gets whether the layer participates in the legend.

Returns true if layer participates in the legend.

[pure virtual] bool LayerContent::isVisible() const

Gets the visibility.

Returns true if the layer is visible.

[pure virtual] bool LayerContent::isVisibleAtScale(double scale) const

Gets whether the layer is visible at the specified scale.

Returns true if the layer is visible at the specified scale.

[pure virtual] LegendInfoListModel *LayerContent::legendInfos() const

Gets a list model containing legend infos for the layer and any sublayers.

Returns a LegendInfoListModel representing the legend information for the layer and its sublayers.

Note: Layers that use a DictionaryRenderer will not have any legend infos.

[pure virtual] QString LayerContent::name() const

Gets the name of the layer.

[pure virtual] void LayerContent::setAutoFetchLegendInfos(bool autoFetchLegendInfos)

Sets whether legend infos are automatically fetched by the layer's legend info list model.

Set autoFetchLegendInfos to true (default is false) to have legend infos fetched automatically when the LegendInfoListModel is instantiated.

See also isAutoFetchLegendInfos().

[pure virtual] void LayerContent::setShowInLegend(bool showInLegend)

Sets whether the layer participates in the legend.

Set showInLegend to true to show the layer in the legend.

See also isShowInLegend().

[pure virtual] void LayerContent::setVisible(bool visible)

Set the visibility.

Set visible to true to enable layer to be visible.

See also isVisible().

[signal] void LayerContent::subLayerContentChanged()

Signal emitted when the subLayerContents changes for this object.

[pure virtual] QList<LayerContent *> LayerContent::subLayerContents() const

Gets a list of LayerContent for any sublayers.

Returns a list of LayerContent types of all sublayers.


Feedback on this topic?