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 
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
FileName.h
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::IException::Unknown
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
Isis::UnsignedWord
@ UnsignedWord
Definition: PixelType.h:31
Isis::SignedWord
@ SignedWord
Definition: PixelType.h:32
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
IString.h
Buffer.h
Isis::StreamExporter
Exports cubes into a standard format in incremental pieces.
Definition: StreamExporter.h:34
StreamExporter.h
Isis::ImageExporter::write
virtual void write(FileName outputName, int quality=100, QString compression="none")
Export the Isis cube channels to the given standard image.
Definition: ImageExporter.cpp:101
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::TiffExporter::TiffExporter
TiffExporter()
Construct the TIFF exporter.
Definition: TiffExporter.cpp:23
Isis::FileName::addExtension
FileName addExtension(const QString &extension) const
Adds a new extension to the file name.
Definition: FileName.cpp:225
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::TiffExporter::~TiffExporter
virtual ~TiffExporter()
Destruct the exporter.
Definition: TiffExporter.cpp:34
Isis::ImageExporter::extension
QString extension() const
Gets the extension for the output image.
Definition: ImageExporter.cpp:208
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::TiffExporter
Exports cubes into TIFF images.
Definition: TiffExporter.h:41
Isis::PixelType
PixelType
Enumerations for Isis Pixel Types.
Definition: PixelType.h:27
IException.h
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
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::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::ImageExporter::pixelType
PixelType pixelType() const
Returns the pixel type.
Definition: ImageExporter.cpp:307
Isis::ImageExporter::samples
int samples() const
Number of samples (columns) in the output image.
Definition: ImageExporter.cpp:118
Isis::UnsignedByte
@ UnsignedByte
Definition: PixelType.h:29
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
TiffExporter.h
Isis::ImageExporter::setExtension
void setExtension(QString extension)
Sets the extension for the output image and generates the extension for the world file from it.
Definition: ImageExporter.cpp:193
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