Isis Developer Reference
TiffExporter.h
Go to the documentation of this file.
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.
Definition StreamExporter.h:34
Exports cubes into TIFF images.
Definition TiffExporter.h:41
static bool canWriteFormat(QString format)
Returns true if the format is "tiff".
Definition TiffExporter.cpp:172
virtual void writeLine(int l) const
Writes a line of buffered data to the output image on disk.
Definition TiffExporter.cpp:157
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:130
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...
Definition TiffExporter.cpp:74
TiffExporter()
Construct the TIFF exporter.
Definition TiffExporter.cpp:24
virtual ~TiffExporter()
Destruct the exporter.
Definition TiffExporter.cpp:35
virtual void createBuffer()
Creates the buffer to store a chunk of streamed line data with one or more bands.
Definition TiffExporter.cpp:50
Command Line and Xml loader, validation, and access.
Definition UserInterface.h:139
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16