Isis 3.0 Programmer Reference
Back | Home
TiffExporter.h
Go to the documentation of this file.
1 #ifndef TiffExporter_h
2 #define TiffExporter_h
3 
27 #include "StreamExporter.h"
28 
29 #include <tiffio.h>
30 
31 namespace Isis {
57  class TiffExporter : public StreamExporter {
58  public:
59  TiffExporter();
60  virtual ~TiffExporter();
61 
62  virtual void write(FileName outputName, int quality=100,
63  QString compression="none");
64 
65  static bool canWriteFormat(QString format);
66 
67  protected:
68  virtual void createBuffer();
69 
70  virtual void setBuffer(int s, int b, int dn) const;
71  virtual void writeLine(int l) const;
72 
73  private:
75  TIFF *m_image;
76 
78  unsigned char *m_raster;
79  };
80 };
81 
82 
83 #endif
static bool canWriteFormat(QString format)
Returns true if the format is &quot;tiff&quot;.
File name manipulation and expansion.
Definition: FileName.h:111
virtual void createBuffer()
Creates the buffer to store a chunk of streamed line data with one or more bands. ...
virtual void writeLine(int l) const
Writes a line of buffered data to the output image on disk.
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...
Exports cubes into TIFF images.
Definition: TiffExporter.h:57
TIFF * m_image
Object responsible for writing data to the output image.
Definition: TiffExporter.h:75
unsigned char * m_raster
Array containing all color channels for a line.
Definition: TiffExporter.h:78
virtual ~TiffExporter()
Destruct the exporter.
TiffExporter()
Construct the TIFF exporter.
Exports cubes into a standard format in incremental pieces.
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...

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 ISIS Support Center
File Modified: 07/12/2023 23:30:52