Isis 3 Programmer Reference
TiffExporter.h
1 #ifndef TiffExporter_h
2 #define TiffExporter_h
3 
9 /* SPDX-License-Identifier: CC0-1.0 */
10 
11 #include "StreamExporter.h"
12 
13 #include <tiffio.h>
14 
15 namespace Isis {
41  class TiffExporter : public StreamExporter {
42  public:
43  TiffExporter();
44  virtual ~TiffExporter();
45 
46  virtual void write(FileName outputName, int quality=100,
47  QString compression="none");
48 
49  static bool canWriteFormat(QString format);
50 
51  protected:
52  virtual void createBuffer();
53 
54  virtual void setBuffer(int s, int b, int dn) const;
55  virtual void writeLine(int l) const;
56 
57  private:
59  TIFF *m_image;
60 
62  unsigned char *m_raster;
63  };
64 };
65 
66 
67 #endif
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::TiffExporter::m_image
TIFF * m_image
Object responsible for writing data to the output image.
Definition: TiffExporter.h:59
Isis::TiffExporter::m_raster
unsigned char * m_raster
Array containing all color channels for a line.
Definition: TiffExporter.h:62
Isis::StreamExporter
Exports cubes into a standard format in incremental pieces.
Definition: StreamExporter.h:34
Isis::TiffExporter::TiffExporter
TiffExporter()
Construct the TIFF exporter.
Definition: TiffExporter.cpp:23
Isis::TiffExporter::~TiffExporter
virtual ~TiffExporter()
Destruct the exporter.
Definition: TiffExporter.cpp:34
Isis::TiffExporter
Exports cubes into TIFF images.
Definition: TiffExporter.h:41
Isis::TiffExporter::writeLine
virtual void writeLine(int l) const
Writes a line of buffered data to the output image on disk.
Definition: TiffExporter.cpp:154
Isis::TiffExporter::setBuffer
virtual void setBuffer(int s, int b, int dn) const
Set the DN value at the given sample and band, resolved to a single index, of the line buffer.
Definition: TiffExporter.cpp:127
Isis::TiffExporter::canWriteFormat
static bool canWriteFormat(QString format)
Returns true if the format is "tiff".
Definition: TiffExporter.cpp:169
Isis::TiffExporter::write
virtual void write(FileName outputName, int quality=100, QString compression="none")
Open the output file for writing, initialize its fields, then let the base ImageExporter handle the g...
Definition: TiffExporter.cpp:73
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::TiffExporter::createBuffer
virtual void createBuffer()
Creates the buffer to store a chunk of streamed line data with one or more bands.
Definition: TiffExporter.cpp:49