OpenHantek
legacyexportdrawer.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #pragma once
4 
5 #include <QPainter>
6 #include <QPrinter>
7 #include <QSize>
8 #include <memory>
9 #include "exportsettings.h"
10 
11 class DsoSettings;
12 class PPresult;
14 namespace Dso { struct ControlSpecification; }
15 
26  public:
28  static bool exportSamples(const PPresult *source, QPaintDevice* dest,
29  const Dso::ControlSpecification* deviceSpecification,
30  const DsoSettings *settings, bool isPrinter, const DsoSettingsColorValues *colorValues);
31 
32  private:
33  static void drawGrids(QPainter &painter, const DsoSettingsColorValues *colorValues, double lineHeight, double scopeHeight,
34  int scopeWidth, bool isPrinter, bool zoom);
35 };
static bool exportSamples(const PPresult *source, QPaintDevice *dest, const Dso::ControlSpecification *deviceSpecification, const DsoSettings *settings, bool isPrinter, const DsoSettingsColorValues *colorValues)
Draw the graphs coming from source and labels to the destination paintdevice.
Definition: legacyexportdrawer.cpp:22
Holds the settings of the program.
Definition: dsosettings.h:16
static void drawGrids(QPainter &painter, const DsoSettingsColorValues *colorValues, double lineHeight, double scopeHeight, int scopeWidth, bool isPrinter, bool zoom)
Definition: legacyexportdrawer.cpp:428
Exports the oscilloscope screen to a file or prints it. TODO Rewrite image exporter with OpenGL drawn...
Definition: legacyexportdrawer.h:25
Stores the specifications of the currently connected device.
Definition: controlspecification.h:42
Holds the color values for the oscilloscope screen.
Definition: viewsettings.h:16
Post processing results.
Definition: ppresult.h:36
Definition: TriggerDock.h:15