FrameOstream subclass that writes raster files. More...
#include <Transport/RasterOutputSeries.H>
Public Member Functions | |
RasterOutputSeries (OptionManager &mgr) | |
Constructor. | |
virtual | ~RasterOutputSeries () |
Destructor. | |
virtual void | setConfigInfo (const std::string &filestem) |
Override from FrameOstream; just calls setFileStem(). | |
virtual bool | setFrameNumber (int n) |
Set the current frame number and remember it. | |
virtual void | writeFrame (const GenericFrame &frame, const std::string &shortname, const FrameInfo &auxinfo) |
Write a frame to disk. | |
virtual void | closeStream (const std::string &shortname) |
No-op. | |
void | setFileStem (const std::string &s) |
Specify the output filename stem. | |
virtual RasterFileFormat | getRasterFileFormat () const =0 |
Get the output raster file format for this series. |
FrameOstream subclass that writes raster files.
Definition at line 46 of file RasterOutputSeries.H.
RasterOutputSeries::RasterOutputSeries | ( | OptionManager & | mgr | ) |
Constructor.
Definition at line 53 of file RasterOutputSeries.C.
RasterOutputSeries::~RasterOutputSeries | ( | ) | [virtual] |
Destructor.
Definition at line 63 of file RasterOutputSeries.C.
void RasterOutputSeries::closeStream | ( | const std::string & | shortname | ) | [virtual] |
virtual RasterFileFormat RasterOutputSeries::getRasterFileFormat | ( | ) | const [pure virtual] |
Get the output raster file format for this series.
Implemented in GenericRasterOutputSeries, and FixedRasterOutputSeries< F >.
Referenced by writeFrame().
void RasterOutputSeries::setConfigInfo | ( | const std::string & | filestem | ) | [virtual] |
Override from FrameOstream; just calls setFileStem().
Reimplemented from FrameOstream.
Definition at line 67 of file RasterOutputSeries.C.
References setFileStem().
void RasterOutputSeries::setFileStem | ( | const std::string & | s | ) |
Specify the output filename stem.
Definition at line 122 of file RasterOutputSeries.C.
References ASSERT, and rutz::format().
Referenced by setConfigInfo().
bool RasterOutputSeries::setFrameNumber | ( | int | n | ) | [virtual] |
Set the current frame number and remember it.
Reimplemented from FrameOstream.
Definition at line 77 of file RasterOutputSeries.C.
References ASSERT.
void RasterOutputSeries::writeFrame | ( | const GenericFrame & | frame, | |
const std::string & | shortname, | |||
const FrameInfo & | auxinfo | |||
) | [virtual] |
Write a frame to disk.
Implements FrameOstream.
Definition at line 86 of file RasterOutputSeries.C.
References getRasterFileFormat(), OModelParam< T >::getVal(), GenericFrame::GRAY_F32, GenericFrame::GRAY_U16, GenericFrame::GRAY_U8, GenericFrame::nativeType(), GenericFrame::NONE, GenericFrame::RGB_F32, GenericFrame::RGB_U16, GenericFrame::RGB_U8, textLog(), and Raster::WriteFrame().