QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
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( Qgis::WkbType type );
42
47 static QIcon iconForGeometryType( Qgis::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( Qgis::LayerType type );
112
113};
114
115#endif // QGSICONUTILS_H
116
117
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition: qgis.h:227
LayerType
Types of layers that can be added to a map.
Definition: qgis.h:114
WkbType
The WKB type describes the number of dimensions a geometry has.
Definition: qgis.h:154
Contains utility functions for working with icons.
Definition: qgsiconutils.h:34
Base class for all map layer types.
Definition: qgsmaplayer.h:73