FrameIstream class that generates a static "colorbars" test pattern. More...
#include <Transport/ColorbarsInput.H>
Public Member Functions | |
ColorbarsInput (OptionManager &mgr) | |
Constructor. | |
virtual | ~ColorbarsInput () |
Virtual destructor. | |
virtual void | setConfigInfo (const std::string &frametime) |
Set the inter-frame interval (or framerate). | |
virtual bool | setFrameNumber (int n) |
Advise the FrameIstream object of the current frame number. | |
virtual GenericFrameSpec | peekFrameSpec () |
Peek at the specifications of the next frame to be read. | |
virtual GenericFrame | readFrame () |
Generate a random color image. |
FrameIstream class that generates a static "colorbars" test pattern.
Definition at line 49 of file ColorbarsInput.H.
ColorbarsInput::ColorbarsInput | ( | OptionManager & | mgr | ) |
Constructor.
Definition at line 63 of file ColorbarsInput.C.
References SimpleFont::FIXED(), writeText(), and ZEROS.
ColorbarsInput::~ColorbarsInput | ( | ) | [virtual] |
Virtual destructor.
Definition at line 118 of file ColorbarsInput.C.
GenericFrameSpec ColorbarsInput::peekFrameSpec | ( | ) | [virtual] |
Peek at the specifications of the next frame to be read.
Implements FrameIstream.
Definition at line 143 of file ColorbarsInput.C.
References Image< T >::getDims(), and GenericFrame::RGB_U8.
GenericFrame ColorbarsInput::readFrame | ( | ) | [virtual] |
Generate a random color image.
Implements FrameIstream.
Definition at line 157 of file ColorbarsInput.C.
References rutz::fstring::c_str(), SimpleFont::FIXED(), rutz::format_time(), Image< T >::getHeight(), rutz::time::sec(), SimTime::secs(), sformat(), rutz::time::wall_clock_now(), and writeText().
void ColorbarsInput::setConfigInfo | ( | const std::string & | frametime | ) | [virtual] |
Set the inter-frame interval (or framerate).
Reimplemented from FrameIstream.
Definition at line 122 of file ColorbarsInput.C.
References SimTime::fromString(), and SimTime::ZERO().
bool ColorbarsInput::setFrameNumber | ( | int | n | ) | [virtual] |
Advise the FrameIstream object of the current frame number.
Reimplemented from FrameIstream.
Definition at line 135 of file ColorbarsInput.C.