QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
96 switch ( layer->
type() )
111 const QgsVectorLayer *vl = qobject_cast<const QgsVectorLayer *>( layer );
static QIcon iconRaster()
Returns an icon representing raster layers.
static QIcon iconTable()
Returns an icon representing non-spatial layers (tables).
@ MeshLayer
Mesh layer. Added in QGIS 3.2.
static QIcon iconPolygon()
Returns an icon representing polygon geometries.
@ VectorLayer
Vector layer.
static QIcon iconForLayer(const QgsMapLayer *layer)
Returns the icon corresponding to a specified map layer.
@ AnnotationLayer
Contains freeform, georeferenced annotations. Added in QGIS 3.16.
QgsMapLayerType
Types of layers that can be added to a map.
static QIcon iconLine()
Returns an icon representing line geometries.
Type
The WKB type describes the number of dimensions a geometry has.
static QIcon iconDefaultLayer()
Returns a default icon for layers, which aren't the standard raster/vector/...
static QIcon iconForLayerType(QgsMapLayerType type)
Returns the default icon for the specified layer type.
@ GroupLayer
Composite group layer. Added in QGIS 3.24.
@ RasterLayer
Raster layer.
static QIcon iconPointCloud()
Returns an icon representing point cloud layers.
static QIcon iconPoint()
Returns an icon representing point geometries.
static QIcon iconGeometryCollection()
Returns an icon representing geometry collections.
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
Represents a vector layer which manages a vector based data sets.
static QIcon iconVectorTile()
Returns an icon representing vector tile layers.
static QIcon iconForWkbType(QgsWkbTypes::Type type)
Returns the icon for a vector layer whose geometry type is provided.
Base class for all map layer types. This is the base class for all map layer types (vector,...
@ VectorTileLayer
Vector tile layer. Added in QGIS 3.14.
static GeometryType geometryType(Type type) SIP_HOLDGIL
Returns the geometry type for a WKB type, e.g., both MultiPolygon and CurvePolygon would have a Polyg...
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
static QIcon iconMesh()
Returns an icon representing mesh layers.
Q_INVOKABLE QgsWkbTypes::GeometryType geometryType() const
Returns point, line or polygon.
@ PointCloudLayer
Point cloud layer. Added in QGIS 3.18.
@ PluginLayer
Plugin based layer.