QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgsiconutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsiconutils.h
3 -------------------
4 begin : May 2021
5 copyright : (C) 2021 Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17#ifndef QGSICONUTILS_H
18#define QGSICONUTILS_H
19
20#include "qgis.h"
21#include "qgis_core.h"
22#include "qgis_sip.h"
23
24class QgsMapLayer;
25class QIcon;
26
32class CORE_EXPORT QgsIconUtils
33{
34
35 public:
36
40 static QIcon iconForWkbType( Qgis::WkbType type );
41
46 static QIcon iconForGeometryType( Qgis::GeometryType typeGroup );
47
51 static QIcon iconPoint();
52
56 static QIcon iconLine();
57
61 static QIcon iconPolygon();
62
68 static QIcon iconGeometryCollection();
69
73 static QIcon iconTable();
74
78 static QIcon iconRaster();
79
83 static QIcon iconDefaultLayer();
84
88 static QIcon iconMesh();
89
93 static QIcon iconVectorTile();
94
98 static QIcon iconPointCloud();
99
105 static QIcon iconTiledScene();
106
110 static QIcon iconForLayer( const QgsMapLayer *layer );
111
117 static QIcon iconForLayerType( Qgis::LayerType type );
118
119};
120
121#endif // QGSICONUTILS_H
122
123
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition qgis.h:358
LayerType
Types of layers that can be added to a map.
Definition qgis.h:190
WkbType
The WKB type describes the number of dimensions a geometry has.
Definition qgis.h:277
Contains utility functions for working with icons.
static QIcon iconForLayerType(Qgis::LayerType type)
Returns the default icon for the specified layer type.
static QIcon iconLine()
Returns an icon representing line geometries.
static QIcon iconPolygon()
Returns an icon representing polygon geometries.
static QIcon iconTiledScene()
Returns an icon representing tiled scene layers.
static QIcon iconForWkbType(Qgis::WkbType type)
Returns the icon for a vector layer whose geometry type is provided.
static QIcon iconGeometryCollection()
Returns an icon representing geometry collections.
static QIcon iconDefaultLayer()
Returns a default icon for layers, which aren't the standard raster/vector/... types.
static QIcon iconPointCloud()
Returns an icon representing point cloud layers.
static QIcon iconForGeometryType(Qgis::GeometryType typeGroup)
Returns the icon for a vector layer whose geometry typeGroup is provided.
static QIcon iconPoint()
Returns an icon representing point geometries.
static QIcon iconTable()
Returns an icon representing non-spatial layers (tables).
static QIcon iconRaster()
Returns an icon representing raster layers.
static QIcon iconForLayer(const QgsMapLayer *layer)
Returns the icon corresponding to a specified map layer.
static QIcon iconMesh()
Returns an icon representing mesh layers.
static QIcon iconVectorTile()
Returns an icon representing vector tile layers.
Base class for all map layer types.
Definition qgsmaplayer.h:80