QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
PdfLinks::PageGeometry Struct Reference

#include <pdf_links.h>

Collaboration diagram for PdfLinks::PageGeometry:
Collaboration graph

Public Attributes

QTransform sceneToDevice
 scene coordinates -> device pixels (the same "fit" render() applied)
QRectF target
 device paint rectangle, in pixels (the page area)
QRectF pageBounds
 links whose rectangle falls outside this are dropped
std::function< QPointF(const QPointF &)> devToPdf
 device pixels -> PDF points (replicates the engine's page matrix)
std::function< QRectF(Diagram *)> sourceRectOf
 a diagram -> its source rectangle in scene pixels (for /FitR framing)

Detailed Description

Geometry mapping for one rendered PDF page. Each caller builds this from its OWN page setup (printer page layout vs QPdfWriter), since the device-pixel and point conversions differ between them.

Member Data Documentation

◆ devToPdf

std::function<QPointF(const QPointF &)> PdfLinks::PageGeometry::devToPdf

device pixels -> PDF points (replicates the engine's page matrix)

◆ pageBounds

QRectF PdfLinks::PageGeometry::pageBounds

links whose rectangle falls outside this are dropped

◆ sceneToDevice

QTransform PdfLinks::PageGeometry::sceneToDevice

scene coordinates -> device pixels (the same "fit" render() applied)

◆ sourceRectOf

std::function<QRectF(Diagram *)> PdfLinks::PageGeometry::sourceRectOf

a diagram -> its source rectangle in scene pixels (for /FitR framing)

◆ target

QRectF PdfLinks::PageGeometry::target

device paint rectangle, in pixels (the page area)


The documentation for this struct was generated from the following file: