Public Member Functions | |
GameOfLifeInput (OptionManager &mgr) | |
Constructor. | |
virtual | ~GameOfLifeInput () |
Virtual destructor. | |
virtual void | setConfigInfo (const std::string &dimsstring) |
Override from FrameIstream; just calls setDims(). | |
virtual GenericFrameSpec | peekFrameSpec () |
Peek at the specifications of the next frame to be read. | |
virtual GenericFrame | readFrame () |
Generate a random color image. | |
void | setDims (const Dims &s) |
Specify the dimensions of the random images. | |
void | setSeed (int s) |
Set the seed for our random-number generator. |
Definition at line 48 of file GameOfLifeInput.H.
GameOfLifeInput::GameOfLifeInput | ( | OptionManager & | mgr | ) |
Constructor.
Definition at line 129 of file GameOfLifeInput.C.
GameOfLifeInput::~GameOfLifeInput | ( | ) | [virtual] |
Virtual destructor.
Definition at line 145 of file GameOfLifeInput.C.
GenericFrameSpec GameOfLifeInput::peekFrameSpec | ( | ) | [virtual] |
Peek at the specifications of the next frame to be read.
Implements FrameIstream.
Definition at line 163 of file GameOfLifeInput.C.
References GenericFrame::RGB_U8.
GenericFrame GameOfLifeInput::readFrame | ( | ) | [virtual] |
Generate a random color image.
Implements FrameIstream.
Definition at line 177 of file GameOfLifeInput.C.
References Image< T >::beginw(), Image< T >::endw(), rutz::urand::fdraw(), OModelParam< T >::getVal(), Dims::h(), inplacePaste(), rescale(), ModelComponent::stop(), Dims::w(), and ZEROS.
void GameOfLifeInput::setConfigInfo | ( | const std::string & | dimsstring | ) | [virtual] |
Override from FrameIstream; just calls setDims().
Reimplemented from FrameIstream.
Definition at line 149 of file GameOfLifeInput.C.
References convertFromString(), and setDims().
void GameOfLifeInput::setDims | ( | const Dims & | s | ) |
Specify the dimensions of the random images.
Definition at line 294 of file GameOfLifeInput.C.
Referenced by setConfigInfo().
void GameOfLifeInput::setSeed | ( | int | s | ) |
Set the seed for our random-number generator.