|
wiRedPanda
Logic Circuit Simulator
|
#include "App/UI/CircuitExporter.h"#include <algorithm>#include <QImage>#include <QPageLayout>#include <QPageSize>#include <QPainter>#include <QPrinter>#include <QRectF>#include <QSizeF>#include "App/Core/Common.h"#include "App/Scene/Scene.h"Go to the source code of this file.
Namespaces | |
| namespace | CircuitExporter |
| Pure render functions for exporting a circuit scene to image formats. | |
Functions | |
| static QRectF | CircuitExporter::paddedBoundingRect (Scene *scene) |
| QImage | CircuitExporter::renderScaledImage (Scene *scene, const QRectF &paddedRect) |
| Renders scene into a transparent-filled QImage bounded by kMaxImageDimension. | |
| void | CircuitExporter::renderToImage (Scene *scene, const QString &filePath) |
| Renders scene to a PNG image file at filePath. | |
| void | CircuitExporter::renderToPdf (Scene *scene, const QString &filePath) |
| Renders scene to a PDF file at filePath. | |