Isis 3 Developer Reference
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 "tiff".
Definition: TiffExporter.cpp:163
File name manipulation and expansion.
Definition: FileName.h:116
virtual void createBuffer()
Creates the buffer to store a chunk of streamed line data with one or more bands. ...
Definition: TiffExporter.cpp:43
Exports cubes into TIFF images.
Definition: TiffExporter.h:57
virtual ~TiffExporter()
Destruct the exporter.
Definition: TiffExporter.cpp:28
TiffExporter()
Construct the TIFF exporter.
Definition: TiffExporter.cpp:17
virtual void writeLine(int l) const
Writes a line of buffered data to the output image on disk.
Definition: TiffExporter.cpp:148
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Exports cubes into a standard format in incremental pieces.
Definition: StreamExporter.h:50
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:67
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:121