Isis 3 Developer Reference
StreamExporter.h
Go to the documentation of this file.
1 #ifndef StreamExporter_h
2 #define StreamExporter_h
3 
27 #include "ImageExporter.h"
28 
29 namespace Isis {
50  class StreamExporter : public ImageExporter {
51  public:
53  virtual ~StreamExporter();
54 
55  virtual void setGrayscale(ExportDescription &desc);
56  virtual void setRgb(ExportDescription &desc);
57  virtual void setRgba(ExportDescription &desc);
58 
59  protected:
60  virtual void initialize(ExportDescription &desc);
61 
62  virtual void writeGrayscale(vector<Buffer *> &in) const;
63  virtual void writeRgb(vector<Buffer *> &in) const;
64  virtual void writeRgba(vector<Buffer *> &in) const;
65 
70  virtual void createBuffer() = 0;
71 
80  virtual void setBuffer(int s, int b, int dn) const = 0;
81 
88  virtual void writeLine(int l) const = 0;
89 
90  };
91 };
92 
93 
94 #endif
StreamExporter()
Construct the stream exporter.
Definition: StreamExporter.cpp:15
virtual void setGrayscale(ExportDescription &desc)
Generic initialization with the export description.
Definition: StreamExporter.cpp:33
virtual void initialize(ExportDescription &desc)
Generic initialization with the export description.
Definition: StreamExporter.cpp:68
Export Isis cubes into standard formats.
Definition: ImageExporter.h:70
virtual void createBuffer()=0
Pure virtual method for creating the buffer to store a chunk of streamed line data with one or more b...
virtual void writeRgb(vector< Buffer *> &in) const
Write a line of RGB data to the output image.
Definition: StreamExporter.cpp:97
virtual void setBuffer(int s, int b, int dn) const =0
Pure virtual method for setting a particular index of the line buffer to the given DN...
virtual ~StreamExporter()
Destruct the exporter.
Definition: StreamExporter.cpp:22
Describes how a series of cubes should be exported.
Definition: ExportDescription.h:59
virtual void writeLine(int l) const =0
Pure virtual method for writing a line of buffered data to the output image on disk.
virtual void setRgb(ExportDescription &desc)
Generic initialization with the export description.
Definition: StreamExporter.cpp:45
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 writeRgba(vector< Buffer *> &in) const
Write a line of RGBA data to the output image.
Definition: StreamExporter.cpp:121
virtual void setRgba(ExportDescription &desc)
Generic initialization with the export description.
Definition: StreamExporter.cpp:57
virtual void writeGrayscale(vector< Buffer *> &in) const
Write a line of grayscale data to the output image.
Definition: StreamExporter.cpp:79