78 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 );
94 const QPolygonF &triangle,
95 const QImage &textureImage,
96 float textureX1,
float textureY1,
97 float textureX2,
float textureY2,
98 float textureX3,
float textureY3
141 static void drawPicture( QPainter *painter,
const QPointF &point,
const QPicture &picture );
BlendMode
Blending modes defining the available composition modes that can be used when painting.
Contains miscellaneous painting utility functions.
static bool drawTriangleUsingTexture(QPainter *painter, const QPolygonF &triangle, const QImage &textureImage, float textureX1, float textureY1, float textureX2, float textureY2, float textureX3, float textureY3)
Draws a triangle onto a painter using a mapped texture image.
static int qtDefaultDpiY()
Returns the default Qt vertical DPI.
static Qgis::BlendMode getBlendModeEnum(QPainter::CompositionMode blendMode)
Returns a Qgis::BlendMode corresponding to a QPainter::CompositionMode.
static bool isClippingMode(Qgis::BlendMode mode)
Returns true if mode is a clipping blend mode.
static int qtDefaultDpiX()
Returns the default Qt horizontal DPI.
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)
Calculates the QTransform which maps the triangle defined by the points (inX1, inY1),...
static QPainter::CompositionMode getCompositionMode(Qgis::BlendMode blendMode)
Returns a QPainter::CompositionMode corresponding to a Qgis::BlendMode.
static void applyScaleFixForQPictureDpi(QPainter *painter)
Applies a workaround to a painter to avoid an issue with incorrect scaling when drawing QPictures.
static void drawPicture(QPainter *painter, const QPointF &point, const QPicture &picture)
Draws a picture onto a painter, correctly applying workarounds to avoid issues with incorrect scaling...