Engauge Digitizer 2
Loading...
Searching...
No Matches
ExportImageForRegression Class Reference

Class for exporting during regression, when the Transformation has not yet been defined. More...

#include <ExportImageForRegression.h>

Collaboration diagram for ExportImageForRegression:
Collaboration graph

Public Member Functions

 ExportImageForRegression (const QPixmap &pixmap)
 Single constructor.
void fileExport (const QString &filename) const
 Export to the specified file. This is called when the Transformation has not been defined.

Detailed Description

Class for exporting during regression, when the Transformation has not yet been defined.

This class just exports the image size

Definition at line 15 of file ExportImageForRegression.h.

Constructor & Destructor Documentation

◆ ExportImageForRegression()

ExportImageForRegression::ExportImageForRegression ( const QPixmap & pixmap)

Single constructor.

Definition at line 15 of file ExportImageForRegression.cpp.

15 :
16 m_width (pixmap.width ()),
17 m_height (pixmap.height ())
18{
19}

Member Function Documentation

◆ fileExport()

void ExportImageForRegression::fileExport ( const QString & filename) const

Export to the specified file. This is called when the Transformation has not been defined.

Definition at line 21 of file ExportImageForRegression.cpp.

22{
23 QFile file (filename);
24 if (!file.open (QIODevice::WriteOnly)) {
25 QMessageBox::critical (nullptr,
26 QObject::tr ("Export Image"),
27 QObject::tr ("Cannot export file"));
28 } else {
29
30 QTextStream str (&file);
31
32 str << m_width << "x" << m_height << "\n";
33
34 file.close ();
35 }
36}

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