QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
qgspainting.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspainting.h
3 ---------------------
4 begin : July 2016
5 copyright : (C) 2016 by Martin Dobias
6 email : wonder dot sk at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef QGSPAINTING_H
16#define QGSPAINTING_H
17
18#include "qgis_core.h"
19#include "qgis.h"
20#include "qgis_sip.h"
21
22#include <QPainter>
23
24class QTransform;
25
32class CORE_EXPORT QgsPainting
33{
34 public:
35
41 static QPainter::CompositionMode getCompositionMode( Qgis::BlendMode blendMode );
42
48 static Qgis::BlendMode getBlendModeEnum( QPainter::CompositionMode blendMode );
49
55 static bool isClippingMode( Qgis::BlendMode mode );
56
79 static QTransform triangleToTriangleTransform( double inX1, double inY1, double inX2, double inY2, double inX3, double inY3, double outX1, double outY1, double outX2, double outY2, double outX3, double outY3, bool &ok SIP_OUT );
80
93 static bool drawTriangleUsingTexture(
94 QPainter *painter,
95 const QPolygonF &triangle,
96 const QImage &textureImage,
97 float textureX1, float textureY1,
98 float textureX2, float textureY2,
99 float textureX3, float textureY3
100 );
101
102};
103
104#endif // QGSPAINTING_H
BlendMode
Blending modes defining the available composition modes that can be used when painting.
Definition qgis.h:3413
Contains miscellaneous painting utility functions.
Definition qgspainting.h:33
#define SIP_OUT
Definition qgis_sip.h:58