File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
QtExporter.h
1 #ifndef QtExporter_h
2 #define QtExporter_h
3 
9 /* SPDX-License-Identifier: CC0-1.0 */
10 
11 #include "ImageExporter.h"
12 
13 #include "Constants.h"
14 
15 class QImage;
16 
17 namespace Isis {
47  class QtExporter : public ImageExporter {
48  public:
49  QtExporter(QString format);
50  virtual ~QtExporter();
51 
52  virtual void setGrayscale(ExportDescription &desc);
53  virtual void setRgb(ExportDescription &desc);
54  virtual void setRgba(ExportDescription &desc);
55 
56  virtual void write(FileName outputName, int quality=100,
57  QString compression="none");
58 
59  static bool canWriteFormat(QString format);
60 
61  protected:
62  virtual void writeGrayscale(vector<Buffer *> &in) const;
63  virtual void writeRgb(vector<Buffer *> &in) const;
64  virtual void writeRgba(vector<Buffer *> &in) const;
65 
67 
68  private:
69  void initialize(ExportDescription &desc);
70 
72  QImage *m_qimage;
73 
75  QString m_format;
76  };
77 };
78 
79 
80 #endif
Isis::QtExporter::setGrayscale
virtual void setGrayscale(ExportDescription &desc)
Set the input with the description generically, check the data size for a single-band image with the ...
Definition: QtExporter.cpp:77
Isis::QtExporter::~QtExporter
virtual ~QtExporter()
Destruct the exporter.
Definition: QtExporter.cpp:48
Isis::QtExporter::initialize
void initialize(ExportDescription &desc)
Generic initialization with the export description.
Definition: QtExporter.cpp:59
Isis::QtExporter::QtExporter
QtExporter(QString format)
Construct the Qt exporter.
Definition: QtExporter.cpp:27
Isis::QtExporter
Exports cubes into one of several formats with Qt facilities.
Definition: QtExporter.h:47
Isis::QtExporter::write
virtual void write(FileName outputName, int quality=100, QString compression="none")
Let the base ImageExporter handle the generic black-box writing routine, then save the image to disk.
Definition: QtExporter.cpp:199
Isis::QtExporter::setRgb
virtual void setRgb(ExportDescription &desc)
Set the input with the description generically, check the data size for a three-band image with the e...
Definition: QtExporter.cpp:99
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::QtExporter::m_qimage
QImage * m_qimage
Structure holding all output image data in memory.
Definition: QtExporter.h:72
Isis::ExportDescription
Describes how a series of cubes should be exported.
Definition: ExportDescription.h:43
Isis::QtExporter::checkDataSize
void checkDataSize(BigInt samples, BigInt lines, int bands)
Checks that the data size for an image of the desired dimensions will be less than 2GB.
Definition: QtExporter.cpp:225
Isis::QtExporter::writeGrayscale
virtual void writeGrayscale(vector< Buffer * > &in) const
Write a line of grayscale data to the output image.
Definition: QtExporter.cpp:125
Isis::BigInt
long long int BigInt
Big int.
Definition: Constants.h:49
Isis::QtExporter::writeRgba
virtual void writeRgba(vector< Buffer * > &in) const
Write a line of RGBA data to the output image.
Definition: QtExporter.cpp:173
Isis::QtExporter::setRgba
virtual void setRgba(ExportDescription &desc)
Set the input with the description generically, check the data size for a four-band image with the es...
Definition: QtExporter.cpp:113
Isis::ImageExporter
Export Isis cubes into standard formats.
Definition: ImageExporter.h:54
Isis::QtExporter::writeRgb
virtual void writeRgb(vector< Buffer * > &in) const
Write a line of RGB data to the output image.
Definition: QtExporter.cpp:152
Isis::ImageExporter::lines
int lines() const
Number of lines (rows) in the output image.
Definition: ImageExporter.cpp:128
Isis::ImageExporter::bands
int bands() const
Number of bands (channels) in the output image.
Definition: ImageExporter.cpp:138
Isis::ImageExporter::samples
int samples() const
Number of samples (columns) in the output image.
Definition: ImageExporter.cpp:118
Isis::QtExporter::canWriteFormat
static bool canWriteFormat(QString format)
Returns true if the format is supported by QImageWriter.
Definition: QtExporter.cpp:246
Isis::QtExporter::m_format
QString m_format
The lowercase abbreviated format of the output image.
Definition: QtExporter.h:75
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:17:10