Skip To Content ArcGIS for Developers Sign In Dashboard

EncLayer Class


A layer that can visualize ENC data. More...

Header: #include <EncLayer>
Since: Esri::ArcGISRuntime 100.2
Inherits: Layer

Public Functions

EncLayer(EncCell *encCell, QObject *parent = nullptr)
EncCell *cell() const
void clearSelection() const
void selectFeature(EncFeature *encfeature) const

Static Public Members

EncEnvironmentSettings *encEnvironmentSettings()
  • 10 static public members inherited from QObject

Additional Inherited Members

Detailed Description

A layer that can visualize ENC data.

// create ENC Cell using path
EncCell* encCell = new EncCell(path, parent);

// visualize ENC data in ENC layer.
EncLayer* encLayer = new EncLayer(encCell, parent);

See also Layer and EncCell.

Member Function Documentation

EncLayer::EncLayer(EncCell *encCell, QObject *parent = nullptr)

Constructor that accepts the ENC cell (encCell), and an optional parent.

See also EncCell.



EncCell *EncLayer::cell() const

Returns the ENC cell object associated with the ENC layer.

See also EncCell.

void EncLayer::clearSelection() const

Clears / Unselects a previously selected ENC feature (if any).

See also EncFeature.

[static] EncEnvironmentSettings *EncLayer::encEnvironmentSettings()

Use this method to obtain a reference to the EncEnvironmentSettings object.

These settings apply to all ENC layers.

void EncLayer::selectFeature(EncFeature *encfeature) const

Selects an ENC feature.

Only a single ENC feature can be selected at a time. Selecting a feature using this method will unselect a previously selected feature.

  • encfeature - The ENC feature to select.

Note: Some ENC features are rendered as multiple objects on the map - for example, a soundings feature might consist of many individual measurements, each of which will be highlighted when the feature is selected.

See also EncFeature.

Feedback on this topic?