Isis Developer Reference
StreamExporter.h
Go to the documentation of this file.
1 #ifndef StreamExporter_h
2 #define StreamExporter_h
3 
9 /* SPDX-License-Identifier: CC0-1.0 */
10 
11 #include "ImageExporter.h"
12 
13 namespace Isis {
34  class StreamExporter : public ImageExporter {
35  public:
37  virtual ~StreamExporter();
38 
39  virtual void setGrayscale(ExportDescription &desc);
40  virtual void setRgb(ExportDescription &desc);
41  virtual void setRgba(ExportDescription &desc);
42 
43  protected:
44  virtual void initialize(ExportDescription &desc);
45 
46  virtual void writeGrayscale(vector<Buffer *> &in) const;
47  virtual void writeRgb(vector<Buffer *> &in) const;
48  virtual void writeRgba(vector<Buffer *> &in) const;
49 
54  virtual void createBuffer() = 0;
55 
64  virtual void setBuffer(int s, int b, int dn) const = 0;
65 
72  virtual void writeLine(int l) const = 0;
73 
74  };
75 };
76 
77 
78 #endif
Isis::StreamExporter::setGrayscale
virtual void setGrayscale(ExportDescription &desc)
Generic initialization with the export description.
Definition: StreamExporter.cpp:39
Isis::Buffer::SampleDimension
int SampleDimension() const
Returns the number of samples in the shape buffer.
Definition: Buffer.h:70
ImageExporter.h
Isis::StreamExporter::setBuffer
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.
Isis::StreamExporter::createBuffer
virtual void createBuffer()=0
Pure virtual method for creating the buffer to store a chunk of streamed line data with one or more b...
Isis::ExportDescription
Describes how a series of cubes should be exported.
Definition: ExportDescription.h:43
ProcessExport.h
Isis::StreamExporter::setRgb
virtual void setRgb(ExportDescription &desc)
Generic initialization with the export description.
Definition: StreamExporter.cpp:51
Isis::StreamExporter::writeLine
virtual void writeLine(int l) const =0
Pure virtual method for writing a line of buffered data to the output image on disk.
Isis::Buffer
Buffer for reading and writing cube data.
Definition: Buffer.h:53
Buffer.h
Isis::StreamExporter
Exports cubes into a standard format in incremental pieces.
Definition: StreamExporter.h:34
Isis::StreamExporter::initialize
virtual void initialize(ExportDescription &desc)
Generic initialization with the export description.
Definition: StreamExporter.cpp:74
StreamExporter.h
Isis::StreamExporter::writeGrayscale
virtual void writeGrayscale(vector< Buffer * > &in) const
Write a line of grayscale data to the output image.
Definition: StreamExporter.cpp:85
ExportDescription.h
Isis::ImageExporter::outputPixelValue
virtual int outputPixelValue(double dn) const
Return the output clamped integer pixel value from the input double-precision DN.
Definition: ImageExporter.cpp:325
Isis::ImageExporter
Export Isis cubes into standard formats.
Definition: ImageExporter.h:54
std
Namespace for the standard library.
Isis::StreamExporter::writeRgba
virtual void writeRgba(vector< Buffer * > &in) const
Write a line of RGBA data to the output image.
Definition: StreamExporter.cpp:127
Isis::StreamExporter::setRgba
virtual void setRgba(ExportDescription &desc)
Generic initialization with the export description.
Definition: StreamExporter.cpp:63
Isis::ImageExporter::initialize
virtual void initialize(ExportDescription &desc)=0
Generic initialization with the export description.
Definition: ImageExporter.cpp:58
Isis::StreamExporter::writeRgb
virtual void writeRgb(vector< Buffer * > &in) const
Write a line of RGB data to the output image.
Definition: StreamExporter.cpp:103
Isis::Buffer::Line
int Line(const int index=0) const
Returns the line position associated with a shape buffer index.
Definition: Buffer.cpp:145
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::StreamExporter::StreamExporter
StreamExporter()
Construct the stream exporter.
Definition: StreamExporter.cpp:21
Isis::StreamExporter::~StreamExporter
virtual ~StreamExporter()
Destruct the exporter.
Definition: StreamExporter.cpp:28