-
Notifications
You must be signed in to change notification settings - Fork 0
/
pectuspdf.h
36 lines (28 loc) · 881 Bytes
/
pectuspdf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef PECTUSPDF_H
#define PECTUSPDF_H
#include <QObject>
#include <QVariant>
#include <QVector>
#include <QQuickWindow>
#include <QQuickItem>
#include <QSharedPointer>
#include <QQuickItemGrabResult>
#include "pectusviewer.h"
#include "pectusprocessor.h"
class PectusPDF : public QObject
{
Q_OBJECT
public:
explicit PectusPDF(PectusViewer * viewer_input, PectusProcessor * processor_input, QObject *parent = nullptr);
void setRootQmlObject(QObject* obj);
Q_INVOKABLE void createPDF();
private:
QObject* rootQmlObject;
PectusViewer * viewer;
PectusProcessor * processor;
void addNotes(QPainter & painter);
void addScanViewer(QPainter & painter, QQuickWindow * window);
void addSlice(QPainter & painter, QQuickWindow * window);
void addSummary(QPainter & painter);
};
#endif // PECTUSPDF_H