JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches

Service from this class to implement a special QPaintDevice as a plugin, that can be registered to JKQTBasePlotter/JKQTPlotter and then be used to export graphics, use registerPaintDeviceAdapter() to register such a plass. More...

#include <jkqtpbaseplotter.h>

Public Member Functions

virtual ~JKQTPPaintDeviceAdapter ()
 
virtual QPaintDevice * createPaintdevice (const QString &filename, int widthPix, int heightPix) const =0
 create a paint device with a given size in pt
 
virtual QPaintDevice * createPaintdeviceMM (const QString &filename, double widthMM, double heightMM) const
 create a paint device with a given size in millimeters ... the default implementation call createPaintdevice(), assuming the standard logical resolution of the desktop!!!)
 
virtual QStringList getFileExtension () const =0
 returns a list (in lower-case) of the file extensions supported by this plugin, e.g. {"jpg","jpeg"}
 
virtual QString getFilter () const =0
 Filter-String for a Qt File-Dialog, e.g. "JPEG Files (*.jpg)"
 
virtual QString getFormatID () const =0
 a plugin-ID, i.e. a unique name for this format plugin, e.g. MyPluginExport_JPEG
 
virtual QString getFormatName () const =0
 Human readable name for the format.
 
virtual double getPrintSizeXInMM () const =0
 
virtual double getPrintSizeYInMM () const =0
 
virtual bool getSetAbsolutePaperSize () const =0
 
virtual bool isPrinter () const =0
 

Detailed Description

Service from this class to implement a special QPaintDevice as a plugin, that can be registered to JKQTBasePlotter/JKQTPlotter and then be used to export graphics, use registerPaintDeviceAdapter() to register such a plass.

Constructor & Destructor Documentation

◆ ~JKQTPPaintDeviceAdapter()

virtual JKQTPPaintDeviceAdapter::~JKQTPPaintDeviceAdapter ( )
inlinevirtual

Member Function Documentation

◆ createPaintdevice()

virtual QPaintDevice * JKQTPPaintDeviceAdapter::createPaintdevice ( const QString &  filename,
int  widthPix,
int  heightPix 
) const
pure virtual

create a paint device with a given size in pt

◆ createPaintdeviceMM()

virtual QPaintDevice * JKQTPPaintDeviceAdapter::createPaintdeviceMM ( const QString &  filename,
double  widthMM,
double  heightMM 
) const
virtual

create a paint device with a given size in millimeters ... the default implementation call createPaintdevice(), assuming the standard logical resolution of the desktop!!!)

◆ getFileExtension()

virtual QStringList JKQTPPaintDeviceAdapter::getFileExtension ( ) const
pure virtual

returns a list (in lower-case) of the file extensions supported by this plugin, e.g. {"jpg","jpeg"}

◆ getFilter()

virtual QString JKQTPPaintDeviceAdapter::getFilter ( ) const
pure virtual

Filter-String for a Qt File-Dialog, e.g. "JPEG Files (*.jpg)"

◆ getFormatID()

virtual QString JKQTPPaintDeviceAdapter::getFormatID ( ) const
pure virtual

a plugin-ID, i.e. a unique name for this format plugin, e.g. MyPluginExport_JPEG

◆ getFormatName()

virtual QString JKQTPPaintDeviceAdapter::getFormatName ( ) const
pure virtual

Human readable name for the format.

◆ getPrintSizeXInMM()

virtual double JKQTPPaintDeviceAdapter::getPrintSizeXInMM ( ) const
pure virtual

◆ getPrintSizeYInMM()

virtual double JKQTPPaintDeviceAdapter::getPrintSizeYInMM ( ) const
pure virtual

◆ getSetAbsolutePaperSize()

virtual bool JKQTPPaintDeviceAdapter::getSetAbsolutePaperSize ( ) const
pure virtual

◆ isPrinter()

virtual bool JKQTPPaintDeviceAdapter::isPrinter ( ) const
pure virtual

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