Editor plugin: WIP

This commit is contained in:
Jakub Melka
2024-04-20 19:41:14 +02:00
parent b481b3afcc
commit d255e27fd3
12 changed files with 454 additions and 60 deletions

View File

@@ -45,6 +45,16 @@ private:
QPainter* m_painter;
};
struct PDFTransformationDecomposition
{
double rotationAngle = 0.0;
double shearFactor = 0.0;
double scaleX = 0.0;
double scaleY = 0.0;
double translateX = 0.0;
double translateY = 0.0;
};
class PDF4QTLIBCORESHARED_EXPORT PDFPainterHelper
{
public:
@@ -62,6 +72,12 @@ public:
/// Creates brush from painter graphicState
static QBrush createBrushFromState(const PDFPageContentProcessorState* graphicState, double alpha);
/// Decompose transform
static PDFTransformationDecomposition decomposeTransform(const QTransform& transform);
/// Compose transform
static QTransform composeTransform(const PDFTransformationDecomposition& decomposition);
};
} // namespace pdf