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
15namespace Isis {
42 public:
44 virtual ~TiffExporter();
45
46 virtual void write(FileName outputName, int quality=100,
47 QString compression="none", UserInterface *ui = nullptr);
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
File name manipulation and expansion.
Definition FileName.h:100
Exports cubes into a standard format in incremental pieces.
Exports cubes into TIFF images.
static bool canWriteFormat(QString format)
Returns true if the format is "tiff".
virtual void writeLine(int l) const
Writes a line of buffered data to the output image on disk.
TIFF * m_image
Object responsible for writing data to the output image.
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.
virtual void write(FileName outputName, int quality=100, QString compression="none", UserInterface *ui=nullptr)
Open the output file for writing, initialize its fields, then let the base ImageExporter handle the g...
TiffExporter()
Construct the TIFF exporter.
unsigned char * m_raster
Array containing all color channels for a line.
virtual ~TiffExporter()
Destruct the exporter.
virtual void createBuffer()
Creates the buffer to store a chunk of streamed line data with one or more bands.
Command Line and Xml loader, validation, and access.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16