OpenHantek
LegacyExportDrawer Class Reference

Exports the oscilloscope screen to a file or prints it. TODO Rewrite image exporter with OpenGL drawn grid and graphs. More...

#include <legacyexportdrawer.h>

Static Public Member Functions

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. More...
 

Static Private Member Functions

static void drawGrids (QPainter &painter, const DsoSettingsColorValues *colorValues, double lineHeight, double scopeHeight, int scopeWidth, bool isPrinter, bool zoom)
 

Detailed Description

Exports the oscilloscope screen to a file or prints it. TODO Rewrite image exporter with OpenGL drawn grid and graphs.

Sources: http://doc.qt.io/qt-5/qoffscreensurface.html http://doc.qt.io/qt-5/qopenglframebufferobject.html

https://dangelog.wordpress.com/2013/02/10/using-fbos-instead-of-pbuffers-in-qt-5-2/

Member Function Documentation

◆ drawGrids()

void LegacyExportDrawer::drawGrids ( QPainter &  painter,
const DsoSettingsColorValues colorValues,
double  lineHeight,
double  scopeHeight,
int  scopeWidth,
bool  isPrinter,
bool  zoom 
)
staticprivate

◆ exportSamples()

bool LegacyExportDrawer::exportSamples ( const PPresult source,
QPaintDevice *  dest,
const Dso::ControlSpecification deviceSpecification,
const DsoSettings settings,
bool  isPrinter,
const DsoSettingsColorValues colorValues 
)
static

Draw the graphs coming from source and labels to the destination paintdevice.


The documentation for this class was generated from the following files: