QGIS API Documentation 3.29.0-Master (ade4f0cf0f)
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#include "qgswkbtypes.h"
24
25class QgsMapLayer;
26class QIcon;
27
33class CORE_EXPORT QgsIconUtils
34{
35
36 public:
37
41 static QIcon iconForWkbType( QgsWkbTypes::Type type );
42
47 static QIcon iconForGeometryType( QgsWkbTypes::GeometryType typeGroup );
48
52 static QIcon iconPoint();
53
57 static QIcon iconLine();
58
62 static QIcon iconPolygon();
63
69 static QIcon iconGeometryCollection();
70
74 static QIcon iconTable();
75
79 static QIcon iconRaster();
80
84 static QIcon iconDefaultLayer();
85
89 static QIcon iconMesh();
90
94 static QIcon iconVectorTile();
95
99 static QIcon iconPointCloud();
100
104 static QIcon iconForLayer( const QgsMapLayer *layer );
105
111 static QIcon iconForLayerType( QgsMapLayerType type );
112
113};
114
115#endif // QGSICONUTILS_H
116
117
Contains utility functions for working with icons.
Definition: qgsiconutils.h:34
Base class for all map layer types.
Definition: qgsmaplayer.h:73
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
Definition: qgswkbtypes.h:141
Type
The WKB type describes the number of dimensions a geometry has.
Definition: qgswkbtypes.h:70
QgsMapLayerType
Types of layers that can be added to a map.
Definition: qgis.h:47