QGIS API Documentation 3.41.0-Master (45a0abf3bec)
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_sip.h"
21#include "qgis_core.h"
22#include "qgis.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:337
LayerType
Types of layers that can be added to a map.
Definition qgis.h:169
WkbType
The WKB type describes the number of dimensions a geometry has.
Definition qgis.h:256
Contains utility functions for working with icons.
Base class for all map layer types.
Definition qgsmaplayer.h:76